About ctx-upgrade
ctx-upgrade is a skill for updating and reinstalling the Context Mode plugin from GitHub. It runs the shell command returned by the `ctx_upgrade` MCP tool and asks for a session restart afterward.
Key features
- 01Fetch latest version from GitHub
- 02Reinstall the plugin
- 03Report version and upgrade checks
- 04Use CLI fallback if MCP fails
Use cases
- 01Update the Context Mode plugin
- 02Reinstall after a tool-provided upgrade command
MCP support
Calls the `ctx_upgrade` MCP tool to obtain a shell command, then runs it. The skill documents a CLI fallback if the MCP call fails.
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ mksglu/ context-mode --skill ctx-upgradeAfter installing, type/ctx-upgradein Claude Code to confirm it loaded.
Details
From the project READMEContext Mode Upgrade
Pull latest from GitHub and reinstall the plugin.
Instructions
- Call the
ctx_upgradeMCP tool directly. It returns a shell command to execute. - Run the returned command using your shell execution tool (Bash, shell_execute, etc.).
- Display results as a markdown checklist:
Use## context-mode upgrade - [x] Pulled latest from GitHub - [x] Built and installed v1.0.39 - [x] Hooks configured - [x] Doctor: all checks PASS[x]for success,[ ]for failure. Show actual version numbers. - Tell the user to restart their session to pick up the new version.
- Fallback (only if MCP tool call fails): Derive the plugin root from this skill's base directory (go up 2 levels — remove
/skills/ctx-upgrade), then run with Bash:CLI="<PLUGIN_ROOT>/cli.bundle.mjs"; [ ! -f "$CLI" ] && CLI="<PLUGIN_ROOT>/build/cli.js"; node "$CLI" upgrade
Comments
Markdown supported