English | 中文
一个面向多种 AI agent 环境的 OpenCLI skill,帮助 agent 用更稳定、可发现、只读优先的方式调用 OpenCLI。
OpenCLI 本身覆盖了很多能力:
- 公共数据命令
- 浏览器登录态复用的网站适配器
- Electron 桌面应用适配器
- 本地 CLI passthrough
- 站点适配器生成
这个 skill 的目标不是重复官方 README,而是让 agent 在真实任务里更稳定地做对这些事:
- 先发现本机实际安装的命令面
- 再选择正确的站点、桌面应用或 CLI 路径
- 优先使用结构化输出
- 在浏览器场景里优先检查 Browser Bridge 和登录态
- 在可能写入的场景里默认先读后写
- OpenCLI 与 browser agent / Playwright 的选型
opencli list -f yaml的发现式使用方式- Chrome 登录态复用的网站命令
- Codex、Cursor 等桌面应用适配器
gh、docker一类的 passthrough CLI- 下载文章、图片、视频
- OpenCLI adapter 生成与排障
- OpenClaw / Claude Code / Codex 的安装与调用方式
- SKILL.md:主 skill
- agents/openai.yaml:UI 元数据
- references/agent-playbook.md:最短 agent-first 路径
- references/commands.md:常用命令与输出格式
- references/china-workflows.md:中文平台和桌面应用示例
- references/practical-scenarios.md:详细实用场景手册
- references/troubleshooting.md:排障说明
- examples/README.md:示例入口
- examples/claude-code.md:Claude Code 用法
- examples/openclaw.md:OpenClaw 用法
- examples/openclaw-prompts.md:OpenClaw prompt 模板
- examples/openclaw.json5.example:OpenClaw 配置示例
- assets/banner.svg:仓库 banner 源文件
- assets/social-preview.png:可直接上传到 GitHub 的社交预览图
- install.sh:Unix-like 环境一键安装脚本
- install.ps1:PowerShell 一键安装脚本
Unix-like shell:
./install.sh codex
./install.sh claude
./install.sh openclaw
./install.sh openclaw-workspace如果不想先 clone,也可以直接远程执行:
curl -fsSL https://raw.githubusercontent.com/GloriaGuo/opencli-skill/main/install.sh | bash -s -- codex
curl -fsSL https://raw.githubusercontent.com/GloriaGuo/opencli-skill/main/install.sh | bash -s -- claude
curl -fsSL https://raw.githubusercontent.com/GloriaGuo/opencli-skill/main/install.sh | bash -s -- openclawPowerShell:
./install.ps1 codex
./install.ps1 claude
./install.ps1 openclaw
./install.ps1 openclaw-workspace如果不想先 clone,也可以直接远程执行:
irm https://raw.githubusercontent.com/GloriaGuo/opencli-skill/main/install.ps1 | iex仓库里已经自带两份可直接使用的素材:
上传到 GitHub 的路径是:
- 打开仓库页面
- 进入
Settings - 在
General里找到Social preview - 点击
Upload an image - 选择 assets/social-preview.png
其中 SVG 已经显示在 README 顶部。如果你后面想换成更宽的预览图,可以把 SVG 重新导出为 1280×640 或 2560×1280。
git clone https://github.com/GloriaGuo/opencli-skill.git "${CODEX_HOME:-$HOME/.codex}/skills/opencli"git clone https://github.com/GloriaGuo/opencli-skill.git ~/.claude/skills/opencli共享安装:
git clone https://github.com/GloriaGuo/opencli-skill.git ~/.openclaw/skills/opencliworkspace 安装:
git clone https://github.com/GloriaGuo/opencli-skill.git ./skills/openclinpm install -g @jackwener/opencli
opencli doctor
opencli list -f yaml如果要跑浏览器类命令:
- 保持 Chrome 打开
- 在 Chrome 中登录目标网站
- 安装并启用 OpenCLI Browser Bridge 扩展
OpenClaw 配置文件:
~/.openclaw/openclaw.json
一个最小可用配置:
{
skills: {
load: {
watch: true,
watchDebounceMs: 250,
},
entries: {
opencli: {
enabled: true,
},
},
},
}如果你有一个集中维护的 skill 目录:
{
skills: {
load: {
extraDirs: [
"/Users/you/skill-packs",
],
watch: true,
watchDebounceMs: 250,
},
},
}公共数据:
opencli hackernews top --limit 5 -f json浏览器站点:
opencli bilibili hot --limit 5 -f json
opencli zhihu search "Android 性能优化" -f json桌面应用:
opencli codex read -f json
opencli cursor read -f json
opencli cursor ask "总结当前工作区最近一次对话"- 想快速上手:看 README.md
- 想看真实场景:看 references/practical-scenarios.md
- 想看中文平台示例:看 references/china-workflows.md
- 想在 OpenClaw 里用:看 examples/openclaw.md
- 想直接抄 prompt:看 examples/openclaw-prompts.md