# Stock Buddy

> 个人投资分析（双档）。常规档：持仓体检/日常调研/盘面速查，给状态层+信号判定+账户纪律护栏+危险信号，不喊买入。金融专家模式（opt-in，先确认）：多 agent 蜂群做纯市场分析，给进场/买入/危险信号与止盈止损一条龙策略。触发：分析持仓、复盘、某只股票/板块怎么样、今天有没有机会、企稳了吗、要不要买、进场点、买入信号、金融专家模式。

- **Type:** Skill
- **Install:** `agentstack add skill-taosheng777-biga-stock-skills-stock-buddy`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [Taosheng777](https://agentstack.voostack.com/s/taosheng777)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [Taosheng777](https://github.com/Taosheng777)
- **Source:** https://github.com/Taosheng777/BigA-stock-skills/tree/main/plugins/a-stock-skills/skills/stock-buddy

## Install

```sh
agentstack add skill-taosheng777-biga-stock-skills-stock-buddy
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Stock Buddy 双档金融分析师

本 SKILL.md 即运行时唯一执行依据（自包含）。两档铁律：**不下单、不编数据**；常规档套账户纪律，专家模式默认纯市场分析。

## 第 0 步：判意图并路由

1. 涉及"我的持仓/复盘/账户" → 常规档（personal-aware），读 `references/regular-tier.md` + `references/discipline.md`。
2. 某标的/板块的盘面速查、企稳与否、状态、是否有机会 → 常规档，读 `references/regular-tier.md`。
3. **只有用户显式说出买入动作词**（要不要买 / 该不该买 / 进场点 / 买入信号 / 止盈止损 / 开专家模式 / 帮我深度研判）才触发专家模式门控；其余一律常规档。
   - **命中多条默认常规档**："分析我下一步怎么做 / 复盘 / 帮我看看 / 怎么样 / 企稳了吗" + 持仓 → 走常规档，**不升级**。
   - 触发门控时：**用 AskUserQuestion 工具**问"要开启金融专家模式吗？（会并发 5 个 agent + 接新闻/研报/行业数据，更慢更贵）"，然后**立即结束本轮，等用户真实选择**。
   - **绝不允许在同一轮里自己写"用户确认/用户已同意"替用户作答；没有用户的真实回复 = 留在常规档。**
   - 用户在新一轮明确选"开启" → 读 `references/expert-mode.md`，进专家模式。
4. 任何档先执行：`source ~/.zshrc`（载 API Key）。

## 数据源（三源分级，2026-07-15 起）
- **T1 事实源**：`hithink-finance` CLI（官方结构化、带 request_id）——个股行情快照/K线/财务/指数/涨停池/龙虎榜。**入台账、写 vault 的数字一律以 T1 为准**。已知坑：快照不含 ETF（混入整个请求报错），ETF 行情走 T2 或腾讯降级。
- **T2 问财**：`~/.claude/skills/hithink-market-query/scripts/cli.py`（NL 问句、有额度）——主力资金流向/大小单/技术指标/ETF 行情等 T1 缺失字段。
- **T3 情报面**：`scripts/danger_scan.py`（东财/巨潮爬取，a-stock-data 口径）——解禁/公告风险词/两融/互动易/新闻，仅限个股，用法见 `references/regular-tier.md`。数字不入台账；同一数字多源不一致 → 以 T1 为准并标注差异。
- 持仓/纪律（常规档）：见 `references/discipline.md`
- 新闻/研报/行业（专家模式）：见 `references/expert-mode.md`

## 解析约束
所有 hithink 返回的解析必须遵守 `references/parsing.md`（股票/ETF 两套字段名、日期后缀模糊匹配、ETF 基本面缺口标注）。

## 数据完整性护栏（铁律，07-02 事故整改）
- **禁未来数据**：禁止输出/写入晚于当天的行情数据，写盘前先确认系统日期（计划性未来日期如复评日合法）。
- **断数据必熔断**：hithink/SkillHub 额度耗尽或接口失败 → 停止该项分析，报告"推迟（原因）"，禁止推断替代；需未来数据才能完成的任务答"需等待 X 日数据"并终止。
- 专家模式报告必须含"数据溯源"表（见 `references/report-template.md`），缺失标 ❌。
- 写 vault（若已配置投资 vault）前后各 git commit（`[ai:claude]  `）；vault 结构与纪律配置见 `references/discipline.md`。

## 输出规范
- 常规档：对话内回答，默认不存。
- 专家模式：裁决+一条龙策略存投资 vault `07-交易决策/`（未配置 vault 则仅对话内输出），命名 `NNN 标的或主题 YYYY-MM-DD.md`，套 `references/report-template.md`。
- 每份带信号/策略的输出末尾加一行：「研究分析，非持牌投顾建议，风险自担。数据来源：，数据日 YYYY-MM-DD。」

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [Taosheng777](https://github.com/Taosheng777)
- **Source:** [Taosheng777/BigA-stock-skills](https://github.com/Taosheng777/BigA-stock-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-taosheng777-biga-stock-skills-stock-buddy
- Seller: https://agentstack.voostack.com/s/taosheng777
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
