---
name: Context Mode Upgrade
slug: context-mode-upgrade
category: DevOps
description: Context Mode Upgrade updates the context-mode plugin from its source and reconfigures hooks and settings. Use it when you need to pull the latest version, rebuild, reinstall the npm global package, and verify hooks are configured.
github: "https://github.com/mksglu/context-mode/tree/main/skills/ctx-upgrade"
language: TypeScript
stars: 19850
forks: 1430
install: "npx degit https://github.com/mksglu/context-mode/tree/main/skills/ctx-upgrade ~/.claude/skills/ctx-upgrade"
installs_to: ~/.claude/skills/ctx-upgrade
source_path: skills/ctx-upgrade/SKILL.md
collection_size: 11
category_size: 798
collection_url: "https://dirskills.com/collections/mksglu/context-mode"
added: 2026-08-14T07:12:40.242Z
last_synced: 2026-08-14T07:12:40.242Z
canonical_url: "https://dirskills.com/skills/context-mode-upgrade"
---

# Context Mode Upgrade

Context Mode Upgrade updates the context-mode plugin from its source and reconfigures hooks and settings. Use it when you need to pull the latest version, rebuild, reinstall the npm global package, and verify hooks are configured.

**Install:**

```bash
npx degit https://github.com/mksglu/context-mode/tree/main/skills/ctx-upgrade ~/.claude/skills/ctx-upgrade
```

## README

# 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
   ```
