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 ZICXR/A-Stock-Skills --skill trade-reviewgit clone --depth 1 https://github.com/ZICXR/A-Stock-SkillsWrote 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/zicxr/a-stock-skills/trade-review)<a href="https://agentmods.dev/skills/zicxr/a-stock-skills/trade-review"><img src="https://agentmods.dev/badge/skills/zicxr/a-stock-skills/trade-review/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/zicxr/a-stock-skills/trade-review"><img src="https://agentmods.dev/badge/skills/zicxr/a-stock-skills/trade-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00134 | $0.01644 |
| Opus 5 | $0.00067 | $0.00822 |
| Sonnet 5 | $0.00027 | $0.00329 |
| Haiku 4.5 | $0.00013 | $0.00164 |
Grade A, and why
trade-review 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 12d 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 — 155 lines — stays where its author put it; the contents beside it link to each section on GitHub.
交割单操作分析诊断 Skill
何时使用
- 用户有券商交割单(CSV/Excel),想分析自己的操作问题
- 用户想知道"我到底亏在哪里"、"我的交易习惯有什么问题"
- 用户想做交易复盘,但不是简单的盈亏统计,而是行为诊断
- 用户想对比 AI 建议 vs 实际操作
核心理念
交割单 → 解析 → 配对 → 5 维诊断 → 建议
↓
不只是"赚了还是亏了"
而是"为什么亏、怎么改"
提供能力
交割单解析
parse_settlement(path)- 自动识别券商格式,解析为标准 DataFramedetect_format(df)- 识别券商格式(华泰/中信/东财/通用)
交易配对
pair_trades(df)- FIFO 配对,生成完整交易轮次
5 维分析
analyze_pnl(trades)- 盈亏统计(胜率/盈亏比/最大盈亏)analyze_holding_period(trades)- 持仓周期分析analyze_behavior(trades, klines)- 操作行为诊断(追涨杀跌/坐电梯/频繁交易)analyze_position(trades)- 仓位管理分析analyze_timing(trades, klines)- 买卖时机分析(结合行情)
AI 信号对比
compare_with_ai(trades)- 对比 trade-journal 中的 AI 建议 vs 实际操作
综合
analyze_trades(path, fetch_kline)- 一键全流程分析generate_report(result)- 生成 Markdown 诊断报告generate_suggestions(result)- 生成改进建议
使用方式
# 分析交割单
python main.py analyze path/to/settlement.csv
# 指定日期范围
python main.py analyze settlement.csv --from 2025-01-01 --to 2025-12-31
# 结合行情分析买卖点(需要网络,较慢)
python main.py analyze settlement.csv --kline
# 保存报告
python main.py analyze settlement.csv --save
# 查看支持的字段
python main.py fields
Python API
from skills.04-stock-analysis.trade-review.main import (
parse_settlement, analyze_trades, generate_report
)
# 解析交割单
df = parse_settlement("settlement.csv")
# 全流程分析
result = analyze_trades(df, fetch_kline=False)
# 生成报告
report = generate_report(result)
print(report)
5 维诊断
| 维度 | 分析内容 | 诊断问题 |
|---|---|---|
| 盈亏统计 | 胜率/盈亏比/收益分布 | 赚小亏大?胜率太低? |
| 持仓周期 | 平均天数/盈利vs亏损对比 | 拿不住?套牢装死? |
| 操作行为 | 追涨杀跌/坐电梯/频繁交易 | 管不住手? |
| 仓位管理 | 集中度/加减仓模式 | 一把梭? |
| 买卖时机 | 均线位置/支撑压力/对比大盘 | 买在山顶? |
操作问题诊断规则
| 问题 | 判定条件 | 建议 |
|---|---|---|
| 赚小亏大 | 盈亏比 < 1 | 设定止损线,让利润奔跑 |
| 胜率过低 | 胜率 < 40% | 减少出手次数,提高选股质量 |
| 频繁交易 | 平均持仓 < 3 天 | 降低交易频率,手续费侵蚀利润 |
| 坐电梯 | 曾盈利 >5% 但亏损卖出 > 3 次 | 设定动态止盈(如回撤 3% 出场) |
| 不止损 | 最大单笔亏损 > 20% | 严格执行止损(如 -7%) |
| 集中度过高 | 单股仓位 > 50% | 分散到 3-5 只,单股不超 30% |
| 追涨杀跌 | 追涨比例 > 50% | 尝试回调买入,避免情绪化 |
| 跑输大盘 | 收益率 vs 沪深300 < -10% | 考虑指数基金或降低操作频率 |
What ships with it
2 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.
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.
- 12d ago First seen · 155 lines · 0 tokens per session scan A 5ed471d858fd
trade-review is a skill published in the GitHub repository ZICXR/A-Stock-Skills (25 stars, last pushed 2mo ago), licensed MIT. It adds 134 tokens to every session and 1,644 once invoked, about $0.0007 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
private-company-research
A research workflow for private companies, meaning businesses whose shares are not traded on a public stock exchange. It uses several research roles to investigate the company in depth.
bottleneck-hunter
A research workflow for finding supply-chain bottlenecks—parts of global production where shortages or limited capacity may create investment opportunities.
investment-research
A broad stock-research workflow combining ideas associated with Warren Buffett, Charlie Munger, Duan Yongping, and Li Lu. It examines the business, its quality, its risks, and its value.
industry-research
An industry-research workflow that maps how an industry works from suppliers to customers, then examines individual companies within it. The value-investing analysis looks at business quality, risks, and price.
investment-checklist
A pre-purchase checklist for value investing, which means buying shares based on a company’s business quality and estimated worth. It is based on the investing approach associated with Warren Buffett.
management-deep-dive
A research workflow for evaluating a company’s managers and leaders. It treats buying shares as partly trusting the people who run the business.