# Redsub Update

> Check plugin version updates and Claude Code compatibility. Use when this capability is needed.

- Skill: `tomevault-io/redsub-update` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/redsub-update`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/redsub-update/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/redsub-update

---


# Plugin Auto-Update

## Procedure

### 1. Run update-core.sh

Execute the core update script that handles all internal operations (version check, git pull, cache creation, installed_plugins.json update) in a single call:

```bash
bash "${CLAUDE_PLUGIN_ROOT}/scripts/update-core.sh" "${CLAUDE_PLUGIN_ROOT}"
```

Parse the JSON output. The result has this structure:
```json
{
  "status": "up_to_date | updated | error",
  "old_version": "X.X.X",
  "new_version": "X.X.X",
  "template_changed": true,
  "template_old": "X.X.X",
  "template_new": "X.X.X",
  "message": ""
}
```

### 2. Handle result

- If `status` = `"error"`: report the `message` and stop.
- If `status` = `"up_to_date"`: report "Up to date (vX.X.X)" and stop.
- If `status` = `"updated"`: proceed to step 3.

### 3. Template sync (if template_changed = true)

If `template_changed` is `false`, skip to step 4.

Use `AskUserQuestion`:
- question: "CLAUDE.md template has been updated (current: [template_old or 'legacy'] → latest: [template_new]). Update?"
- header: "Template"
- options:
  - "Update (Recommended)" — Updates the template while preserving user customizations
  - "Skip" — Keeps your current CLAUDE.md as-is

If user chooses "Update", run the merge script:
```bash
bash "${CLAUDE_PLUGIN_ROOT}/scripts/merge-template.sh" "${CLAUDE_PLUGIN_ROOT}" merge
```

Parse the JSON output and report the result.

### 4. Report result

```
Updated: vOLD → vNEW
Restart the session to apply changes.
```

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/redsub-captain) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-13 -->

