跳到正文
Skillpedia
通用编程31k · #9335

opencli-usage

它能做什么

这项技能说明如何为某项任务找到合适的 OpenCLI 命令,并解读其输出。内容涵盖网站适配器和直接的 Chrome 工具。

适用场景

  • ✓当你想为某个网站或任务找到 OpenCLI 命令时。
  • ✓当你需要知道某个命令接受哪些输入时。
  • ✓当你想解读 OpenCLI 的结果,或从错误中恢复时。

技能链接

https://github.com/jackwener/OpenCLI/blob/main/skills/opencli-usage/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/jackwener/OpenCLI/blob/main/skills/opencli-usage/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请找一个搜索 GitHub 的 OpenCLI 命令,并告诉我如何运行它。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会通过关键词搜索命令列表,查看帮助以确认确切的输入,然后运行命令。它会读取 JSON 结果或错误代码,并利用建议的提示进行恢复。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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).

常见问题

它会一次列出所有命令吗?

不会。结果会分页显示,并通过关键词搜索,以保持输出简短。

结果如何返回?

默认以带有 ok 字段的 JSON 形式返回,错误会包含代码和消息。

如果写入操作失败怎么办?

智能体会先检查当前状态,然后再尝试重新执行该操作。

详情

作者的原始描述

Discover and invoke OpenCLI capabilities for websites and Chrome. Find commands, inspect schemas, interpret results and choose browser or adapter tools.

repo: jackwener/OpenCLI

热度

GitHub 星标
31k
排名
#9335
许可证
Apache-2.0
更新时间
2026/10/26

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能