Agent Skillsmksglu/context-mode › ctx-upgrade

ctx-upgrade

GitHub

用于升级 context-mode 插件,从 GitHub 拉取最新代码并重新安装。通过 MCP 工具或 Shell 命令执行构建、安装及配置钩子,并提供版本检查结果与重启指引。

skills/ctx-upgrade/SKILL.md mksglu/context-mode

Trigger Scenarios

/context-mode:ctx-upgrade

Install

npx skills add mksglu/context-mode --skill ctx-upgrade -g -y
More Options

Use without installing

npx skills use mksglu/context-mode@ctx-upgrade

指定 Agent (Claude Code)

npx skills add mksglu/context-mode --skill ctx-upgrade -a claude-code -g -y

安装 repo 全部 skill

npx skills add mksglu/context-mode --all -g -y

预览 repo 内 skill

npx skills add mksglu/context-mode --list

SKILL.md

Frontmatter
{
    "name": "ctx-upgrade",
    "description": "Update context-mode from GitHub and fix hooks\/settings.\nPulls latest, builds, installs, updates npm global, configures hooks.\nTrigger: \/context-mode:ctx-upgrade\n",
    "user-invocable": true
}

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
    

Version History

  • 6aad62f Current 2026-07-24 17:38

Same Skill Collection

configs/antigravity-cli/skills/context-mode/SKILL.md
configs/copilot-cli/skills/context-mode/SKILL.md
skills/ctx-doctor/SKILL.md
skills/ctx-index/SKILL.md
skills/ctx-insight/SKILL.md
skills/ctx-purge/SKILL.md
skills/ctx-search/SKILL.md
skills/ctx-stats/SKILL.md
.claude/skills/context-mode-ops/SKILL.md
skills/context-mode/SKILL.md

Metadata

Files
0
Version
a029670
Hash
e9c0d55a
Indexed
2026-07-24 17:38

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-16 21:02
浙ICP备14020137号-1 $mapa de visitantes$