nashsu/autocli-skill2 files

Autocli

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).

Specification
Skill ID
nashsu/autocli-skill/autocli
Publisher
nashsu
Repository
autocli-skill
Installs
0
Files
2
Synced
Sep 23, 2026
How to use it

Open any RiverX project, open the Skills panel in the chat, and search for this identifier. The files are fetched from the source repository at install time.

nashsu/autocli-skill/autocliInstalls these files
  • README.md
  • SKILL.md

What this skill tells the agent

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

CommandArgsDescription
hackernews top--limit N (default 20)Top stories
hackernews new--limit NNewest stories
hackernews best--limit NBest stories
hackernews ask--limit NAsk HN
hackernews show--limit NShow HN
hackernews jobs--limit NJob listings
hackernews search--query <str>, --limit NSearch stories
hackernews user--id <username>User profile

Dev.to

CommandArgsDescription
devto top--limit NTop articles
devto tag--tag <str>, --limit NArticles by tag
devto user--username <str>User's articles

Lobsters

CommandArgsDescription
lobsters hot--limit NHottest stories
lobsters newest--limit NNewest stories
lobsters active--limit NMost active
lobsters tag--tag <str>, --limit NStories by tag

StackOverflow

CommandArgsDescription
stackoverflow hot--limit NHot questions
stackoverflow search--query <str>, --limit NSearch questions
stackoverflow bounties--limit NFeatured bounties
stackoverflow unanswered--limit NUnanswered questions

Wikipedia

CommandArgsDescription
wikipedia search--query <str>, --limit NSearch articles
wikipedia summary--title <str>Article summary
wikipedia random--limit NRandom articles
wikipedia trending--limit NTrending articles

Arxiv

CommandArgsDescription
arxiv search--query <str>, --limit NSearch papers
arxiv paper--id <arxiv_id>Paper details

BBC

CommandArgsDescription
bbc news--limit N (default 20, max 50)BBC news headlines (RSS)

Steam

CommandArgsDescription
steam top-sellers--limit NTop selling games

Hugging Face

CommandArgsDescription
hf top--limit NTop models/spaces

Apple Podcasts

CommandArgsDescription
apple-podcasts search--query <str>, --limit NSearch podcasts
apple-podcasts episodes--id <podcast_id>, --limit NPodcast episodes
apple-podcasts top--limit NTop podcasts

小宇宙 (Xiaoyuzhou)

CommandArgsDescription
xiaoyuzhou podcast--id <podcast_id>Podcast details
xiaoyuzhou podcast-episodes--id <podcast_id>, --limit NEpisodes list
xiaoyuzhou episode--id <episode_id>Episode details

新浪财经 (Sina Finance)

CommandArgsDescription
sinafinance news--limit NFinancial news

Linux.do

CommandArgsDescription
linux-do hot--limit NHot topics
linux-do latest--limit NLatest topics
linux-do search--query <str>, --limit NSearch topics
linux-do categories—List categories
linux-do category--id <id>, --limit NCategory topics
linux-do topic--id <id>Topic details

Public / Browser Mode

Google

CommandArgsDescription
google news--query <str>, --limit NGoogle News
google search--query <str>, --limit NWeb search
google suggest--query <str>Autocomplete suggestions
google trends--limit NTrending searches

V2EX

CommandArgsDescription
v2ex hot--limit N (default 20)热门话题 (no login)
v2ex latest--limit N (default 20)最新话题 (no login)
v2ex topic--id <topic_id>主题详情和回复
v2ex node--name <node>, --limit NNode topics

Use this skill in a project

Open any RiverX project, search the Skills panel for nashsu/autocli-skill/autocli, and install it in one click.

Use this skill