invest-cli

invest-cli is a skill for Claude Code, Codex from taxueseek/fund-investment-guide. It costs 107 tokens per session (3,369 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 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,369 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.00107 $0.03369
Opus 5 $0.00053 $0.01684
Sonnet 5 $0.00021 $0.00674
Haiku 4.5 $0.00011 $0.00337

Measured 8d ago against content hash 2640d1f64f0d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, 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 8d ago.

The scan reads SKILL.md. This mod also ships 43 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 · 245 lines

How it starts

The opening of the file, as written. The whole thing — 245 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 无该命令时用 python3 "$HOME/.agents/skills/invest-cli/scripts/invest_cli.py" 兜底。

路由逻辑

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

子命令

stock — A股/港股分析

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

fund — 基金分析

python3 ~/.agents/skills/invest-cli/scripts/invest_cli.py fund <代码/名称> [--json]
  • 数据源:同花顺金融数据服务优先;失败回退东方财富(intent deep fund 仍先盈米)
  • 获取:净值/业绩/回撤/费率/经理/十大重仓
  • 分析框架:对标 invest-fund 三关审查
  • 内置名称映射:易方达蓝筹→110011、中欧医疗→003096 等

us — 美股分析

python3 ~/.agents/skills/invest-cli/scripts/invest_cli.py us <代码> [--json]
  • 数据源:yfinance 优先(估值/财务/评级);缺失或失败时回退 Bitget rToken 报价(USDT,非官方价)
  • 获取:全量快照(yfinance)或行情-only(bitget,quote_type=rtoken
  • 分析框架:对标 invest-stock 美股四维度(ROE持续性/负债安全/FCF质量/经济护城河);Bitget 回退仅有报价,无财务

screen — 选股

python3 ~/.agents/skills/invest-cli/scripts/invest_cli.py screen <条件> [--json]
  • 数据源:东方财富选股 API
  • 支持自然语言条件:"市盈率低于10的银行股"、"近1年收益>30%的基金"

watchlist — 本地自选股

python3 ~/.agents/skills/invest-cli/scripts/invest_cli.py watchlist add <代码> [--name N] [--type fund|stock]
python3 ~/.agents/skills/invest-cli/scripts/invest_cli.py watchlist remove <代码>
python3 ~/.agents/skills/invest-cli/scripts/invest_cli.py watchlist list [--with-quote]
  • 本地存储 ~/.cache/invest-cli/watchlist.json,不依赖任何外部账户登录态
  • 行情预览走 route.fetch(A 股/基金快照链),按 --type 选 stock 或 fund

Read the full file on GitHub · 245 lines

Files

What ships with it

49 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. 8d ago Changed · +39 lines · +18 tokens per session 2640d1f64f0d
  2. 12d 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 (18 stars, last pushed 9d ago), licensed MIT. It adds 107 tokens to every session and 3,369 once invoked, about $0.0005 per session on Opus 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

weekly-fno-trade-planner

Weekly F&O trade planning skill for Indian markets. Analyzes news/macro events, identifies trending sectors and instruments, determines probable direction, suggests option strategy with entry/exit levels, and manages stop-loss and profit booking after position entry. Use when user wants a weekly trade idea, F&O…

ajeeshworkspace/indian-trading-skills · 86 tokens

india-news-tracker

Track and analyze Indian stock market news, corporate announcements, SEBI circulars, bulk/block deals, and earnings calendars. Auto-fetches headlines from MoneyControl, Economic Times, LiveMint, BSE/NSE filings. Use when the user asks about recent news, corporate actions, upcoming events, or wants a daily market news…

ajeeshworkspace/indian-trading-skills · 76 tokens

options-strategy-advisor

Options strategy analysis for Indian F&O markets (NSE). Use when user requests options strategy recommendations, P/L analysis, Greeks calculation, risk management, or F&O strategy planning for Nifty, Bank Nifty, or stock options.

ajeeshworkspace/indian-trading-skills · 53 tokens

india-market-breadth

Analyze Indian market breadth health using advance/decline data, stocks above moving averages, new highs/lows, and sector participation. Use when assessing rally quality, market participation width, or equity exposure levels for NSE/BSE.

ajeeshworkspace/indian-trading-skills · 51 tokens

india-stock-analysis

Use when user requests analysis of Indian stocks, fundamental assessment, technical review, comparisons, or investment reports for NSE/BSE listed companies.

ajeeshworkspace/indian-trading-skills · 31 tokens

backtest-expert

Expert guidance for systematic backtesting of trading strategies on Indian markets (NSE/BSE). Use when developing strategies, testing robustness, avoiding overfitting, or validating trading ideas.

ajeeshworkspace/indian-trading-skills · 41 tokens