Agent Skills › jackwener/OpenCLI › opencli-usage

opencli-usage

GitHub

指导 Agent 使用 OpenCLI 发现、调用网站适配器和 Chrome 原生工具,管理浏览器会话与插件,统一 JSON 交互格式。

skills/opencli-usage/SKILL.md jackwener/OpenCLI

触发场景

需要自动化操作特定网站或 Chrome 浏览器 查询并执行 OpenCLI 提供的命令

安装

npx skills add jackwener/OpenCLI --skill opencli-usage -g -y
更多选项

不安装直接使用

npx skills use jackwener/OpenCLI@opencli-usage

指定 Agent (Claude Code)

npx skills add jackwener/OpenCLI --skill opencli-usage -a claude-code -g -y

安装 repo 全部 skill

npx skills add jackwener/OpenCLI --all -g -y

预览 repo 内 skill

npx skills add jackwener/OpenCLI --list

SKILL.md

Frontmatter
{
    "name": "opencli-usage",
    "description": "Discover and invoke OpenCLI capabilities for websites and Chrome. Find commands, inspect schemas, interpret results and choose browser or adapter tools.",
    "allowed-tools": "Bash(opencli:*), Read"
}

OpenCLI

OpenCLI exposes reusable website adapters and direct Chrome tools to agents.

opencli list search
opencli list --site github --limit 20
opencli github search --help -f json

list [query] searches command names and descriptions across built-ins and adapters. Results are compact and paginated: {ok:true,data:{commands,total,nextOffset?}}. Pass --offset <nextOffset> to continue. Inspect exact inputs using command help. Do not hard-code the adapter catalog or dump all commands into context.

Results

Commands default to JSON: {ok:true,data:...}. Failures produce a nonzero exit code and {ok:false,error:{code,message,hint?,...}} on stdout. Logs use stderr. Explicit -f table|yaml|csv|md|plain exports are available where command help lists them. Help, version, completion and explicit plain exports retain their own formats. Browser follow modes stream one JSON envelope per line.

Use error codes and supplied candidates/keys to recover. Unknown write outcomes require inspecting state before repeating an action. An empty successful result is distinct from an execution failure.

Browser

opencli browser open https://example.com --session research
opencli browser state --session research
opencli browser close --session research
opencli browser chrome describe

Page commands use --session; native Chrome methods need no session. --profile selects a connected Chrome profile. profile list discovers profiles and profile use <name> selects the default. Use doctor for connection diagnosis. See opencli-browser for interaction, API evidence and tab/group management.

Adapters and installation

opencli adapter init example/search
opencli adapter check example/search
opencli adapter test example/search --args '{"query":"hello"}'
opencli adapter status

See opencli-adapter-author for implementation. adapter eject makes an official site editable locally; adapter reset removes that local override. Adapter tests execute real commands and can perform writes.

plugin list|install|update|uninstall|create manages plugin packages. auth status reports website login facts; auth refresh touches sessions. daemon status|restart|stop manages the bridge process. Read help for the selected capability.

Bundled skill content is available through skills list and skills read opencli-browser -f plain (omit -f plain for JSON).

版本历史

  • e6174a9 当前 2026-10-19 12:22

    重构 CLI 简化 Agent 工作流,添加原生 Chrome 工具支持,统一 JSON 结果格式,移除 Electron 桌面自动化。

  • 2413694 2026-09-28 04:36

    移除站点地图和外部CLI中心功能,升级js-yaml修复安全漏洞

  • 5256711 2026-07-25 10:06

同 Skill 集合

skills/opencli-adapter-author/SKILL.md
skills/opencli-autofix/SKILL.md
skills/opencli-browser-sitemap/SKILL.md
skills/opencli-browser/SKILL.md
skills/opencli-sitemap-author/SKILL.md
skills/smart-search/SKILL.md
clis/antigravity/SKILL.md

元信息

文件数
0
版本
e6174a9
Hash
cb7d9baa
收录时间
2026-07-25 10:06

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-20 21:44
浙ICP备14020137号-1