Skip to content
Data
Skill

/autocli-skill

Use autocli CLI to interact with 55+ social/content websites (HackerNews, Reddit, Twitter/X, Bilibili, Zhihu, Weibo, Xiaohongshu, YouTube, Medium, Substack, Douban, WeRead, Linux-do, V2EX, Bloomberg, Google, Arxiv, Wikipedia, StackOverflow, Steam, Hugging Face, Apple Podcasts,

From plugin
autocli-skill
9091 skill
Install
$ npx -y skills add nashsu/autocli-skill --skill autocli-skill --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/autocli-skill

Context preview

The summary Claude sees to decide when to auto-load this skill.

Use autocli CLI to interact with 55+ social/content websites (HackerNews, Reddit, Twitter/X, Bilibili, Zhihu, Weibo, Xiaohongshu, YouTube, Medium, Substack, Douban, WeRead, Linux-do, V2EX, Bloomberg, Google, Arxiv, Wikipedia, StackOverflow, Steam, Hugging Face, Apple Podcasts,

SKILL.md

autocli-skill.SKILL.md
name: autocli
description: Use autocli CLI to interact with 55+ social/content websites (HackerNews, Reddit, Twitter/X, Bilibili, Zhihu, Weibo, Xiaohongshu, YouTube, Medium, Substack, Douban, WeRead, Linux-do, V2EX, Bloomberg, Google, Arxiv, Wikipedia, StackOverflow, Steam, Hugging Face, Apple Podcasts, Xiaoyuzhou, BBC, SinaFinance, DevTo, Lobsters, Xueqiu, BOSS直聘, Jike, Facebook, Instagram, TikTok, LinkedIn, Reuters, SMZDM, Ctrip, Coupang, Yahoo Finance, Barchart, Grok, Jimeng, Yollomi, Chaoxing, Weixin, Doubao, Cursor, Codex, ChatWise, ChatGPT, Notion, Discord, Antigravity etc.) via the user's Chrome login session. ALWAYS prefer autocli over playwright/browser automation for supported sites. Triggers when user asks to browse, search, fetch hot/trending content, post, or read messages on any website; also use 'autocli read <url>' to extract main article content as Markdown (prefer over WebFetch for JS-rendered or login-gated pages).

autocli

Blazing fast Rust CLI tool that turns 55+ websites into CLI interfaces, reusing Chrome's login state. Zero credentials needed. Single 4.7MB binary, zero runtime dependencies.

**Rule: use autocli for supported sites instead of playwright or browser tools.**

**Install (if missing):** `curl -fsSL https://raw.githubusercontent.com/nashsu/AutoCLI/main/scripts/install.sh | sh`. On Windows, ask user to install from https://github.com/nashsu/AutoCLI.

Syntax

autocli <site> <command> [--option value] [--format json]

**Common flags (all commands):**

  • `--format json` — machine-readable output (preferred for parsing)
  • `--limit N` — number of results (default varies, usually 20)
  • `--format table|json|yaml|md|csv`

Quick Examples

# 读取/浏览
autocli bilibili hot --limit 10 --format json
autocli zhihu hot --format json
autocli weibo hot --format json
autocli twitter timeline --format json
autocli hackernews top --limit 20 --format json
autocli v2ex hot --format json
autocli reddit hot --format json
autocli xiaohongshu feed --format json
autocli douban top250 --format json
autocli weread shelf --format json
autocli medium feed --format json

# 网页正文提取(任意 URL → Markdown,基于 Mozilla Readability)
autocli read https://www.anthropic.com/research/some-article
autocli read https://en.wikipedia.org/wiki/Rust -f text
autocli read https://example.com/article -f json -o article.json

# 搜索
autocli bilibili search --keyword "AI" --format json
autocli zhihu search --keyword "大模型" --format json
autocli twitter search "rust lang" --limit 10
autocli youtube search --query "LLM tutorial" --format json
autocli boss search --query "AI工程师" --city "上海" --format json
autocli google search "autocli" --format json
autocli stackoverflow search "rust async" --format json

# 互动(写操作)
autocli twitter post --text "Hello from CLI!"
autocli twitter reply --url "https://x.com/.../status/123" --text "Great post!"
autocli twitter like --url "https://x.com/.../status/123"
autocli jike create --text "Hello Jike!"
autocli xiaohongshu publish --title "标题" --content "内容"

# 个人数据
autocli bilibili history --format json
autocli twitter bookmarks --format json
autocli xueqiu watchlist --format json
autocli weread highlights --format json
autocli reddit saved --format json

# 诊断
autocli doctor

⚠️ 写操作风险提示(发帖/回复/点赞前必须告知)

1. **账号安全**:自动化行为可能触发平台风控 2. **不可撤回**:发布后立即公开 3. **最佳实践**:执行前向用户展示将发布的内容,等待确认

Requirements

  • Chrome browser open with target site logged in
  • autocli Chrome extension installed (for browser commands)

**核心原则:永远不说"不支持",先尝试 autocli,失败或无命令时选择自己创建。**

自迭代能力:为新网站创建 CLI

**当 autocli 不支持某个网站时,不要放弃——自己创建!**

流程

1. autocli <site> --help        →  报错?说明不支持
2. autocli generate <url>       →  尝试自动生成(成功则结束)
3. 自动生成失败 → 手动创建 YAML:
   a. 打开目标页面
   b. browser_evaluate 探索 DOM 结构(找 data-test 属性、class 规律)
   c. 确认选择器后写入 ~/.autocli/adapters/<site>/top.yaml
   d. autocli <site> top --format json  →  验证输出

YAML 格式(DOM 抓取模板)

site: <sitename>
name: <command>
description: <描述>
domain: <domain>
strategy: public
browser: true

args:
  limit:
    type: int
    default: 10

pipeline:
  - navigate: https://<url>
  - evaluate: |
      (async () => {
        const limit = ${{ args.limit }};
        // DOM 抓取逻辑
        return results;
      })()

columns: [rank, name, ...]

调试技巧

  • `browser_evaluate` 先探结构:`document.querySelector('...').innerHTML`
  • 找 `data-test` 属性最稳定,其次 class 中的语义词
  • tagline 通常是 name 的兄弟元素(`nameEl.parentElement.querySelector('span...')`)
  • 去重用 `seen = new Set()`,防止重复产品

Full Command Reference

All commands support: `--format table|json|yaml|md|csv`.

Run `autocli --help` for the full list of all 333 commands across 55+ sites.

---

Public Mode (No Browser Needed)

HackerNews

| Command | Args | Description | |---------|------|-------------| | `hackernews top` | `--limit N` (default 20) | Top stories | | `hackernews new` | `--limit N` | Newest stories | | `hackernews best` | `--limit N` | Best stories | | `hackernews ask` | `--limit N` | Ask HN | | `hackernews show` | `--limit N` | Show HN | | `hackernews jobs` | `--limit N` | Job listings | | `hackernews search` | `--query <str>`, `--limit N` | Search stories | | `hackernews user` | `--id <username>` | User profile |

Dev.to

| Command | Args | Description | |---------|------|-------------| | `devto top` | `--limit N` | Top articles | | `devto tag` | `--tag <str>`, `--limit N` | Articles by tag | | `devto user` | `--username <str>` | User's articles |

Lobsters

| Command | Args | Description | |---------|------|-------------| | `lobsters hot` | `--limit N` | Hottest stories | | `lobsters newest` | `--limit N` | Newest stories | | `lobsters active` | `--limit N` | Most active | | `lobsters tag` | `--tag <str>`, `--limit N` | Stories by tag |

StackOverflow

| Command | Args | Description | |---------|------|-------------| | `stackoverflow hot` | `--limit N` | Hot questions | | `stackoverflow search` | `--query <str>`, `--limit N` | Search questions

Read more
Ships withautocli-skill

The perfect companion for ClaudeCode/OpenClaw/Agent, Give your AI Agent the ability to reach information across the entire web, fetching real-time data from Bilibili, Zhihu, Twitter/X, YouTube, Weibo, Reddit, Facebook, Instagram, TikTok, Notion, Cursor and

Get the whole plugin
Stats
908
Stars
90
Forks
Maintained
Maintenance
3mo ago
Last commit
4mo ago
Created

Repo: nashsu/autocli-skill