Skip to content

Commit c310196

Browse files
committed
docs: polish tone for skill installation guide
1 parent a04d032 commit c310196

File tree

1 file changed

+23
-20
lines changed

1 file changed

+23
-20
lines changed

site/pages/docs/skills.mdx

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,27 @@
11
---
22
order: 9
3-
title: 安装 Skill(AI 接入助手)
3+
title: 安装与使用 Skill
44
type: 进阶指南
55
---
66

77
import { Callout } from "nextra/components";
88

9-
这篇文档只服务一个目标:
10-
**让你更快把 `react-native-update` 接进项目。**
9+
本文介绍如何安装并使用 `react-native-update` 的官方 Skill,帮助你在 AI 编程工具中更高效地完成接入、配置与排查。
1110

12-
如果你正在用 Claude Code、Codex、Cursor 等 AI 编程工具,先安装这个统一 Skill`react-native-update`
11+
## Skill 信息
1312

14-
## 一条命令安装(推荐)
13+
- Skill 名称:`react-native-update`
14+
- 源仓库:`reactnativecn/react-native-update-skill`
15+
16+
## 安装(推荐)
17+
18+
安装到当前环境支持的所有 Agent:
1519

1620
```bash
1721
npx skills add reactnativecn/react-native-update-skill --skill react-native-update -a '*'
1822
```
1923

20-
如果你只想给 Claude Code 安装
24+
仅安装到 Claude Code:
2125

2226
```bash
2327
npx skills add reactnativecn/react-native-update-skill --skill react-native-update -a claude-code
@@ -30,35 +34,34 @@ npx skills check
3034
npx skills update
3135
```
3236

33-
## 安装后怎么用
37+
## 使用方式
3438

35-
直接给 AI 助手下需求,例如:
39+
安装后,可以直接向 AI 助手提出接入需求,例如:
3640

37-
- “帮我在 Expo 项目接入 react-native-update,给最小改动方案”
38-
- “我是 class 组件根节点,给我可直接粘贴的接入代码”
39-
- “帮我做灰度发布,用白名单控制更新范围”
40-
- “热更新没生效,按清单帮我排查”
41+
- Expo 项目中接入 `react-native-update`
42+
- class 组件根节点中完成接入改造
43+
- 配置白名单灰度发布策略
44+
- 排查“热更新未生效”问题
4145

42-
## 这个 Skill 能做什么
46+
## Skill 覆盖内容
4347

44-
- RN CLI / Expo 接入步骤
45-
- `update.json` / `appKey` 配置检查
48+
- RN CLI / Expo 接入流程
49+
- `update.json` `appKey` 配置检查
4650
- iOS / Android 关键改动提示
4751
- 更新策略建议(`checkStrategy` / `updateStrategy`
4852
- 常见冲突排查(如 `expo-updates`
49-
- class 组件与白名单灰度示例
53+
- class 组件与白名单示例
5054

5155
<Callout type="info">
52-
统一维护的 Skill 名称`react-native-update`。请使用这个名称,避免历史版本混淆
56+
为避免版本混淆,请统一使用 slug`react-native-update`
5357
</Callout>
5458

55-
## 发布地址
59+
## 相关链接
5660

57-
- Skills 仓库:
61+
- 仓库:
5862
<a href="https://github.com/reactnativecn/react-native-update-skill" target="_blank">
5963
https://github.com/reactnativecn/react-native-update-skill
6064
</a>
61-
- skills.sh / CLI 安装来源:`reactnativecn/react-native-update-skill`
6265
- ClawHub 页面(可选):
6366
<a href="https://clawhub.ai/skills/react-native-update" target="_blank">
6467
https://clawhub.ai/skills/react-native-update

0 commit comments

Comments
 (0)