This pulls the latest context-mode plugin from GitHub, rebuilds it, updates your npm global install, and reconfigures hooks in one command. You'd run this when there's a new version available or if your installation got corrupted. It calls an MCP tool that generates the upgrade shell command, then formats the output as a nice checklist showing what version got installed and whether the doctor checks passed. The fallback is clever: if the MCP call fails, it figures out where the plugin lives by walking up from the skill directory and runs the upgrade directly. Just remember to restart your session afterward or you'll still be running the old version.
npx skills add https://github.com/mksglu/context-mode --skill ctx-upgrade