Ctx Upgrade

by mksglua6c43765d26bNo license25K starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated today

Update context-mode from GitHub and fix hooks/settings. Pulls latest, builds, installs, updates npm global, configures hooks. Trigger: /context-mode:ctx-upgrade

Instructions onlyDevOps & Cloud
AI-generated overview

Updates the context-mode plugin from GitHub, rebuilds and reinstalls it, and reconfigures its hooks and settings.

What it does
This skill upgrades the context-mode plugin by calling an MCP tool that returns a shell command, then running that command to pull the latest source, build, install, update the npm global package and configure hooks. It reports the outcome as a markdown checklist with actual version numbers and a doctor check result. It also tells the user to restart their session to pick up the new version, and provides a manual fallback command if the MCP tool call fails.
When to use it
Use it when the context-mode plugin needs to be updated to the latest GitHub version or when its hooks and settings need to be repaired. It is triggered by the command /context-mode:ctx-upgrade.
Requirements
Requires the ctx_upgrade MCP tool and a shell execution tool such as Bash. The fallback path needs Node.js and the plugin's bundled CLI file. Network access to GitHub and npm is implied by pulling and updating. No scripts ship with the skill.

Context Mode Upgrade

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

Source and attribution

Source:mksglu/context-modeinskills/ctx-upgradeat commita6c4376

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal