openclaw 网盘下载
OpenClaw

技能详情(站内镜像,无评论)

首页 > 技能库 > opencli-social-platforms

Use opencli CLI to control Bilibili, Twitter/X, YouTube, Zhihu, Reddit, HackerNews, and 10+ other platforms via natural language, reusing your Chrome login s...

媒体与内容

许可证:MIT-0

MIT-0 ·免费使用、修改和重新分发。无需归因。

版本:v1.0.0

统计:⭐ 0 · 174 · 1 current installs · 1 all-time installs

0

安装量(当前) 1

🛡 VirusTotal :可疑 · OpenClaw :可疑

Package:adisinghstudent/opencli-social-platforms

安全扫描(ClawHub)

  • VirusTotal :可疑
  • OpenClaw :可疑

OpenClaw 评估

The skill's instructions broadly match a tool that automates social platforms via your Chrome session, but there are multiple inconsistencies and high‑privilege installation steps (npm installs, Playwright bridge, Chrome extension) that warrant caution before installing or running anything it recommends.

目的

The SKILL.md describes a CLI that reuses your Chrome login sessions to read and post across many platforms — requiring Chrome, a Playwright bridge extension, and an npm package — which is coherent with the claimed purpose. However, there are metadata mismatches: the skill registry entry is named opencli-social-platforms, SKILL.md claims authorship by ara.so and instructs installing @jackwener/opencli and adding joeseesun/opencli-skill via npx;…

说明范围

The runtime instructions tell the agent (or user) to install global npm packages, add a Playwright MCP harness to the agent, and install a Chrome extension that enables reusing logged‑in sessions. These steps give the resulting tooling capability to control any account currently logged into Chrome (read timelines, post content, like, etc.). While that capability is necessary for the stated function, the instructions also point the user to run …

安装机制

The skill is instruction‑only in the registry, but the SKILL.md instructs installing packages via npm (npm install -g @jackwener/opencli) and using npx to add other components. Installing third‑party npm packages globally or via npx runs remote code with your privileges and is a higher risk install mechanism; the SKILL.md points to multiple external authors/repos (jackwener, joeseesun, ara.so) and to a Chrome Web Store extension — the source p…

证书

The skill declares no required env vars, which aligns with a browser‑session approach (no API keys). However, reusing Chrome logins gives the tool access to any accounts logged into that browser (email, cloud consoles, payments, social), and the tool can perform writes (post tweets, Weibo, V2EX check‑in). The SKILL.md asserts 'REQUIRES CONFIRMATION' for posts, but the registry affords autonomous invocation and the instructions include commands…

持久

The skill does not request always:true and does not declare persistent system changes in the registry. Autonomous invocation is enabled (default), which is normal for skills. The SKILL.md instructs installing external tools and adding an MCP to the agent (which is a one‑time configuration change to enable Playwright MCP) — this is powerful but is part of the described feature and is not represented in the registry as an automated install, so u…

安装(复制给龙虾 AI)

将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。

请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「opencli-social-platforms」。简介:Use opencli CLI to control Bilibili, Twitter/X, YouTube, Zhihu, Reddit, HackerN…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/adisinghstudent/opencli-social-platforms/SKILL.md
(来源:yingzhi8.cn 技能库)

SKILL.md

打开原始 SKILL.md(GitHub raw)

---
name: opencli-social-platforms
description: Use opencli CLI to control Bilibili, Twitter/X, YouTube, Zhihu, Reddit, HackerNews, and 10+ other platforms via natural language, reusing your Chrome login sessions with no API keys needed.
triggers:
  - search YouTube for videos
  - get HackerNews top stories
  - check Twitter trending
  - browse Bilibili hot videos
  - search Reddit posts
  - check stock price on Yahoo Finance
  - post a tweet using Claude
  - get Zhihu hot list
---

# opencli-skill: Control 16 Social Platforms via CLI

> Skill by [ara.so](https://ara.so) — Daily 2026 Skills collection.

opencli is a CLI tool that turns 16 major social/content platforms into command-line interfaces by **reusing your existing Chrome browser login sessions**. No API keys, no re-authentication — just open Chrome, log in as usual, and your AI agent does the rest.

## Prerequisites

Before using opencli, ensure all of these are in place:

1. **Node.js v16+** — [nodejs.org](https://nodejs.org/)
2. **Chrome browser** open and logged in to target platforms
3. **Playwright MCP Bridge** Chrome extension — [Install from Chrome Web Store](https://chromewebstore.google.com/detail/playwright-mcp-bridge/kldoghpdblpjbjeechcaoibpfbgfomkn)
4. **Playwright MCP** configured in your AI agent (Claude Code, etc.)
5. **opencli** installed globally

## Installation

### Step 1 — Install opencli

```bash
npm install -g @jackwener/opencli

# Verify installation
opencli --version
```

### Step 2 — Install Playwright MCP Bridge in Chrome

1. Open Chrome → go to the [Playwright MCP Bridge extension page](https://chromewebstore.google.com/detail/playwright-mcp-bridge/kldoghpdblpjbjeechcaoibpfbgfomkn)
2. Click **"Add to Chrome"** and confirm
3. Verify the extension icon appears in Chrome's toolbar

### Step 3 — Configure Playwright MCP in Claude Code

```bash
# Add Playwright MCP server (run once)
claude mcp add playwright --scope user -- npx @playwright/mcp@latest

# Verify it was added
claude mcp list
# Should show "playwright" in the list
```

### Step 4 — Install this Skill

```bash
npx skills add joeseesun/opencli-skill
```

Restart Claude Code after installation.

## Supported Platforms

| Platform | Read | Search | Write |
|----------|------|--------|-------|
| Bilibili (B站) | ✅ Hot/Ranking/Feed/History | ✅ Videos/Users | — |
| Zhihu (知乎) | ✅ Hot list | ✅ | ✅ Question details |
| Weibo (微博) | ✅ Trending | — | ✅ Post |
| Twitter/X | ✅ Timeline/Trending/Bookmarks | ✅ | ✅ Post/Reply/Like |
| YouTube | — | ✅ | — |
| Xiaohongshu (小红书) | ✅ Recommended feed | ✅ | — |
| Reddit | ✅ Home/Hot | ✅ | — |
| HackerNews | ✅ Top stories | — | — |
| V2EX | ✅ Hot/Latest | — | ✅ Daily check-in |
| Xueqiu (雪球) | ✅ Hot/Stocks/Watchlist | ✅ | — |
| BOSS直聘 | — | ✅ Jobs | — |
| BBC | ✅ News | — | — |
| Reuters | — | ✅ | — |
| 什么值得买 | — | ✅ Deals | — |
| Yahoo Finance | ✅ Stock quotes | — | — |
| Ctrip (携程) | — | ✅ Attractions/Cities | — |

## Key Commands

### Bilibili (B站)

```bash
# Get hot/trending videos
opencli bilibili hot --limit 10 -f json

# Get video rankings
opencli bilibili ranking -f json

# Get your feed/timeline
opencli bilibili feed -f json

# Get watch history
opencli bilibili history -f json

# Search videos
opencli bilibili search --keyword "AI大模型"

# Search users
opencli bilibili search-user --keyword "技术up主"
```

### Twitter/X

```bash
# Get your timeline
opencli twitter timeline -f json

# Get trending topics
opencli twitter trending -f json

# Get your bookmarks
opencli twitter bookmarks -f json

# Search tweets
opencli twitter search --query "claude AI" -f json

# Post a tweet (REQUIRES CONFIRMATION — content becomes immediately public)
opencli twitter post --text "Hello from Claude Code!"

# Like a tweet
opencli twitter like --id TWEET_ID

# Reply to a tweet
opencli twitter reply --id TWEET_ID --text "Great point!"
```

### YouTube

```bash
# Search videos
opencli youtube search --query "LLM tutorial" -f json

# Search with limit
opencli youtube search --query "machine learning 2024" --limit 20 -f json
```

### Zhihu (知乎)

```bash
# Get hot list
opencli zhihu hot -f json

# Search questions/answers
opencli zhihu search --keyword "大模型" -f json

# Get question details
opencli zhihu question --id QUESTION_ID -f json
```

### Weibo (微博)

```bash
# Get trending hot search
opencli weibo hot -f json

# Post a Weibo update (uses Playwright — REQUIRES CONFIRMATION)
opencli weibo post --text "今天天气真好"
```

### Reddit

```bash
# Get home feed
opencli reddit home -f json

# Get hot posts from a subreddit
opencli reddit hot --subreddit MachineLearning -f json

# Search Reddit
opencli reddit search --query "transformer architecture" -f json
```

### HackerNews

```bash
# Get top stories
opencli hackernews top --limit 20 -f json

# Get top stories (default limit)
opencli hackernews top -f json
```

### Yahoo Finance / Xueqiu (雪球) — Stocks

```bash
# Get stock quote (Yahoo Finance)
opencli yahoo-finance quote --symbol AAPL -f json
opencli yahoo-finance quote --symbol TSLA -f json

# Xueqiu hot stocks
opencli xueqiu hot -f json

# Xueqiu stock details
opencli xueqiu stock --symbol SH600519   # Moutai (茅台)
opencli xueqiu stock --symbol SZ000001   # Ping An Bank

# Xueqiu watchlist (your followed stocks)
opencli xueqiu watchlist -f json

# Search stocks on Xueqiu
opencli xueqiu search --keyword "茅台" -f json
```

### Xiaohongshu (小红书)

```bash
# Get recommended feed
opencli xiaohongshu feed -f json

# Search posts
opencli xiaohongshu search --keyword "咖啡" -f json
```

### V2EX

```bash
# Get hot posts
opencli v2ex hot -f json

# Get latest posts
opencli v2ex latest -f json

# Daily check-in (签到)
opencli v2ex checkin
```

### BOSS直聘 (Job Search)

```bash
# Search jobs
opencli boss search --keyword "Python工程师" -f json
opencli boss search --keyword "AI researcher" --city "北京" -f json
```

### BBC News

```bash
# Get BBC headlines
opencli bbc news -f json
```

### Reuters

```bash
# Search Reuters
opencli reuters search --query "artificial intelligence" -f json
```

### 什么值得买 (Deals)

```bash
# Search deals
opencli smzdm search --keyword "机械键盘" -f json
```

### Ctrip / 携程 (Travel)

```bash
# Search attractions
opencli ctrip attractions --city "成都" -f json

# Search cities
opencli ctrip cities --keyword "云南" -f json
```

## Output Format

Most commands support `-f json` for structured JSON output, which is ideal for AI agents to parse and display:

```bash
# JSON output (recommended for AI processing)
opencli hackernews top --limit 10 -f json

# Example output structure:
# [
#   {
#     "rank": 1,
#     "title": "Show HN: ...",
#     "url": "https://...",
#     "points": 342,
#     "comments": 87
#   },
#   ...
# ]
```

## Common Agent Patterns

### Pattern 1: Research across platforms

```bash
# User asks: "What's trending in AI today?"

# Check HackerNews
opencli hackernews top --limit 10 -f json

# Check Twitter trending
opencli twitter trending -f json

# Search Zhihu for AI discussions
opencli zhihu search --keyword "人工智能" -f json

# Search Reddit
opencli reddit search --query "artificial intelligence" -f json
```

### Pattern 2: Stock research

```bash
# User asks: "How is Tesla doing today?"

# Yahoo Finance for US stocks
opencli yahoo-finance quote --symbol TSLA -f json

# Check Xueqiu for Chinese market sentiment
opencli xueqiu hot -f json
```

### Pattern 3: Content discovery

```bash
# User asks: "Find LLM tutorials on YouTube and Bilibili"

opencli youtube search --query "LLM tutorial 2024" --limit 10 -f json
opencli bilibili search --keyword "大模型教程" -f json
```

### Pattern 4: Job searching

```bash
# User asks: "Find AI engineer jobs in Beijing"

opencli boss search --keyword "AI工程师" --city "北京" -f json
```

### Pattern 5: Write operations (always confirm first)

```bash
# IMPORTANT: Always show the user what will be posted and get explicit confirmation

# Post to Twitter
opencli twitter post --text "Just discovered opencli — control 16 platforms from the terminal!"

# V2EX check-in
opencli v2ex checkin

# Post to Weibo
opencli weibo post --text "今天用 Claude Code 搜了B站热门,太方便了"
```

## ⚠️ Write Operations — Safety Rules

**Always follow these rules for any write operation:**

1. **Show content first** — Display exactly what will be posted to the user
2. **Require explicit confirmation** — Wait for user to say "yes", "confirm", "post it", etc.
3. **Never auto-post** — Even if the user said "post X", confirm the exact content before executing
4. **One operation at a time** — Never batch multiple write operations

Write operations include:
- `opencli twitter post` / `reply` / `like`
- `opencli weibo post`
- `opencli v2ex checkin`
- Any command that modifies platform state

## Troubleshooting

| Problem | Cause | Fix |
|---------|-------|-----|
| `opencli: command not found` | Not installed or PATH issue | Run `npm install -g @jackwener/opencli`; check `echo $PATH` includes npm global bin |
| Chrome not being controlled | Extension missing or Chrome closed | Ensure Chrome is open; verify Playwright MCP Bridge extension is enabled in `chrome://extensions` |
| Login state not recognized | Not logged in to the site | Open Chrome, manually log in to the target platform, then retry |
| "Playwright MCP not found" error | MCP not configured | Run `claude mcp add playwright --scope user -- npx @playwright/mcp@latest` |
| `npx skills add` fails | Node.js version too old | Upgrade to Node.js v16+: `node --version` to check |
| Rate limit / CAPTCHA triggered | Too many rapid requests | Wait a few minutes; avoid repeated rapid commands to same platform |
| JSON parse errors | Command output is not JSON | Ensure you're using `-f json` flag; some commands may not support JSON |

### Verify Setup

```bash
# 1. Check opencli is installed
opencli --version

# 2. Check Node.js version
node --version   # Should be v16+

# 3. Check Playwright MCP is configured (in Claude Code)
claude mcp list  # Should show "playwright"

# 4. Test a simple read command
opencli hackernews top --limit 3 -f json
```

### Chrome Extension Verification

1. Open Chrome → navigate to `chrome://extensions/`
2. Find "Playwright MCP Bridge"
3. Confirm it shows **"Enabled"** (toggle is blue)
4. If missing, reinstall from the [Chrome Web Store](https://chromewebstore.google.com/detail/playwright-mcp-bridge/kldoghpdblpjbjeechcaoibpfbgfomkn)

## Natural Language → Command Mapping

When a user makes a request, map it to the appropriate command:

| User Says | Command |
|-----------|---------|
| "What's trending on Twitter?" | `opencli twitter trending -f json` |
| "Search YouTube for X" | `opencli youtube search --query "X" -f json` |
| "Get HackerNews top stories" | `opencli hackernews top --limit 20 -f json` |
| "Check AAPL stock" | `opencli yahoo-finance quote --symbol AAPL -f json` |
| "What's hot on Bilibili?" | `opencli bilibili hot --limit 20 -f json` |
| "Search Reddit for X" | `opencli reddit search --query "X" -f json` |
| "Get Zhihu hot list" | `opencli zhihu hot -f json` |
| "What's trending on Weibo?" | `opencli weibo hot -f json` |
| "Find jobs for X" | `opencli boss search --keyword "X" -f json` |
| "Check my Twitter timeline" | `opencli twitter timeline -f json` |
| "Post a tweet saying X" | Confirm with user → `opencli twitter post --text "X"` |

## Full Command Reference

See [references/commands.md](references/commands.md) in the skill repository for the complete list of all 55 commands with parameters.

## Credits

Built on **[jackwener/opencli](https://github.com/jackwener/opencli)** by [@jakevin7](https://github.com/jackwener). The core idea — turning major websites into CLI interfaces that reuse existing browser sessions — makes AI agents dramatically more capable without requiring any platform API access.