Skip to main content
skill CX Codex

opencli-reader — Claude Code skill: sources and setup

A read-only skill for fetching data from opencli-supported sites. Use it for finance pages, communities, research, blogs, podcasts, and video.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add himself65/finance-skills --skill opencli-reader -a claude-code
Open on GitHub

What opencli-reader does

opencli-reader lets an agent read sources supported by opencli when no dedicated skill covers the site. Its adapter registry includes services such as Yahoo Finance, Bloomberg, Reuters, Reddit, HackerNews, Substack, arXiv, YouTube, and more.

The skill checks whether opencli is ready, then uses opencli list -f json and opencli <site> --help to find the available adapter and command instead of guessing flags. Browser Bridge may be needed for authenticated adapters. opencli requires Node.js >= 20 or Bun >= 1.0.

This skill is read-only. It must not run commands for posting, liking, commenting, subscribing, following, deleting, or other writes. Check the adapter strategy first, because COOKIE, HEADER, INTERCEPT, and UI require Chrome access to the target site.

What it helps with

  • read market news and quotes from finance sites
  • search Reddit or HackerNews content
  • retrieve papers from arXiv or Google Scholar
  • fetch posts from blogs, podcasts, or video platforms
  • inspect a source supported by the opencli registry

Example prompts for the agent

  • Use opencli to read the current HackerNews front page and summarize the main posts.
  • Use opencli to search arXiv for papers about browser automation.
  • Read Yahoo Finance quotes and market headlines with opencli.

How to install opencli-reader

1Skills CLI (Vercel)

npx skills add himself65/finance-skills --skill opencli-reader -a claude-code

2Manually: put the files in place

~/.claude/skills/opencli-reader/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/opencli-reader/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about opencli-reader

How do I install opencli-reader in Claude Code?

Run npx skills add himself65/finance-skills --skill opencli-reader -a claude-code, then run npx skills add himself65/finance-skills --skill opencli-reader -a claude-code again. The skill file is at ~/.claude/skills/opencli-reader/SKILL.md.

What does opencli-reader do?

It lets an agent read data from opencli-supported sources when no dedicated skill covers them. Write actions such as posting, liking, commenting, subscribing, and deleting are excluded.

When does opencli-reader need Chrome Browser Bridge?

Adapters using COOKIE, HEADER, INTERCEPT, or UI need Chrome with Browser Bridge and an active login to the target site. PUBLIC adapters work without a browser, while LOCAL adapters need their local service running.

Source text

SKILL.md · MIT
---
name: opencli-reader
description: >
  Generic read-only fallback for sources opencli supports but no dedicated skill
  covers: finance sites (Yahoo Finance, Bloomberg, Reuters, Barchart, Eastmoney,
  Xueqiu, Sinafinance), communities (Reddit, HackerNews, Weibo, Zhihu, Xiaohongshu,
  Bilibili), newsletters and blogs (Substack, Medium), research (arXiv, Google
  Scholar), podcasts and video (Apple Podcasts, Xiaoyuzhou, Spotify, YouTube), Weixin,
  Amazon, and more. Use it when the user asks to read or fetch from such a site — for
  example r/wallstreetbets, the HackerNews front page, Eastmoney hot stocks, the
  Xueqiu feed, Bloomberg markets headlines, or an arXiv search — or says "use opencli
  to read". Prefer twitter-reader, linkedin-reader, discord-reader, telegram-reader,
  or yc-reader when the source matches. Read-only: never runs write commands.
---

# opencli Reader (Generic Fallback, Read-Only)

If your host has not already executed the shell probes below (for example, in Codex), run the commands inside the `!` wrappers with its shell tool before choosing a setup path. Use the actual output; if shell access is unavailable, report that limitation.

Generic fallback for any source opencli supports via its [adapter registry](https://github.com/jackwener/opencli) (100+ sites, growing). Use this skill only when **no dedicated finance-skill covers the source** — the specialized skills (`twitter-reader`, `linkedin-reader`, `discord-reader`, `telegram-reader`, `yc-reader`) are always preferred when the request matches one of them.

**This skill is read-only.** Write commands that opencli exposes (post, like, comment, send, save, upvote, subscribe, follow, delete, reply-dm, etc.) must not be invoked.

---

## Step 1: Decide Whether to Use This Skill

Only use this skill if the request **cannot** be handled by a more specific skill.

| If the user asks about… | Use this skill instead |
|---|---|
| Twitter/X | `twitter-reader` |
| LinkedIn | `linkedin-reader` |
| Discord | `discord-reader` |
| Telegram | `telegram-reader` |
| Y Combinator | `yc-reader` |
| Anything else opencli supports (Yahoo Finance, Bloomberg, Reuters, Reddit, HackerNews, Eastmoney, Xueqiu, Substack, arXiv, etc.) | **this skill** |

If the source is not in opencli's registry either, stop and tell the user the request isn't covered — don't fall back to ad-hoc scraping.

---

## Step 2: Ensure opencli Is Ready

**Current environment status:**

```
!`(command -v opencli && opencli doctor 2>&1 | head -5 && echo "READY" || echo "SETUP_NEEDED") 2>/dev/null || echo "NOT_INSTALLED"`
```

If `NOT_INSTALLED`:

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

If `SETUP_NEEDED`, guide the user through Browser Bridge setup (only required for adapters whose strategy is `COOKIE`, `HEADER`, `INTERCEPT`, or `UI` — `PUBLIC` and `LOCAL` adapters work without a browser):

1. Download the latest `opencli-extension-v{version}.zip` from the [GitHub Releases page](https://github.com/jackwener/opencli/releases)
2. Unzip it, open `chrome://extensions` in Chrome, enable **Developer mode**
3. Click **Load unpacked** and select the unzipped folder
4. Make sure Chrome is logged into the target site, then re-run `opencli doctor`

Requires Node.js >= 20 (or Bun >= 1.0).

---

## Step 3: Discover the Right Command

**Do not guess command names or flags** — the registry has 500+ commands and changes weekly. Instead:

```bash
# Full registry (grouped by site), machine-readable JSON
opencli list -f json

# Filter to a site
opencli list | grep -i <site>

# Site-level help (all commands + flags)
opencli <site> --help

# Command-level help (positional args + flags + defaults)
opencli <site> <command> --help
```

The `opencli list -f json` entry for each command includes:
- `site` — adapter namespace (e.g., `yahoo-finance`)
- `name` — subcommand (e.g., `quote`)
- `strategy` — `PUBLIC` / `COOKIE` / `HEADER` / `INTERCEPT` / `UI` / `LOCAL` — tells you if a browser login is needed
- `description`, `args`, `columns` — canonical metadata

Use `opencli list -f json` as the source of truth. Never paste a site list into the plan from memory; adapters are added every week.

### Quick map of the most common finance / research sources

The table below is a **shortlist**, not exhaustive — always confirm with `opencli <site> --help`.

| Source | Site slug | Common commands |
|---|---|---|
| Yahoo Finance | `yahoo-finance` | `quote` |
| Bloomberg | `bloomberg` | `markets`, `economics`, `industries`, `tech`, `politics`, `opinions`, `news`, `businessweek`, `feeds`, `main` |
| Reuters | `reuters` | `search` |
| Eastmoney (东方财富) | `eastmoney` | `quote`, `rank`, `kline`, `sectors`, `etf`, `holders`, `money-flow`, `northbound`, `longhu`, `kuaixun`, `convertible`, `index-board`, `announcement`, `hot-rank` |
| Xueqiu (雪球) | `xueqiu` | `stock`, `hot-stock`, `hot`, `feed`, `comments`, `watchlist`, `search`, `groups`, `fund-snapshot`, `fund-holdings`, `earnings-date`, `kline` |
| Sinafinance | `sinafinance` | (see `--help`) |
| TDX / THS | `tdx`, `ths` | (see `--help`) |
| Barchart (options) | `barchart` | `quote`, `options`, `flow`, `greeks` |
| Reddit | `reddit` | `hot`, `popular`, `frontpage`, `search`, `subreddit`, `read`, `user`, `user-posts`, `user-comments`, `saved` |
| HackerNews | `hackernews` | `top`, `best`, `new`, `ask`, `show`, `jobs`, `user`, `search` |
| Substack | `substack` | `feed`, `publication`, `search` |
| Medium | `medium` | (see `--help`) |
| arXiv | `arxiv` | (see `--help`) |
| Google Scholar | `google-scholar` | (see `--help`) |
| Weibo | `weibo` | (see `--help`) |
| Bilibili | `bilibili` | `hot`, `video` + more |
| Xiaohongshu (小红书) | `xiaohongshu` | (see `--help`) |
| Rednote (小红书 international) | `rednote` | (see `--help` — mirrors `xiaohongshu`) |
| Zhihu | `zhihu` | (see `--help`) |
| Baidu Scholar | `baidu-scholar` | (see `--help`) |
| Wanfang | `wanfang` | (see `--help`) |
| 36kr | `36kr` | (see `--help`) |
| Jike | `jike` | (see `--help`) |
| Bluesky | `bluesky` | (see `--help`) |
| Apple Podcasts | `apple-podcasts` | (see `--help`) |
| Xiaoyuzhou (podcasts) | `xiaoyuzhou` | (see `--help`) |
| Spotify | `spotify` | (see `--help`) |
| YouTube | `youtube` | (see `--help`) |
| Weixin Official Account | `weixin` | (see `--help` — `drafts` is read; `create-draft` is write) |
| Toutiao | `toutiao` | `articles` |
| Government policy / law | `gov-policy`, `gov-law` | (see `--help`) |
| Web download / reader | `web` | `read`, `download` |

For anything not listed, run `opencli list -f json` and filter.

---

## Step 4: Check the Adapter's Strategy Before Running

Run `opencli list -f json` (or `opencli <site> <command> --help`) and read the `strategy` field:

| Strategy | What it means | Preconditions |
|---|---|---|
| `PUBLIC` | Pure HTTP; no browser needed | None |
| `LOCAL` | Talks to a local endpoint | Local service running |
| `COOKIE` / `HEADER` | Reuses your Chrome login for the site | Chrome logged into the site + Browser Bridge extension loaded |
| `INTERCEPT` | Opens an automation window to capture a signed request | Same as COOKIE; be patient — may take several seconds |
| `UI` | Full DOM interaction | Same as COOKIE; slowest; results depend on the site's current layout |

If the user doesn't have a login and the adapter's strategy is not `PUBLIC` / `LOCAL`, tell them they need to log into the site in Chrome before retrying.

---

## Step 5: Execute the Command

### General pattern

```bash
opencli <site> <command> [positional-args] [flags] -f json
```

### Universal flags

| Flag | Effect |
|---|---|
| `-f json` | Structured JSON — always prefer this for agent processing |
| `-f yaml` / `-f csv` / `-f md` / `-f table` / `-f plain` | Other formats |
| `-v` | Verbose logging (also sets `OPENCLI_VERBOSE=1`) |
| `--live` | Keep the automation window open after the command (browser-backed adapters only) |
| `--focus` | Open the automation window in the foreground (browser-backed adapters only) |

Command-specific flags (`--limit`, `--filter`, `--type`, etc.) are **not** universal — always check `opencli <site> <command> --help`.

### Examples

```bash
# Yahoo Finance quote (PUBLIC)
opencli yahoo-finance quote AAPL -f json

# Reddit hot posts in a subreddit (COOKIE or PUBLIC depending on subreddit)
opencli reddit subreddit wallstreetbets --limit 20 -f json
opencli reddit search "SPY options" --limit 15 -f json

# HackerNews top (PUBLIC)
opencli hackernews top --limit 20 -f json

# Eastmoney hot rank (PUBLIC)
opencli eastmoney hot-rank -f json

# Xueqiu hot stocks (PUBLIC or COOKIE)
opencli xueqiu hot-stock -f json
opencli xueqiu stock SH600519 -f json

# Bloomberg markets headlines (COOKIE)
opencli bloomberg markets -f json

# arXiv paper search (PUBLIC)
opencli arxiv search "volatility surface" --limit 10 -f json

# Substack feed
opencli substack feed --limit 20 -f json

# Web page → readable markdown (PUBLIC)
opencli web read "https://example.com/article" -f json
```

### Key rules

1. **Always use `opencli <site> <command> --help`** before constructing a command you haven't run this session — don't assume flag names.
2. **Use `-f json`** for programmatic processing.
3. **Start with a small `--limit`** (10–20) to validate the shape before pulling more.
4. **Check `strategy` before running a browser-backed adapter** — if the user isn't logged in, a `COOKIE` / `UI` adapter will fail.
5. **Read-only — skip write commands.** Common write command names across adapters: `post`, `reply`, `comment`, `like`, `unlike`, `upvote`, `save`, `subscribe`, `unsubscribe`, `follow`, `unfollow`, `block`, `unblock`, `delete`, `bookmark`, `unbookmark`, `send`, `create-draft`, `reply-dm`, `accept`. If you're unsure whether a command is read or write, check the `description` in `opencli list -f json`; if it suggests a mutation, skip it.

---

## Step 6: Handle Failures

If a command returns empty or errors out, the site may have changed its selectors / API. opencli has a built-in self-repair loop:

```bash
# Re-run with diagnostic context
OPENCLI_DIAGNOSTIC=1 opencli <site> <command> <args>
```

This emits a structured `RepairContext` that identifies the failing adapter's source path. Possible responses:

1. If the user has the `opencli-autofix` skill installed, tell them to run that skill.
2. If not, suggest they file an issue at https://github.com/jackwener/opencli/issues with the `RepairContext` output.
3. Don't silently fall back to hand-rolled scraping — that hides the bug from the upstream registry.

Rate limits on the target site can also cause empty results; wait and retry.

---

## Step 7: Present the Results

1. **Summarize the data** for the user's actual question, don't just dump the raw JSON.
2. **Include source attribution** — site name + URL for each item where available.
3. **For market data**, surface price / % change / volume / market cap and flag anomalies.
4. **For news/posts**, highlight headlines, timestamps, and key quotes.
5. **For research (arXiv, Scholar)**, include title, authors, abstract, and link.
6. **Treat browser sessions as private** — never echo CDP endpoints, cookies, or auth tokens.

---

## Reference Files

- `references/discovery.md` — How to navigate `opencli list`, `opencli <site> --help`, and the JSON schema of registry entries
- `references/finance-sources.md` — Detailed notes on the finance-heavy adapters (Yahoo Finance, Bloomberg, Eastmoney, Xueqiu, Barchart, Reuters, Reddit, HackerNews) and which commands are read vs write

Read these reference files when you need concrete examples for a specific site, or when the user asks for a capability not covered by one of the dedicated readers.

© himself65 · MIT · himself65/finance-skills

Similar skills

Everything for Marketing and content →

From the same set22

sepa-strategy Screens a stock the Minervini way: market stage, the 8-condition trend template, fundamentals, VCP base, and position size from your risk. CX Codex +1 3,000installs saas-valuation-compression Researches funding rounds for private SaaS companies and calculates round-to-round ARR valuation multiples. It attributes multiple compression to macro cycles, growth shifts, or AI premiums. CX Codex +1 2,900installs skill-creator A skill that walks you through creating a new agent skill, fixing one that misbehaves, or scoring it against a rubric. Useful when a manual routine should become repeatable. CX Codex +1 2,800installs yc-reader A skill that looks up Y Combinator companies and batches through the public yc-oss API: profiles, industries, tags, hiring lists, portfolio stats. Read-only, no key. CX Codex +1 2,800installs finance-sentiment A skill that pulls normalized stock sentiment from Reddit, X.com, financial news and Polymarket via the Adanos Finance API. Handy when you want to know what the market is talking about. CX Codex +1 1,600installs linkedin-reader Pulls your LinkedIn feed and finance or trading job listings through opencli. Read-only: no posting, liking or applying. CX Codex +1 1,200installs tradingview-reader A skill that attaches to the running TradingView.app on macOS and pulls quotes, options chains, screener rows, news, alerts and chart screenshots. CX Codex +1 1,100installs hyperliquid-reader Reads public Hyperliquid market data including prices, funding, order books, and candles. Use it to inspect perp or spot markets without wallet access. CX Codex +1 533installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor