ctx-upgrade
它能做什么
这个技能把 context-mode 插件更新到最新版本,并修复其设置。适合希望安装最新的 context-mode 版本、又不想手动安装的用户。
适用场景
- ✓当用户想安装最新的 context-mode 版本的时候。
- ✓当 context-mode 的钩子或设置在早前安装后出现问题的时候。
- ✓当诊断检查显示插件需要彻底重新安装的时候。
技能链接
https://github.com/mksglu/context-mode/blob/main/skills/ctx-upgrade/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请把 context-mode 升级到最新版本,并修复它的钩子。”
每周 5 个新技能,1 分钟读完。
工作原理
这个技能会向升级工具请求需要运行的命令,执行这些命令,并显示步骤清单。之后它会请你重启会话,以便加载新版本。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Context Mode Upgrade
Pull latest from GitHub and reinstall the plugin.
Instructions
- Call the
ctx_upgradeMCP tool directly. It returns a shell command to execute. - Run the returned command using your shell execution tool (Bash, shell_execute, etc.).
- Display results as a markdown checklist:
Use## context-mode upgrade - [x] Pulled latest from GitHub - [x] Built and installed v1.0.39 - [x] Hooks configured - [x] Doctor: all checks PASS[x]for success,[ ]for failure. Show actual version numbers. - Tell the user to restart their session to pick up the new version.
- 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
常见问题
我需要重启吗?
需要。升级之后请重启会话,以便加载新版本。
如果升级工具失败怎么办?
这个技能有备用方案,会运行升级的命令行版本。
新版本从哪里来?
它会从 GitHub 拉取最新代码,构建并安装。
详情
作者的原始描述
Update context-mode from GitHub and fix hooks/settings. Pulls latest, builds, installs, updates npm global, configures hooks. Trigger: /context-mode:ctx-upgrade
repo: mksglu/context-mode
热度
- GitHub 星标
- 33k
- 排名
- #8517
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
context-mode
33k教你的智能体使用 context-mode 工具来读取、搜索和运行大量数据的任务,让大型输出不占用主对话空间。
context-mode
33k教你的智能体在沙箱中处理数据密集型的工作,只输出答案,让原始文件和网页不会淹没对话。
context-mode
33k教你的智能体在输出可能很大时(例如日志、JSON 或构建结果),使用 context-mode 工具代替普通的 shell 命令。
ctx-doctor
33k运行 context-mode 诊断,检查运行环境、钩子、搜索存储、插件设置和版本,然后显示清晰的通过或失败报告。