Skip to content

Commit b08171e

Browse files
committed
Improve discoverability with Chinese README and search topics
1 parent d5029b3 commit b08171e

2 files changed

Lines changed: 167 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# OpenCLI Skill
22

3-
English | [中文](#中文说明)
3+
English | [中文](./README.zh-CN.md)
44

55
An agent skill for working with [OpenCLI](https://github.com/jackwener/opencli): command discovery, browser-login reuse, desktop-app adapters, downloads, troubleshooting, and adapter-generation workflows.
66

README.zh-CN.md

Lines changed: 166 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
1+
# OpenCLI Skill
2+
3+
[English](./README.md) | 中文
4+
5+
一个面向多种 AI agent 环境的 OpenCLI skill,帮助 agent 用更稳定、可发现、只读优先的方式调用 OpenCLI。
6+
7+
仓库地址:[GloriaGuo/opencli-skill](https://github.com/GloriaGuo/opencli-skill)
8+
9+
## 这个 skill 是做什么的
10+
11+
OpenCLI 本身覆盖了很多能力:
12+
13+
- 公共数据命令
14+
- 浏览器登录态复用的网站适配器
15+
- Electron 桌面应用适配器
16+
- 本地 CLI passthrough
17+
- 站点适配器生成
18+
19+
这个 skill 的目标不是重复官方 README,而是让 agent 在真实任务里更稳定地做对这些事:
20+
21+
- 先发现本机实际安装的命令面
22+
- 再选择正确的站点、桌面应用或 CLI 路径
23+
- 优先使用结构化输出
24+
- 在浏览器场景里优先检查 Browser Bridge 和登录态
25+
- 在可能写入的场景里默认先读后写
26+
27+
## 覆盖内容
28+
29+
- OpenCLI 与 browser agent / Playwright 的选型
30+
- `opencli list -f yaml` 的发现式使用方式
31+
- Chrome 登录态复用的网站命令
32+
- Codex、Cursor 等桌面应用适配器
33+
- `gh``docker` 一类的 passthrough CLI
34+
- 下载文章、图片、视频
35+
- OpenCLI adapter 生成与排障
36+
- OpenClaw / Claude Code / Codex 的安装与调用方式
37+
38+
## 仓库结构
39+
40+
- [SKILL.md](./SKILL.md):主 skill
41+
- [agents/openai.yaml](./agents/openai.yaml):UI 元数据
42+
- [references/agent-playbook.md](./references/agent-playbook.md):最短 agent-first 路径
43+
- [references/commands.md](./references/commands.md):常用命令与输出格式
44+
- [references/china-workflows.md](./references/china-workflows.md):中文平台和桌面应用示例
45+
- [references/practical-scenarios.md](./references/practical-scenarios.md):详细实用场景手册
46+
- [references/troubleshooting.md](./references/troubleshooting.md):排障说明
47+
- [examples/README.md](./examples/README.md):示例入口
48+
- [examples/claude-code.md](./examples/claude-code.md):Claude Code 用法
49+
- [examples/openclaw.md](./examples/openclaw.md):OpenClaw 用法
50+
- [examples/openclaw-prompts.md](./examples/openclaw-prompts.md):OpenClaw prompt 模板
51+
- [examples/openclaw.json5.example](./examples/openclaw.json5.example):OpenClaw 配置示例
52+
53+
## 安装
54+
55+
### Codex
56+
57+
```bash
58+
git clone git@github.com:GloriaGuo/opencli-skill.git "${CODEX_HOME:-$HOME/.codex}/skills/opencli"
59+
```
60+
61+
### Claude Code
62+
63+
```bash
64+
git clone git@github.com:GloriaGuo/opencli-skill.git ~/.claude/skills/opencli
65+
```
66+
67+
### OpenClaw
68+
69+
共享安装:
70+
71+
```bash
72+
git clone git@github.com:GloriaGuo/opencli-skill.git ~/.openclaw/skills/opencli
73+
```
74+
75+
workspace 安装:
76+
77+
```bash
78+
git clone git@github.com:GloriaGuo/opencli-skill.git ./skills/opencli
79+
```
80+
81+
## 推荐的 OpenCLI 环境准备
82+
83+
```bash
84+
npm install -g @jackwener/opencli
85+
opencli doctor
86+
opencli list -f yaml
87+
```
88+
89+
如果要跑浏览器类命令:
90+
91+
- 保持 Chrome 打开
92+
- 在 Chrome 中登录目标网站
93+
- 安装并启用 OpenCLI Browser Bridge 扩展
94+
95+
## 在 OpenClaw 里推荐的配置
96+
97+
OpenClaw 配置文件:
98+
99+
```text
100+
~/.openclaw/openclaw.json
101+
```
102+
103+
一个最小可用配置:
104+
105+
```json5
106+
{
107+
skills: {
108+
load: {
109+
watch: true,
110+
watchDebounceMs: 250,
111+
},
112+
entries: {
113+
opencli: {
114+
enabled: true,
115+
},
116+
},
117+
},
118+
}
119+
```
120+
121+
如果你有一个集中维护的 skill 目录:
122+
123+
```json5
124+
{
125+
skills: {
126+
load: {
127+
extraDirs: [
128+
"/Users/you/skill-packs",
129+
],
130+
watch: true,
131+
watchDebounceMs: 250,
132+
},
133+
},
134+
}
135+
```
136+
137+
## 快速示例
138+
139+
公共数据:
140+
141+
```bash
142+
opencli hackernews top --limit 5 -f json
143+
```
144+
145+
浏览器站点:
146+
147+
```bash
148+
opencli bilibili hot --limit 5 -f json
149+
opencli zhihu search "Android 性能优化" -f json
150+
```
151+
152+
桌面应用:
153+
154+
```bash
155+
opencli codex read -f json
156+
opencli cursor read -f json
157+
opencli cursor ask "总结当前工作区最近一次对话"
158+
```
159+
160+
## 推荐从这些文件开始看
161+
162+
- 想快速上手:看 [README.md](./README.md)
163+
- 想看真实场景:看 [references/practical-scenarios.md](./references/practical-scenarios.md)
164+
- 想看中文平台示例:看 [references/china-workflows.md](./references/china-workflows.md)
165+
- 想在 OpenClaw 里用:看 [examples/openclaw.md](./examples/openclaw.md)
166+
- 想直接抄 prompt:看 [examples/openclaw-prompts.md](./examples/openclaw-prompts.md)

0 commit comments

Comments
 (0)