plugins/jay-ai-basis-env/skills/update-claude-code/SKILL.md
更新 Claude Code CLI 到最新版本。当用户说"更新 Claude Code"、"升级 Claude Code"、"update claude code"、"claude code 太旧了"、"执行 install.sh 更新",或者想让 Claude 自我更新时,立即使用此 skill。不要等用户明确说"用 npm"——只要涉及更新 Claude Code 本身,就使用这个 skill。
npx skillsauth add nangongwentian-fe/agent-skills update-claude-codeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
npm install -g @anthropic-ai/claude-code@latest
claude --version
向用户报告更新后的版本号。
清理旧版本:检查本机是否存在多个 Claude Code 版本残留,如有则只保留最新版本:
# 检查本地版本目录
ls ~/.local/share/claude/versions/
# 获取当前 symlink 指向的版本
readlink ~/.local/bin/claude
如果存在多个版本目录,不要只改 symlink——自动回滚机制会把 symlink 改回去。正确做法是通过 npm 安装来彻底绕开这套机制:
npm install -g @anthropic-ai/claude-code@latest
npm 安装的版本路径(通常为 ~/.nvm/versions/node/vX.X.X/bin/claude 或系统 npm bin)在 PATH 中优先级高于 ~/.local/bin/claude,可完全绕开自动回滚机制。
安装完成后,清理旧版本目录:
# 删除全部版本残留目录
rm -rf ~/.local/share/claude/versions/
再次验证版本正确:
claude --version && which claude
确认 which claude 输出的是 npm 路径(如 ~/.nvm/...),而不是 ~/.local/bin/claude。
curl -fsSL https://claude.ai/install.sh | bash 这种方式在部分地区(如中国大陆)无法访问,会返回 HTML 错误页面而非安装脚本,不要使用。npm --version,并提示用户先安装 Node.js。~/.local/share/claude/versions/ 目录,~/.local/bin/claude 是一个 symlink。当新版本崩溃时会自动回滚 symlink 到旧版本,导致 --version 显示的版本低于预期。仅修改 symlink 无法解决问题,回滚机制会重新下载旧版并改回去。必须通过 npm 安装来绕开这套机制。~/.local/share/claude/versions/ 目录后,npm 安装的版本不受影响,仍可正常使用。development
网页内容获取技巧集合。当用户需要抓取网页内容、提取文章正文、获取社交媒体帖子内容、读取任意 URL 的文本或 Markdown 格式内容时使用。 无论用户是想"获取某个网页的内容"、"抓取这个链接"、"读取这篇文章"、"把这个页面转成 Markdown",还是想访问 X/Twitter、微信、知乎、Medium 等平台的内容,都应触发此 skill。 包含多种方法,覆盖不同场景:Markdown 提取、绕过付费墙、结构化数据抓取等。持续迭代更新中。
tools
Post-action workflow that triggers automatically after creating a new skill or updating an existing skill. Ask the user whether to sync the skill to the jay-skills repository and publish to remote. Use whenever a SKILL.md has just been created or modified.
tools
信息可视化呈现行为准则。当模型回复中包含对比、步骤、配置、架构等结构化信息时自动激活,确保优先使用表格、代码块、列表、树形结构等可视化格式,而不是纯文字堆砌。触发词:「用表格」「画个图」「列个表」「结构化一下」「别光用文字」「可视化」「对比一下」。即使没有触发词,只要回复中包含适合可视化的结构化信息,本 skill 的规则就应生效。也适用于:「太多字了看不下去」「能不能更直观一点」「整理成表格」等场景。
testing
Design, create, split, or revise Markdown/project documentation using progressive disclosure so agents and humans can find the right level of detail without context bloat. Use when writing docs, README files, runbooks, architecture notes, deployment guides, troubleshooting docs, rules, skills, or when deciding whether content belongs in an existing document or should become a new document.