Opencli Reader logo

Opencli Reader

CommunityPopular
himself65
opencli-reader

Generic read-only fallback for any source opencli covers but this repo has no dedicated reader for — Yahoo Finance, Bloomberg, Reuters, Barchart, Eastmoney, Xueqiu, Sinafinance, Reddit, HackerNews, Substack, Medium, Weibo, Bilibili, Xiaohongshu, Zhihu, arXiv, Google Scholar, Apple Podcasts, Xiaoyuzhou, Spotify, YouTube, Weixin, Amazon, and more. Triggers: "use opencli to read", "grab the frontpage from hackernews", "read reddit r/wallstreetbets", "fetch Eastmoney hot stocks", "pull Xueqiu feed", "get Bloomberg markets headlines", "search arXiv for", any request to read from a site where a specialized skill does not exist but opencli does. FALLBACK — prefer twitter-reader, linkedin-reader, discord-reader, telegram-reader, or yc-reader when the source matches. READ-ONLY — never invoke write operations.

Overview

Publisherhimself65
Repositoryfinance-skills
Skill nameopencli-reader
Stars
3.3K
Forks
378
Bundled files
2
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by himself65 on GitHub. Read the source before you install it.

Installation

Install the Opencli Reader AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/himself65/finance-skills.git /tmp/finance-skills
mkdir -p .claude/skills
cp -r /tmp/finance-skills/plugins/social-readers/skills/opencli-reader .claude/skills/opencli-reader
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Opencli Reader in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Opencli Reader on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Opencli Reader is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

opencli Reader (Generic Fallback, Read-Only)

Generic fallback for any source opencli supports via its adapter registry (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/Xtwitter-reader
LinkedInlinkedin-reader
Discorddiscord-reader
Telegramtelegram-reader
Y Combinatoryc-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 UIPUBLIC and LOCAL adapters work without a browser):

  1. Download the latest opencli-extension-v{version}.zip from the GitHub Releases page
  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)
  • strategyPUBLIC / 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.

SourceSite slugCommon commands
Yahoo Financeyahoo-financequote
Bloombergbloombergmarkets, economics, industries, tech, politics, opinions, news, businessweek, feeds, main
Reutersreuterssearch
Eastmoney (东方财富)eastmoneyquote, rank, kline, sectors, etf, holders, money-flow, northbound, longhu, kuaixun, convertible, index-board, announcement, hot-rank
Xueqiu (雪球)xueqiustock, hot-stock, hot, feed, comments, watchlist, search, groups, fund-snapshot, fund-holdings, earnings-date, kline
Sinafinancesinafinance(see --help)
TDX / THStdx, ths(see --help)
Barchart (options)barchartquote, options, flow, greeks
Redditreddithot, popular, frontpage, search, subreddit, read, user, user-posts, user-comments, saved
HackerNewshackernewstop, best, new, ask, show, jobs, user, search
Substacksubstackfeed, publication, search
Mediummedium(see --help)
arXivarxiv(see --help)
Google Scholargoogle-scholar(see --help)
Weiboweibo(see --help)
Bilibilibilibilihot, video + more
Xiaohongshu (小红书)xiaohongshu(see --help)
Rednote (小红书 international)rednote(see --help — mirrors xiaohongshu)
Zhihuzhihu(see --help)
Tieba (百度贴吧)tieba(see --help)
Hupu (虎扑)hupu(see --help)
Xianyu (闲鱼)xianyu(see --help)
16881688(see --help)
Giteegitee(see --help)
Quarkquark(see --help)
Baidu Scholarbaidu-scholar(see --help)
Nowcodernowcoder(see --help)
Wanfangwanfang(see --help)
Doubao (豆包)doubao(see --help)
Yuanbao (腾讯元宝)yuanbao(see --help)
Google Geminigemini(see --help)
NotebookLMnotebooklm(see --help)
Claudeclaude(see --help)
36kr36kr(see --help)
Jikejike(see --help)
Blueskybluesky(see --help)
Apple Podcastsapple-podcasts(see --help)
Xiaoyuzhou (podcasts)xiaoyuzhou(see --help)
Spotifyspotify(see --help)
YouTubeyoutube(see --help)
Weixin Official Accountweixin(see --helpdrafts is read; create-draft is write)
Toutiaotoutiaoarticles
Government policy / lawgov-policy, gov-law(see --help)
Web download / readerwebread, 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:

StrategyWhat it meansPreconditions
PUBLICPure HTTP; no browser neededNone
LOCALTalks to a local endpointLocal service running
COOKIE / HEADERReuses your Chrome login for the siteChrome logged into the site + Browser Bridge extension loaded
INTERCEPTOpens an automation window to capture a signed requestSame as COOKIE; be patient — may take several seconds
UIFull DOM interactionSame 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

FlagEffect
-f jsonStructured JSON — always prefer this for agent processing
-f yaml / -f csv / -f md / -f table / -f plainOther formats
-vVerbose logging (also sets OPENCLI_VERBOSE=1)
--liveKeep the automation window open after the command (browser-backed adapters only)
--focusOpen 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. NEVER execute write operations. Common write command names to avoid 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.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Opencli Reader AI skill do?

Generic read-only fallback for any source opencli covers but this repo has no dedicated reader for — Yahoo Finance, Bloomberg, Reuters, Barchart, Eastmoney, Xueqiu, Sinafinance, Reddit, HackerNews, Substack, Medium, Weibo, Bilibili, Xiaohongshu, Zhihu, arXiv, Google Scholar, Apple Podcasts, Xiaoyuzhou, Spotify, YouTube, Weixin, Amazon, and more. Triggers: "use opencli to read", "grab the frontpage from hackernews", "read reddit r/wallstreetbets", "fetch Eastmoney hot stocks", "pull Xueqiu feed", "get Bloomberg markets headlines", "search arXiv for", any request to read from a site where a s...

Why use Opencli Reader on TypingMind?

Because you install it once and use it with any model. Opencli Reader is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Opencli Reader in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/himself65/finance-skills/tree/main/plugins/social-readers/skills/opencli-reader. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Opencli Reader?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Opencli Reader?

As many as you like. As long as a model supports skills, you can use Opencli Reader with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Opencli Reader AI skill free?

Yes. It is published on GitHub by himself65 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇