跳到正文
Skillpedia
智能体33k · #8517

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/mksglu/context-mode/blob/main/skills/ctx-upgrade/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请把 context-mode 升级到最新版本,并修复它的钩子。”

每周 5 个新技能,1 分钟读完。

工作原理

这个技能会向升级工具请求需要运行的命令,执行这些命令,并显示步骤清单。之后它会请你重启会话,以便加载新版本。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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
    
常见问题

我需要重启吗?

需要。升级之后请重启会话,以便加载新版本。

如果升级工具失败怎么办?

这个技能有备用方案,会运行升级的命令行版本。

新版本从哪里来?

它会从 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能