invest-cli

invest-cli is a skill for Claude Code, Codex from taxueseek/fund-investment-guide. It costs 113 tokens per session (4,327 once invoked), scanned A, original, MIT.

An investment-analysis command-line tool that fetches data for Chinese stocks and funds, US stocks, and stock screening, then applies matching analysis frameworks. A command-line tool is a program operated from a terminal.

In plain words
What is it for?
Use it from the terminal to inspect a stock or fund, review US-stock metrics, screen investments, or request structured JSON data for further analysis.
Why use it?
It combines data collection with a defined way to assess investments, so the user does not need to gather figures and structure the analysis separately.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it from the terminal to inspect a stock or fund, review US-stock metrics, screen investments, or request structured JSON data for further analysis.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/taxueseek/fund-investment-guide/invest-cli
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add taxueseek/fund-investment-guide --skill invest-cli
Clone the repo
git clone --depth 1 https://github.com/taxueseek/fund-investment-guide

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for invest-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/taxueseek/fund-investment-guide/invest-cli/github.svg)](https://agentmods.dev/skills/taxueseek/fund-investment-guide/invest-cli)
Your own site
<a href="https://agentmods.dev/skills/taxueseek/fund-investment-guide/invest-cli"><img src="https://agentmods.dev/badge/skills/taxueseek/fund-investment-guide/invest-cli/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for invest-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/taxueseek/fund-investment-guide/invest-cli"><img src="https://agentmods.dev/badge/skills/taxueseek/fund-investment-guide/invest-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 113 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,327 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 228
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 241
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00113 $0.04327
Opus 5.5 $0.00045 $0.01731
Sonnet 5.5 $0.00023 $0.00865
Haiku 4.5 $0.00011 $0.00433

Measured 1mo ago against content hash e19679d2c044, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

invest-cli scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 44 executable files (scripts/_common.py, scripts/cmd_capabilities.py, scripts/cmd_datasources.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/invest-cli/SKILL.md · 276 lines

How it starts

The opening of the file, as written. The whole thing — 276 lines — stays where its author put it; the contents beside it link to each section on GitHub.

完整触发条件(原始 description)

投资分析 CLI — 数据获取 + 分析框架一体化,dual-mode 运行。 触发:「/cli」「/投资cli」「invest cli」「终端分析」「命令行分析」 或:「用cli分析」「终端查一下」「命令行看看」 命令入口:invest-cli(兜底脚本见下)

invest-cli — 投资分析 CLI

定位

现有 invest 系列 skill 只定义"怎么想"(分析框架),数据靠 web search。 invest-cli 补充"怎么取"(数据获取),把 CLI 脚本和分析框架串起来。

dual-mode:

  • Skill 触发 → 调用 CLI 脚本(--json)→ 用 invest 系列框架解读 → 输出完整分析报告
  • 终端直接运行 → 输出表格快照

入口约定:优先 invest-cli 命令(PATH,wrapper 在 ~/.local/bin/);PATH 无该命令时用 "$HOME/.local/bin/invest-cli" 兜底。不要绕过 wrapper 直接 python3 裸跑系统解释器——那样会丢掉 venv 里的 yfinance,美股路径静默降级到 Bitget rToken 报价。

路由逻辑

  1. 识别标的类型(股票/基金/美股/选股)
  2. 调用对应子命令,--json 获取结构化数据
  3. 将 JSON 数据传给 invest 系列分析框架
  4. 输出完整分析报告

子命令

stock — A股/港股分析

invest-cli stock <代码/名称> [--json]
  • 数据源:同花顺金融数据服务优先(A 股官方 REST);失败或港股回退东方财富
  • 获取:实时行情 + PE/PB/PS/PCF + 近 5 年年报 + ROE/毛利率/现金流(港股仍走东财)
  • 分析框架:对标 invest-stock 三关审查(懂不懂 / 好不好 / 贵不贵)
  • 内置名称映射:茅台→600519、五粮液→000858、宁德时代→300750 等

fund — 基金分析

invest-cli fund <代码/名称> [--json]
  • 数据源:同花顺金融数据服务优先;失败回退东方财富(intent deep fund 仍先盈米)
  • 获取:净值/业绩/回撤/费率/经理/十大重仓
  • 分析框架:对标 invest-fund 三关审查
  • 内置名称映射:易方达蓝筹(精选)→005827、中欧医疗→003096 等。注意 110011 现为「易方达优质精选(QDII)」,旧文档把「易方达蓝筹」映射到 110011 是错的(源码注释里专门记过这次纠偏)

us — 美股分析

invest-cli us <代码> [--json]
  • 数据源:yfinance 优先(估值/财务/评级);缺失或失败时回退腾讯行情(真实美股行情,含 PE/PB/市值/52周/股息率/ROE),再退 Bitget rToken 报价(USDT,非官方价,只有成交价与 24h 区间)
  • 获取:全量快照(yfinance)或行情口径快照(tencent)或行情-only(bitget,quote_type=rtoken)
  • 分析框架:对标 invest-stock 美股四维度(ROE持续性/负债安全/FCF质量/经济护城河);Bitget 回退仅有报价,无财务

quote — 免鉴权多标的实时行情(跨市场)

invest-cli quote <代码[,...]> [--json]
  • 用途:只要行情的问题(「现在多少钱」「涨跌多少」「这几只对比一下」)
  • 数据源:腾讯行情(零鉴权),一次 HTTP 请求可带任意多个标的,跨 A股/港股/美股/ETF/可转债
  • 实测:单标的 ~130ms,6 标的混合 ~132ms;缓存 10s(比快照链的 60s 更严,行情语境下可忽略)
  • 与 stock/fund/us 的分工:那三条是深度快照(含基本面,冷取数 0.5s 起,美股 4s 量级), quote 是纯行情。问基本面却用 quote 会缺 ROE/净利润;问行情却用 stock 会多付几倍等待

sec — 美股财报原文(SEC EDGAR,免费官方源)

invest-cli sec <代码> [--forms 10-K,10-Q,8-K] [--filings 5] [--json]

Read the full file on GitHub · 276 lines

Files

What ships with it

60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +14 lines e19679d2c044
  2. 1mo ago Changed · +17 lines · +6 tokens per session 53061d979dbc
  3. 1mo ago Changed · +39 lines · +18 tokens per session 2640d1f64f0d
  4. 1mo ago First seen · 206 lines · 89 tokens per session scan A 6fad83317cde

Subscribe to this mod's changes

invest-cli is a skill published in the GitHub repository taxueseek/fund-investment-guide (21 stars, last pushed 1mo ago), licensed MIT. It adds 113 tokens to every session and 4,327 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

paymob-integration

Integrate and operate Paymob payments in Egypt, UAE, KSA, and Oman — checkout, Intention API, HMAC webhooks, SDKs, plugins, refunds, reconciliation, go-live, diagnostics, and support tickets.

PaymobAccept/Paymob-AI-Integration-Skill · 52 tokens

tushare

A Python interface to Tushare, a financial-data service providing market, company, fund, futures, and other finance-related data. It shows how to authenticate and query the service into pandas tables.

skloxo/TideTrading · 79 tokens

credit-analysis

A framework for analysing bonds and other fixed-income investments, including issuer credit quality, interest-rate sensitivity, credit spreads, and default risk. A credit rating estimates how likely an issuer or specific bond is to repay its debt.

skloxo/TideTrading · 36 tokens

investment-report-reader

Read and extract content from PDF investment reports — sell-side notes (GS/MS/JPM/UBS/Citi/BofA), 10-Ks, annual reports, fund factsheets, manager commentaries, and macro outlooks. Specialises in CHARTS, TABLES, and IMAGES that text-only extraction silently misses (most research charts are vector and invisible to…

HHFinAi/claude-equity-research-skills · 221 tokens

vibe-trading

Professional finance research toolkit — backtesting (7 engines + benchmark comparison panel), factor analysis, Alpha Zoo (452 pre-built alphas across qlib158/alpha101/gtja191/academic), options pricing, 79 finance skills, 29 multi-agent swarm teams, Trade Journal analyzer, and Shadow Account (extract → backtest →…

skloxo/TideTrading · 139 tokens

earnings-analysis

Institutional-quality earnings analysis for public equities. Parses 10-Qs, earnings releases, and call transcripts into a 4-layer framework (Parse → Compare → Diagnose → Decide), runs a mechanical scoring engine that produces a composite verdict across beat quality, operational health, and management signals, and…

HHFinAi/claude-equity-research-skills · 187 tokens