Context Mode Upgrade

SkillDev tools

ctx-upgrade is a skill that updates the context-mode plugin to the latest version from GitHub. It pulls the newest code, builds and installs it, updates the npm global package, and configures hooks and settings. It reports the outcome as a checklist and tells you to restart your session so the new version takes effect.

Then ask your AI: use the Context Mode Upgrade skill

Details

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Have the context-mode plugin installed with its MCP tool available.

What your AI can do with it

  • Pull the latest context-mode code from GitHub
  • Build and install the updated plugin
  • Update the npm global package
  • Configure hooks and settings
  • Report upgrade results as a markdown checklist with version numbers
  • Fall back to the plugin's own upgrade command if the tool call fails

Getting started

  1. Have the context-mode plugin installed with its MCP tool available.
  2. Trigger the skill with /context-mode:ctx-upgrade.
  3. Let the agent call the ctx_upgrade tool and run the shell command it returns.
  4. Review the checklist of results, then restart your session to pick up the new version.

What this skill tells your AI

The instructions your AI receives, as published by mksglu/context-mode in skills/ctx-upgrade/SKILL.md and read by Ahel’s review.

Pull latest from GitHub and reinstall the plugin.

Instructions

  1. Call the ctx_upgrade MCP tool directly. It returns a shell command to execute.
  2. Run the returned command using your shell execution tool (Bash, shell_execute, etc.).
  3. Display results as a markdown checklist:
    ## context-mode upgrade
    - [x] Pulled latest from GitHub
    - [x] Built and installed v1.0.39
    - [x] Hooks configured
    - [x] Doctor: all checks PASS
    
    Use [x] for success, [ ] for failure. Show actual version numbers.
  4. Tell the user to restart their session to pick up the new version.
  5. 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
    

Signals

GitHub stars
26k
Forks
2k
Last commit
Oct 2026

Questions

What does ctx-upgrade do?
It updates context-mode from GitHub: pulls the latest code, builds and installs it, updates the npm global package, and configures hooks and settings. It then shows a checklist and asks you to restart your session.
How do I trigger it?
Use the trigger /context-mode:ctx-upgrade. The skill is user-invocable, so you can call it directly.
What happens if the MCP tool call fails?
The skill falls back to running the plugin's own upgrade command directly. It derives the plugin root from the skill's base directory and runs the bundled CLI with the upgrade argument.
Do I need to restart after upgrading?
Yes. The skill tells you to restart your session to pick up the new version.
Advanced
Item type
skill
Key
ctx-upgrade
Source
github.com/mksglu/context-mode