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 从公开仓库中收录这些内容。

举报或申请下架