Ctx Upgrade

mksglu/context-mode/skills/ctx-upgrade

作者 mksglua6c43765d26b無授權條款25K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫今天更新

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

僅含說明DevOps & Cloud
AI 產生的概覽

從 GitHub 更新 context-mode 外掛,重新建置並安裝,並重新設定其鉤子與設定。

功能
此技能透過呼叫 MCP 工具取得一段 shell 指令,再執行該指令來拉取最新原始碼、建置、安裝、更新 npm 全域套件並設定鉤子,藉此升級 context-mode 外掛。它會以 markdown 檢查清單呈現結果,顯示實際版本號與 doctor 檢查結果。它也會提醒使用者重新啟動工作階段以套用新版本,並在 MCP 工具呼叫失敗時提供手動備援指令。
適用情境
當 context-mode 外掛需要更新至 GitHub 最新版本,或其鉤子與設定需要修復時使用。它由指令 /context-mode:ctx-upgrade 觸發。
執行需求
需要 ctx_upgrade MCP 工具以及 Bash 等 shell 執行工具。備援路徑需要 Node.js 與外掛內附的 CLI 檔案。拉取與更新過程隱含需要連線至 GitHub 與 npm 的網路存取。此技能未隨附指令碼。

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

來源與署名

來源:mksglu/context-mode位於skills/ctx-upgrade提交a6c4376

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架