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.
npx skills add taxueseek/fund-investment-guide --skill invest-cligit clone --depth 1 https://github.com/taxueseek/fund-investment-guideWrote 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.
[](https://agentmods.dev/skills/taxueseek/fund-investment-guide/invest-cli)<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.
<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>- NVIDIA SkillSpector warn
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.
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.
| Model | Per session | Once 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 |
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.
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.
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" 兜底。
路由逻辑
- 识别标的类型(股票/基金/美股/选股)
- 调用对应子命令,
--json获取结构化数据 - 将 JSON 数据传给 invest 系列分析框架
- 输出完整分析报告
子命令
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
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.
- .gitignore 26 B
- data-sources.yaml 3.8 KB
- docs/ablation.md 4.3 KB
- docs/capability-gap.md 7.7 KB
- docs/data-sources.md 9.2 KB
- requirements.txt 285 B
- scripts/_common.py 9.3 KB runs code
- scripts/cmd_capabilities.py 9.3 KB runs code
- scripts/cmd_datasources.py 1.9 KB runs code
- scripts/cmd_fund.py 10.0 KB runs code
- scripts/cmd_info.py 1.2 KB runs code
- scripts/cmd_intent.py 11 KB runs code
- scripts/cmd_present.py 5.5 KB runs code
- scripts/cmd_stock.py 8.6 KB runs code
- scripts/cmd_ttskill.py 2.4 KB runs code
- scripts/cmd_us.py 12 KB runs code
- scripts/cmd_watchlist.py 3.9 KB runs code
- scripts/cmd_wind.py 1.1 KB runs code
- scripts/cmd_yingmi.py 1016 B runs code
- scripts/invest_cli.py 10 KB runs code
- scripts/sources/__init__.py 1.4 KB runs code
- scripts/sources/argo.py 3.3 KB runs code
- scripts/sources/bitget.py 6.6 KB runs code
- scripts/sources/eastmoney.py 3.8 KB runs code
- scripts/sources/env.py 3.8 KB runs code
- scripts/sources/fred.py 6.2 KB runs code
- scripts/sources/hithink.py 27 KB runs code
- scripts/sources/registry.py 6.7 KB runs code
- scripts/sources/route.py 4.7 KB runs code
- scripts/sources/ttskill.py 12 KB runs code
- scripts/sources/wind.py 3.9 KB runs code
- scripts/sources/yfinance.py 1.2 KB runs code
- scripts/sources/yingmi.py 3.0 KB runs code
- scripts/test_bitget.py 4.7 KB runs code
- scripts/test_capabilities.py 2.5 KB runs code
- scripts/test_claims.py 4.8 KB runs code
- scripts/test_contract.py 4.1 KB runs code
- scripts/test_env.py 2.3 KB runs code
- scripts/test_fred.py 1.5 KB runs code
- scripts/test_hithink.py 12 KB runs code
- scripts/test_intent_scenes.py 2.8 KB runs code
- scripts/test_intent.py 2.2 KB runs code
- scripts/test_present.py 1.6 KB runs code
- scripts/test_route.py 4.6 KB runs code
- scripts/test_skill_integrity.py 3.4 KB runs code
- scripts/test_ticker_norm.py 1.2 KB runs code
- scripts/test_ttskill_source.py 2.0 KB runs code
- scripts/test_us_dividend.py 2.8 KB runs code
- scripts/test_yingmi.py 3.0 KB runs code
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.
- 8d ago Changed · +39 lines · +18 tokens per session 2640d1f64f0d
- 12d ago First seen · 206 lines · 89 tokens per session scan A 6fad83317cde
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.
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…
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…
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.
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.
india-stock-analysis
Use when user requests analysis of Indian stocks, fundamental assessment, technical review, comparisons, or investment reports for NSE/BSE listed companies.
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.