@@ -44,6 +44,8 @@ This skill gives Codex a read-first, agent-safe operating path so it can:
4444- [ references/practical-scenarios.md] ( ./references/practical-scenarios.md ) : detailed scenario manual
4545- [ references/troubleshooting.md] ( ./references/troubleshooting.md ) : common failures and fixes
4646- [ examples/README.md] ( ./examples/README.md ) : example prompts and command recipes
47+ - [ examples/claude-code.md] ( ./examples/claude-code.md ) : Claude Code installation and prompt examples
48+ - [ scripts/validate_skill.py] ( ./scripts/validate_skill.py ) : portable validation script for CI and local checks
4749
4850## Install
4951
@@ -59,6 +61,44 @@ Or copy the folder contents manually into:
5961${CODEX_HOME:- $HOME / .codex} /skills/opencli
6062```
6163
64+ ## Use In Codex
65+
66+ Once installed, ask Codex naturally or invoke the skill explicitly:
67+
68+ ``` text
69+ Use $opencli to inspect the installed OpenCLI surface and fetch the Bilibili hot list.
70+ ```
71+
72+ ``` text
73+ Use $opencli to troubleshoot why my Zhihu command returns empty data.
74+ ```
75+
76+ Codex-oriented installation path:
77+
78+ ``` bash
79+ git clone git@github.com:GloriaGuo/opencli-skill.git " ${CODEX_HOME:- $HOME / .codex} /skills/opencli"
80+ ```
81+
82+ ## Use In Claude Code
83+
84+ Claude Code skills typically live under ` ~/.claude/skills ` . Copy or clone this repository there:
85+
86+ ``` bash
87+ git clone git@github.com:GloriaGuo/opencli-skill.git ~ /.claude/skills/opencli
88+ ```
89+
90+ Then ask Claude Code in natural language or reference the skill explicitly:
91+
92+ ``` text
93+ Use $opencli to run a safe read-first OpenCLI workflow for this task.
94+ ```
95+
96+ ``` text
97+ Use $opencli to inspect the local OpenCLI setup and tell me whether the Codex and Cursor adapters are available.
98+ ```
99+
100+ Claude Code usage examples are collected in [ examples/claude-code.md] ( ./examples/claude-code.md ) .
101+
62102## Recommended OpenCLI Setup
63103
64104``` bash
@@ -115,7 +155,7 @@ opencli bilibili download BV1xxx --output ./bilibili
115155## Validation
116156
117157``` bash
118- python3 /Users/ruiguo/.codex/skills/.system/skill-creator/ scripts/quick_validate .py .
158+ python3 scripts/validate_skill .py
119159```
120160
121161## 中文说明
@@ -145,6 +185,8 @@ python3 /Users/ruiguo/.codex/skills/.system/skill-creator/scripts/quick_validate
145185- [ references/practical-scenarios.md] ( ./references/practical-scenarios.md ) :详细实用场景手册
146186- [ references/troubleshooting.md] ( ./references/troubleshooting.md ) :常见故障排查
147187- [ examples/README.md] ( ./examples/README.md ) :可直接照抄的 prompt 和命令示例
188+ - [ examples/claude-code.md] ( ./examples/claude-code.md ) :Claude Code 安装与调用示例
189+ - [ scripts/validate_skill.py] ( ./scripts/validate_skill.py ) :本地与 CI 通用的校验脚本
148190
149191## 安装方式
150192
@@ -158,6 +200,44 @@ git clone git@github.com:GloriaGuo/opencli-skill.git "${CODEX_HOME:-$HOME/.codex
158200${CODEX_HOME:- $HOME / .codex} /skills/opencli
159201```
160202
203+ ## 在 Codex 里怎么用
204+
205+ 安装后,可以自然描述任务,也可以显式提到 ` $opencli ` :
206+
207+ ``` text
208+ Use $opencli to inspect the installed OpenCLI surface and fetch the Bilibili hot list.
209+ ```
210+
211+ ``` text
212+ Use $opencli to troubleshoot why my Zhihu command returns empty data.
213+ ```
214+
215+ Codex 默认安装路径:
216+
217+ ``` bash
218+ git clone git@github.com:GloriaGuo/opencli-skill.git " ${CODEX_HOME:- $HOME / .codex} /skills/opencli"
219+ ```
220+
221+ ## 在 Claude Code 里怎么用
222+
223+ Claude Code 的 skill 通常放在 ` ~/.claude/skills ` 下,可以这样安装:
224+
225+ ``` bash
226+ git clone git@github.com:GloriaGuo/opencli-skill.git ~ /.claude/skills/opencli
227+ ```
228+
229+ 然后直接用自然语言,或者显式提到 ` $opencli ` :
230+
231+ ``` text
232+ Use $opencli to run a safe read-first OpenCLI workflow for this task.
233+ ```
234+
235+ ``` text
236+ Use $opencli to inspect the local OpenCLI setup and tell me whether the Codex and Cursor adapters are available.
237+ ```
238+
239+ 更完整的 Claude Code 示例见 [ examples/claude-code.md] ( ./examples/claude-code.md ) 。
240+
161241## 推荐的 OpenCLI 环境准备
162242
163243``` bash
@@ -210,3 +290,9 @@ opencli bilibili download BV1xxx --output ./bilibili
210290- 以本机安装版本的命令面为准,不盲信旧文档
211291- agent 消费优先 ` json ` ,人工查看优先 ` yaml `
212292- 浏览器登录态是第一优先级依赖
293+
294+ ## 校验
295+
296+ ``` bash
297+ python3 scripts/validate_skill.py
298+ ```
0 commit comments