opencli-skill

notes/research/github/opencli-skill-2026-03-17.md

Port 8777
path
notes/research/github/opencli-skill-2026-03-17.md
--- title: opencli-skill - 用自然语言操控 16 个主流平台 category: research source_type: github created_by: 小美虾 status: archived tags: - opencli - CLI - 社交媒体 - 自动化 - Claude Code - Skill --- # opencli-skill **仓库:** https://github.com/joeseesun/opencli-skill **作者:** [@joeseesun](https://github.com/joeseesun) / [@vista8](https://x.com/vista8) **基础工具:** [jackwener/opencli](https://github.com/jackwener/opencli) by [@jakevin7(卡比卡比)](https://github.com/jackwener) ## 简介 这是一个 Claude Code Skill,将 opencli CLI 工具封装成自然语言接口,让 AI 可以直接操控 16 个主流平台。 **核心特点:** - 复用 Chrome 浏览器登录态,无需 API Key - 支持读、搜、写操作 - 自然语言交互 ## 支持的平台 | 平台 | 读取 | 搜索 | 写操作 | |------|------|------|--------| | Bilibili (B 站) | ✅ 热门/排行/动态/历史 | ✅ 视频/用户 | — | | 知乎 | ✅ 热榜 | ✅ | ✅ 问题详情 | | 微博 | ✅ 热搜 | — | ✅ 发微博 | | Twitter/X | ✅ 时间线/热门/书签 | ✅ | ✅ 发推/回复/点赞 | | YouTube | — | ✅ | — | | 小红书 | ✅ 推荐 Feed | ✅ | — | | Reddit | ✅ 首页/热门 | ✅ | — | | HackerNews | ✅ Top stories | — | — | | V2EX | ✅ 热门/最新 | — | ✅ 签到 | | 雪球 | ✅ 热门/行情/自选股 | ✅ | — | | BOSS 直聘 | — | ✅ 职位 | — | | BBC | ✅ 新闻 | — | — | | 路透社 | — | ✅ | — | | 什么值得买 | — | ✅ | — | | Yahoo Finance | ✅ 股票行情 | — | — | | 携程 | — | ✅ 景点/城市 | — | ## 安装步骤 ### 前置条件 1. Node.js v16+ — [下载](https://nodejs.org/) 2. Chrome 浏览器已打开并登录目标网站 3. Playwright MCP Bridge Chrome 扩展 — [安装](https://chromewebstore.google.com/detail/playwright-mcp-bridge/kldoghpdblpjbjeechcaoibpfbgfomkn) 4. Claude Code — [安装](https://claude.ai/code) ### 第一步:安装 opencli ```bash npm install -g @jackwener/opencli opencli --version # 验证 ``` ### 第二步:安装 Chrome 扩展 在 Chrome 中安装 Playwright MCP Bridge 扩展,确保图标出现在工具栏。 ### 第三步:配置 Playwright MCP ```bash claude mcp add playwright --scope user -- npx @playwright/mcp@latest claude mcp list # 验证 ``` ### 第四步:安装 Skill ```bash npx skills add joeseesun/opencli-skill ``` 重启 Claude Code 后生效。 ## 使用示例 ``` 查下 B 站今天的热门 搜知乎上关于 AI 大模型的讨论 看微博热搜前 10 条 帮我发一条微博:今天天气真好 查一下茅台的股票行情 搜 YouTube 上的 LLM 教程 ``` ## 常用命令参考 ### B 站 ```bash opencli bilibili hot --limit 10 -f json opencli bilibili search --keyword "AI" ``` ### Twitter/X ```bash opencli twitter timeline -f json opencli twitter post --text "Hello from Claude!" opencli twitter search --query "claude AI" ``` ### YouTube ```bash opencli youtube search --query "LLM tutorial" ``` ### HackerNews ```bash opencli hackernews top --limit 20 -f json ``` ### Reddit ```bash opencli reddit hot --subreddit MachineLearning ``` ### 雪球 ```bash opencli xueqiu stock --symbol SH600519 # 茅台行情 opencli xueqiu watchlist # 自选股 ``` 完整 55 条命令详见:[references/commands.md](https://github.com/joeseesun/opencli-skill/blob/main/references/commands.md) ## 注意事项 ### 写操作风险 - 平台风控可能触发验证码或限流 - 发布后内容立即公开,无法撤回 - 避免短时间频繁操作 ### 常见问题 | 问题 | 解决方法 | |------|----------| | opencli: command not found | 重新运行 `npm install -g @jackwener/opencli`,检查 PATH | | Chrome 无法被控制 | 确保 Chrome 已打开,扩展已启用 | | 登录态未识别 | 在 Chrome 中手动登录目标网站 | | Playwright MCP not found | 重新执行配置命令 | | npx skills add 报错 | 确认 Node.js v16+ 已安装 | ## 相关链接 - GitHub: https://github.com/joeseesun/opencli-skill - 基础工具:https://github.com/jackwener/opencli - 作者 Twitter: https://x.com/vista8 --- *笔记创建时间:2026-03-17* *创建者:小美虾 🦐*