Browse Source

docs: use npx skills add for skill installation

Replace curl command with `npx skills add ant-design/ant-design-pro`
in both cheatsheets.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
pull/11801/head
afc163 5 months ago
parent
commit
13157c4ad7
  1. 3
      docs/cheatsheet.en-US.md
  2. 3
      docs/cheatsheet.zh-CN.md

3
docs/cheatsheet.en-US.md

@ -495,8 +495,7 @@ Create a file in `src/models/` exporting a custom Hook, then use `useModel('file
**Q: How to upgrade the project?** **Q: How to upgrade the project?**
First, install the pro-upgrade skill into your project: First, install the pro-upgrade skill into your project:
```bash ```bash
mkdir -p .claude/skills/pro-upgrade npx skills add ant-design/ant-design-pro
curl -sL https://raw.githubusercontent.com/ant-design/ant-design-pro/master/.claude/skills/pro-upgrade/SKILL.md -o .claude/skills/pro-upgrade/SKILL.md
``` ```
Then run `/pro-upgrade` in Claude Code at the project root — AI will auto-diff the latest template and upgrade your project (deps, config, code patterns, etc.). For other AI assistants, paste the content of `.claude/skills/pro-upgrade/SKILL.md` to them. Then run `/pro-upgrade` in Claude Code at the project root — AI will auto-diff the latest template and upgrade your project (deps, config, code patterns, etc.). For other AI assistants, paste the content of `.claude/skills/pro-upgrade/SKILL.md` to them.

3
docs/cheatsheet.zh-CN.md

@ -495,8 +495,7 @@ export default {
**Q: 如何升级项目?** **Q: 如何升级项目?**
先将 pro-upgrade skill 安装到项目中: 先将 pro-upgrade skill 安装到项目中:
```bash ```bash
mkdir -p .claude/skills/pro-upgrade npx skills add ant-design/ant-design-pro
curl -sL https://raw.githubusercontent.com/ant-design/ant-design-pro/master/.claude/skills/pro-upgrade/SKILL.md -o .claude/skills/pro-upgrade/SKILL.md
``` ```
然后在项目根目录用 Claude Code 运行 `/pro-upgrade`,AI 会自动对比最新模板并完成升级(依赖、配置、代码模式等)。如使用其他 AI 助手,可将 `.claude/skills/pro-upgrade/SKILL.md` 中的内容提供给它。 然后在项目根目录用 Claude Code 运行 `/pro-upgrade`,AI 会自动对比最新模板并完成升级(依赖、配置、代码模式等)。如使用其他 AI 助手,可将 `.claude/skills/pro-upgrade/SKILL.md` 中的内容提供给它。

Loading…
Cancel
Save