关于 qiaomu-opencli-usage
qiaomu-opencli-usage 是 OpenCLI 的使用指南技能,介绍其面向网站、桌面应用和外部 CLI 的命令行用法,涵盖适配器、命令分类、设置、管理与故障恢复。
主要功能
- 01网站和应用命令参考
- 02Browser Bridge 设置说明
- 03公共 API 命令示例
- 04外部 CLI 透传指南
- 05适配器管理命令
- 06自修复工作流说明
适用场景
- 01查找受支持网站的命令
- 02设置基于浏览器的命令
- 03管理或验证适配器
- 04修复运行失败的命令
安装
复制下面的命令,在终端中运行。
npx skills add https:/ / github.com/ joeseesun/ qiaomu-opencli-skills --skill qiaomu-opencli-usage安装后在 Claude Code 中输入/qiaomu-opencli-usage确认已加载。
附带文件commands.md
详细介绍
OpenCLI 使用指南
将任意网站或 Electron 应用变成命令行工具。复用 Chrome 登录状态,零风险,AI 驱动的发现功能。
安装和运行
# npm global install (recommended)
npm install -g @jackwener/opencli
opencli <command>
# Or from source
cd ~/code/opencli && npm install
npx tsx src/main.ts <command>
# Update to latest
npm update -g @jackwener/opencli
前提条件
浏览器命令需要:
- Chrome 浏览器正在运行 (已登录目标网站)
- 已安装 opencli Browser Bridge Chrome 扩展(在
chrome://extensions中加载extension/作为未打包扩展程序) - 无需进一步设置——首次运行浏览器命令时,守护进程会自动启动
注意:运行命令前,必须先在 Chrome 中登录目标网站。命令执行期间打开的标签页会在之后自动关闭。
公共 API 命令(hackernews、v2ex)无需浏览器。
按功能快速查找
| 功能 | 平台(部分列表) |
|---|---|
| 搜索 | Bilibili、Twitter、Reddit、小红书、知乎、YouTube、Google、arXiv、LinkedIn、Pixiv 等 |
| 热门/趋势 | Bilibili、Twitter、微博、HackerNews、Reddit、V2EX、雪球、Lobsters、豆瓣 |
| 信息流/时间线 | Twitter、Reddit、小红书、雪球、即刻、Facebook、Instagram、Medium |
| 用户/个人资料 | Twitter、Reddit、Instagram、TikTok、Facebook、Bilibili、Pixiv |
| 发布/创建 | Twitter、即刻、抖音、微博 |
| AI 聊天 | Grok、豆包、ChatGPT、Gemini、Cursor、Codex、NotebookLM |
| 金融/股票 | 雪球、Yahoo Finance、Barchart、新浪财经、Bloomberg |
| 网页抓取 | opencli web read --url <url> — 将任意 URL 转为 Markdown |
| GitHub/DevOps | opencli gh、opencli docker、opencli vercel — 外部命令行透传 |
| 协作 | opencli lark-cli、opencli dws、opencli wecom-cli — 外部命令行透传 |
命令速查
用法:opencli <site> <command> [args] [--limit N] [-f json|yaml|md|csv|table]
类型图例:🌐 = 浏览器(需要 Chrome 登录) · ✅ = 公共 API(无需浏览器) · 🖥️ = 桌面端(Electron/CDP) · 🔧 = 外部命令行(透传)
网站适配器
| 站点 | 类型 | 命令 |
|---|---|---|
| 1688 | 🌐 | search item download store |
| 36kr | 🌐 | hot news search article |
| amazon | 🌐 | bestsellers search product offer discussion movers-shakers new-releases |
| apple-podcasts | ✅ | top search episodes |
| arxiv | ✅ | search paper |
| band | 🌐 | bands posts post mentions |
| barchart | 🌐 | quote options greeks flow |
| bbc | ✅ | news |
| bilibili | 🌐 | hot search me favorite history feed user-videos subtitle dynamic ranking following |
| bloomberg | ✅🌐 | RSS:main markets tech politics economics opinions industries businessweek feeds · 浏览器:news(完整文章) |
| bluesky | 🌐 | search profile user feeds followers following thread trending starter-packs |
| boss | 🌐 | search detail recommend joblist greet batchgreet send chatlist chatmsg invite mark exchange resume stats |
| chaoxing | 🌐 | assignments exams |
| coupang | 🌐 | search add-to-cart |
| ctrip | 🌐 | search |
| devto | ✅ | top tag user |
| dictionary | ✅ | search synonyms examples |
| doubao | 🌐 | status new send read ask detail history meeting-summary meeting-transcript |
| douban | 🌐 | search top250 subject photos download marks reviews movie-hot book-hot |
| douyin | 🌐 | profile videos user-videos activities collections hashtag location stats publish draft drafts delete update |
| 🌐 | feed profile search friends groups events notifications memories add-friend join-group | |
| gemini | 🌐 | ask new image deep-research deep-research-result |
| ✅ | news search suggest trends | |
| grok | 🌐 | ask |
| hackernews | ✅ | top new best ask show jobs search user |
| hf | ✅ | top |
| hupu | 🌐 | hot search detail like unlike reply mentions |
| imdb | ✅ | top trending search title person reviews |
| 🌐 | explore profile search user followers following follow unfollow like unlike comment save unsave saved | |
| jd | 🌐 | item |
| jianyu | 🌐 | search |
| jike | 🌐 | feed search create like comment repost notifications post topic user |
| jimeng | 🌐 | generate history |
| lesswrong | ✅ | frontpage curated new top top-week top-month top-year shortform read comments user user-posts sequences tags tag |
| 🌐 | search timeline | |
| linux-do | 🌐 | hot latest feed search categories category tags topic topic-content user-posts user-topics |
| lobsters | ✅ | hot newest active tag |
| medium | 🌐 | feed search user |
| notebooklm | 🌐 | status list open current get history summary note-list notes-get source-list source-get source-fulltext source-guide |
| ones | 🌐 | login logout me tasks task my-tasks worklog token-info |
| paperreview | ✅ | submit review feedback |
| pixiv | 🌐 | ranking search user illusts detail download |
| producthunt | ✅ | today hot browse posts |
| quark | 🌐 | ls mkdir mv rename rm save share-tree |
| 🌐 | hot frontpage popular search subreddit read user user-posts user-comments upvote save comment subscribe saved upvoted | |
| reuters | 🌐 | search |
| sinablog | 🌐 | hot search article user |
| sinafinance | ✅ | news |
| smzdm | 🌐 | search |
| spotify | ✅ | auth status play pause next prev volume search queue shuffle repeat |
| stackoverflow | ✅ | hot search bounties unanswered |
| steam | ✅ | top-sellers |
| substack | 🌐 | feed search publication |
| tieba | 🌐 | hot search posts read |
| tiktok | 🌐 | explore search profile user following follow unfollow like unlike comment save unsave live notifications friends |
| 🌐 | trending bookmarks search profile timeline thread article follow unfollow bookmark unbookmark post like likes reply delete block unblock followers following notifications hide-reply download accept reply-dm | |
| v2ex | ✅🌐 | 公共:hot latest topic node nodes member user replies · 浏览器:daily me notifications |
| web | 🌐 | read — 将任意 URL 转换为 Markdown |
| 🌐 | hot search feed user me post comments | |
| weixin | 🌐 | download — 将公众号文章转换为 Markdown |
| weread | 🌐 | shelf search book highlights notes notebooks ranking |
| wikipedia | ✅ | search summary random trending |
| xianyu | 🌐 | search item chat |
| xiaoe | 🌐 | courses catalog content detail play-url |
| xiaohongshu | 🌐 | search notifications feed user note comments download publish creator-notes creator-note-detail creator-notes-summary creator-profile creator-stats |
| xiaoyuzhou | ✅ | podcast podcast-episodes episode |
| xueqiu | 🌐 | hot-stock stock watchlist feed hot search comments earnings-date fund-holdings fund-snapshot |
| yahoo-finance | 🌐 | quote |
| yollomi | 🌐 | models generate video upload remove-bg edit background face-swap object-remover restore try-on upscale |
| youtube | 🌐 | search video transcript |
| yuanbao | 🌐 | new ask |
| zhihu | 🌐 | hot search question |
| zsxq | 🌐 | groups dynamics topics topic search |
桌面应用(CDP/Electron)
| 应用 | 命令 |
|---|---|
| antigravity | status send read new dump extract-code model watch |
| chatgpt | status new send read ask model |
| chatwise | status new send read ask model history export screenshot |
| codex | status send read new dump extract-diff model ask screenshot history export |
| cursor | status send read new dump composer model extract-code ask screenshot history export |
| discord-app | status send read channels servers search members |
| doubao-app | status new send read ask screenshot dump |
| notion | status search read new write sidebar favorites export |
外部 CLI(透传)
OpenCLI 可发现、自动安装外部 CLI 工具,并将命令透传给它们。使用 opencli install <name> 自动安装,或使用 opencli register <name> 注册本地 CLI。
| CLI | 描述 | 命令 |
|---|---|---|
| gh | GitHub CLI — 仓库、PR、议题、发行版 | repo pr issue(所有 gh 子命令) |
| obsidian | Obsidian 知识库 — 笔记、搜索、标签 | 所有 obsidian 子命令 |
| docker | Docker CLI | 所有 docker 子命令 |
| lark-cli | Lark/Feishu — 消息、文档、日历、任务(200 多个命令) | 所有 lark-cli 子命令 |
| dws | DingTalk Workspace — 消息、文档、日历、联系人 | 所有 dws 子命令 |
| wecom-cli | WeCom/企业微信 — 联系人、待办事项、会议、消息 | 所有 wecom-cli 子命令 |
| vercel | Vercel — 部署、域名、环境变量、日志 | 所有 vercel 子命令 |
opencli install gh # Auto-install gh CLI
opencli register my-tool # Register a local custom CLI
opencli gh pr list --limit 5 # Passthrough to gh
opencli docker ps # Passthrough to docker
opencli lark-cli msg send ... # Passthrough to lark-cli
管理
opencli list [-f json|yaml] # List all commands
opencli validate [site] # Validate adapter definitions
opencli doctor # Diagnose browser bridge
opencli explore <url> # AI-powered API discovery
opencli record <url> # Record API calls manually
所有命令均支持:使用 table json yaml md csv 作为 --format / -f 的参数值
自我修复
如果命令因网站发生变化(选择器、API 或响应架构)而失败,请自动修复适配器并重试,而不是报告失败。使用 OPENCLI_DIAGNOSTIC=1 重新运行命令,以获取结构化诊断上下文,然后在 RepairContext.adapter.sourcePath 处修复适配器文件并重试。最多进行 3 轮修复。完整工作流请参阅 opencli-autofix 技能。
相关技能
- opencli-browser — 面向 AI Agent 的浏览器自动化(通过 Chrome 导航、点击、输入、提取)
- opencli-explorer — 创建新适配器的完整指南(API 发现、身份验证策略、TS 编写)
- opencli-oneshot — 用于从 URL 添加单个命令的快速 4 步模板
- opencli-autofix — 命令失败时自动修复损坏的适配器