analyze-stock

analyze-stock is a command for Claude Code from godisego/hot-money. It costs 46 tokens per session (1,349 once invoked), scanned A, original, MIT.

A complete stock-analysis command that collects data, runs scoring, asks investor groups for analysis, and produces a Bloomberg-style HTML report. It is designed for stocks in mainland China, Hong Kong, and the United States.

In plain words
What is it for?
Use it to perform an end-to-end review of a stock, including financial measures, rule-based scores, investor-panel judgments, valuation methods, possible fraud risks, and a final report.
Why use it?
It organizes data collection, checks for weak data, valuation, investor opinions, and risk analysis into one workflow. This gives a broader review than looking at a single metric.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions subagents.

Part of the stock-deep-analyzer plugin — 4 skills, 15 commands, 1 agent, 1 hook shipped together

Good fit Use it to perform an end-to-end review of a stock, including financial measures, rule-based scores, investor-panel judgments, valuation methods, possible fraud risks, and a final report.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/godisego/hot-money/analyze-stock
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.

Clone the repo
git clone --depth 1 https://github.com/godisego/hot-money

Made for: Claude Code.

Or install stock-deep-analyzer, the plugin that ships this one along with the rest of its 4 skills, 15 commands, 1 agent, 1 hook.

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 analyze-stock

README.md
[![agentmods](https://agentmods.dev/badge/commands/godisego/hot-money/analyze-stock/github.svg)](https://agentmods.dev/commands/godisego/hot-money/analyze-stock)
Your own site
<a href="https://agentmods.dev/commands/godisego/hot-money/analyze-stock"><img src="https://agentmods.dev/badge/commands/godisego/hot-money/analyze-stock/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 analyze-stock

Your own site · 80×15
<a href="https://agentmods.dev/commands/godisego/hot-money/analyze-stock"><img src="https://agentmods.dev/badge/commands/godisego/hot-money/analyze-stock.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,349 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.
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.00046 $0.01349
Opus 5 $0.00023 $0.00674
Sonnet 5 $0.00009 $0.00270
Haiku 4.5 $0.00005 $0.00135

Measured 11d ago against content hash 5a9c9cde83e8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

analyze-stock 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 11d 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.

commands/analyze-stock.md · 133 lines

How it starts

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

深度分析任务

用户输入: $ARGUMENTS

执行流程(两段式 · 你必须在中间介入)

第一段 · 数据采集 + 骨架分(脚本完成)

cd <plugin_root>
pip install -r requirements.txt 2>/dev/null
cd skills/deep-analysis/scripts
python -c "from run_real_test import stage1; stage1('$ARGUMENTS')"

这会跑完 Task 1 → 1.5 → 2 → 3(规则引擎骨架分),输出到 .cache/{ticker}/ 下。

第二段 · 你来分析(核心!不能跳过!)

Stage 1 跑完后,你必须做以下事情

0. v2.13.5 · Playwright 兜底前置(必走)

import json, os
from pathlib import Path
net = json.loads(Path(".cache/_global/network_profile.json").read_text(encoding="utf-8"))
issues = json.loads(Path(f".cache/{ticker}/_review_issues.json").read_text(encoding="utf-8"))
low_quality_dims = [
    i["dim"] for i in issues.get("issues", [])
    if i.get("category") == "data" and i.get("severity") in ("critical", "warning")
]
if low_quality_dims:
    os.environ["UZI_PLAYWRIGHT_FORCE"] = "1"
    from lib.playwright_fallback import autofill_via_playwright
    autofill_via_playwright(raw, ticker)  # 主动强制再跑一次 · 补数据

1. 读取评委骨架分

.cache/{ticker}/panel.json,看 51 人各自打了多少分。特别关注:

  • Top 5 看多和 Top 5 看空分别是谁?他们的 headline 有没有说服力?
  • 有多少人 skip 了?(非 A 股时游资会 skip)
  • 有没有明显不合理的分数?

2. 逐组分析(spawn 4 个并行 sub-agent)

对每组投资者,spawn 一个 Agent:

Agent 1 · 价值 + 成长派(10 人)

你要扮演巴菲特/格雷厄姆/费雪/芒格/邓普顿/卡拉曼/林奇/欧奈尔/蒂尔/木头姐,
逐一对 {stock_name} ({ticker}) 给出判断。

公司数据:{从 raw_data.json 摘取关键数据}
规则引擎参考分:{从 panel.json 摘取这 10 人的 score/headline}
真实持仓:{巴菲特持有苹果/BYD, 段永平持有苹果/茅台/腾讯 等}

对每人输出: investor_id, signal, score(0-100), headline(引用数字), reasoning(2-3句)
你可以覆盖规则引擎的分数——你是在模拟这个人的判断,不是跑公式。

Agent 2 · 宏观 + 技术派(9 人) Agent 3 · 中国价投 + 量化(9 人) Agent 4 · 游资(23 人) — 非 A 股直接全部 skip

3. 合并 agent 结果

把 4 个 agent 返回的 {signal, score, headline, reasoning} 覆盖到 .cache/{ticker}/panel.json 的对应投资者上。

4. 写 agent_analysis.json(闭环关键!)

对关键维度(财报/估值/护城河/行业)写 1-2 句定性评语。如果需要,web search 补充信息。

把所有 agent 产出写入 .cache/{ticker}/agent_analysis.json

from lib.cache import write_task_output
write_task_output(ticker, "agent_analysis", {
    "agent_reviewed": True,
    "dim_commentary": { "0_basic": "...", "1_financials": "...", ... },
    "panel_insights": "整体评委观察...",
    "great_divide_override": {
        "punchline": "冲突金句",
        "bull_say_rounds": ["R1", "R2", "R3"],
        "bear_say_rounds": ["R1", "R2", "R3"]
    },
    "narrative_override": {
        "core_conclusion": "综合结论",
        "risks": ["风险1", "风险2", ...],
        "buy_zones": { ... }
    }
})

Read the full file on GitHub · 133 lines

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. 11d ago First seen · 133 lines · 46 tokens per session scan A 5a9c9cde83e8

Subscribe to this mod's changes

analyze-stock is a command published in the GitHub repository godisego/hot-money (2 stars, last pushed 4mo ago), licensed MIT. It adds 46 tokens to every session and 1,349 once invoked, about $0.0002 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-31.