mcpField
Q
qiaomu-opencli-usage

qiaomu-opencli-usage

github.com/joeseesunAgent 工作流9971.0k 次安装29 周前更新
代码仓库

关于 qiaomu-opencli-usage

qiaomu-opencli-usage 是 OpenCLI 的使用指南技能,介绍其面向网站、桌面应用和外部 CLI 的命令行用法,涵盖适配器、命令分类、设置、管理与故障恢复。

主要功能

  1. 01网站和应用命令参考
  2. 02Browser Bridge 设置说明
  3. 03公共 API 命令示例
  4. 04外部 CLI 透传指南
  5. 05适配器管理命令
  6. 06自修复工作流说明

适用场景

  1. 01查找受支持网站的命令
  2. 02设置基于浏览器的命令
  3. 03管理或验证适配器
  4. 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

前提条件

浏览器命令需要:

  1. Chrome 浏览器正在运行 (已登录目标网站)
  2. 已安装 opencli Browser Bridge Chrome 扩展(在 chrome://extensions 中加载 extension/ 作为未打包扩展程序)
  3. 无需进一步设置——首次运行浏览器命令时,守护进程会自动启动

注意:运行命令前,必须先在 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/DevOpsopencli 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
facebook🌐feed profile search friends groups events notifications memories add-friend join-group
gemini🌐ask new image deep-research deep-research-result
google✅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
instagram🌐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
linkedin🌐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
reddit🌐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
twitter🌐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
weibo🌐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)
应用命令
antigravitystatus send read new dump extract-code model watch
chatgptstatus new send read ask model
chatwisestatus new send read ask model history export screenshot
codexstatus send read new dump extract-diff model ask screenshot history export
cursorstatus send read new dump composer model extract-code ask screenshot history export
discord-appstatus send read channels servers search members
doubao-appstatus new send read ask screenshot dump
notionstatus search read new write sidebar favorites export
外部 CLI(透传)

OpenCLI 可发现、自动安装外部 CLI 工具,并将命令透传给它们。使用 opencli install <name> 自动安装,或使用 opencli register <name> 注册本地 CLI。

CLI描述命令
ghGitHub CLI — 仓库、PR、议题、发行版repo pr issue(所有 gh 子命令)
obsidianObsidian 知识库 — 笔记、搜索、标签所有 obsidian 子命令
dockerDocker CLI所有 docker 子命令
lark-cliLark/Feishu — 消息、文档、日历、任务(200 多个命令)所有 lark-cli 子命令
dwsDingTalk Workspace — 消息、文档、日历、联系人所有 dws 子命令
wecom-cliWeCom/企业微信 — 联系人、待办事项、会议、消息所有 wecom-cli 子命令
vercelVercel — 部署、域名、环境变量、日志所有 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 — 命令失败时自动修复损坏的适配器

评论

支持 Markdown