trade-journal
Skill20 starsChanged 5 months agoMITView on GitHub
把交易/持仓截图或口述结构化录入「交易日志」——记下标的、方向、股数、成本价、建仓日、账户,并当场确认每笔的「来源框架」(framework/直觉/消息/未归因),写入独立的交易日志表(默认本地 CSV/Markdown,飞书/Notion 等为可选适配器),并联动 openorder thesis-ledger 做归因与盈亏。当用户发券商/持仓/成交截图、说"记一笔/记账/录入交易/建仓/加仓/减仓/平仓/这是我的持仓""帮我把这单记下来""更新持仓"时使用。配合 openorder(归因+thesis-ledger)、stock-data-fetch(现价算盈亏)、claim-verification(截图数字不臆造)。
7 other projects use a version of this.
Adopted by
Most recently taken up by
- PatrickSUDO/fadacai-portfoliotheir own version, first seen Sep 29, 2026
- IngAs8/ClaudeSkilltheir own version, first seen Sep 28, 2026
- NT-NinjaTrader/mcp-skillstheir own version, first seen Jul 25, 2026
- nimadorostkar/Claude-Skills-collectiontheir own version, first seen Jul 14, 2026
- ZICXR/A-Stock-Skillstheir own version, first seen Jun 22, 2026
- tusharagg1/aifolimizertheir own version, first seen Jun 11, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- agiprolabs/claude-trading-skills★ 408same name
- PatrickSUDO/fadacai-portfolio★ 142same name
- ZICXR/A-Stock-Skills★ 29same name
- nimadorostkar/Claude-Skills-collection★ 28same name
- NT-NinjaTrader/mcp-skills★ 4same name
- tusharagg1/aifolimizer★ 1same name
- IngAs8/ClaudeSkill★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/openorder/AGENTS.mdAGENTS.md
- alphaloopSkill
- agent-tool-escalationSkill
- claim-verificationSkill
- openorderSkill
- stock-data-fetchSkill
- strategic-materialsSkill
The file
Files
Trade Journal(交易日志:截图/口述 → 结构化录入)
目的:把"建仓即记"变成习惯——每笔交易记下成本价 + 建仓日 + 来源框架,让 openorder
thesis-ledger.md的盈亏栏能自动回填、框架命中率自然累积。这是闭合「分析→建仓→盈亏→校准」环最缺的一步。 接线:归因/落档走openorder;现价算盈亏走stock-data-fetch;截图数字不臆造走claim-verification(看不清的标 ⚠️,不编)。 铁律:交易写入独立的交易日志表,绝不写用户原有的展示/持仓表,避免污染既有结构与数字。
存储后端(默认本地,云端可选)
为了让任何人开箱即用,默认把交易日志存成本地文件,云端表格是可选适配器:
| 后端 | 路径 / 配置 | 适用 |
| 本地 CSV(默认) | ${TRADE_JOURNAL:-$HOME/openorder/trade-journal.csv} | 零依赖,纯文本,git 可追踪 |
| 本地 Markdown 表 | ${OPENORDER_HOME:-$HOME/openorder}/trade-journal.md | 想跟 openorder wiki 放一起、用 Obsidian 浏览 |
| 云端表格(可选) | 飞书/Google Sheets/Notion 等,token 放环境变量,不要硬编码进本仓库 | 多端同步 / 团队共享 |
用云端表格时,把 spreadsheet token、sheet_id 等放进你自己的环境变量或本地配置(如
~/.config/trade-journal/config),永远不要把私有 token 提交到任何公共仓库。
表头(统一列结构,CSV/表格通用)
日期,账户,标的,方向,股数,成本价,货币,金额,来源框架,thesis-id,备注| 列 | 字段 | 说明 |
| 日期 | 成交日 YYYY-MM-DD | |
| 账户 | 券商/钱包名 | FUTU/Tiger/IBKR/Wallet… |
| 标的 | ticker 或中文名 | |
| 方向 | 买 / 卖 / 加仓 / 减仓 / 平仓 | |
| 股数 | 数量 | |
| 成本价 | 成交单价 | |
| 货币 | USD/CNY/HKD… | |
| 金额 | 股数×成本价(本币) | |
| 来源框架 | framework:{id} / 直觉 / 消息 / 未归因 | 每笔必确认 |
| thesis-id | 关联 openorder thesis-ledger 的 ID | 可空 |
| 备注 | 截图看不清/存疑的标注在此 |
录入工作流
1. 读输入(截图用 Read 读图 / 口述直接取)
→ 抽取每笔:日期、账户、标的、方向、股数、成本价、货币
→ 看不清的字段标 ⚠️,向用户确认,绝不臆造(claim-verification 纪律)
2. 逐笔确认「来源框架」(关键人机边界,必须问)
→ 这笔是哪个框架/thesis 驱动的?还是直觉/消息/未归因?
→ 这是把人的判断变成可复利训练信号的入口,不能省
3. 追加到交易日志表(仅此独立表,不碰原始持仓表)
→ 本地 CSV:按表头顺序 append 一行(多笔批量);首次创建先写表头
→ 云端表格:用对应 CLI/API append;写前先确认表结构与 sheet_id
(注意各家 append API 的 range 行数必须 ≥ 要写的行数)
4. 联动 openorder(归因闭环)
→ 框架驱动的建仓:在 thesis-ledger 对应/新建 thesis,回填 头寸=framework:X + 成本 + 建仓日
→ 未归因的:标 直觉/消息,列入复盘提醒
→ 追加 openorder log(action=decision)
5. 回执
→ 列出记了哪几笔、来源框架、写到表的第几行;ASK 是否要据此更新持仓敞口盈亏计算(查询时)
要看盈亏时:从交易日志取成本,用 stock-data-fetch 取现价(标时间+源),盈亏 = (现价−成本价)×股数。铁律:框架对错(thesis 结果)与头寸盈亏分开记分,不用单笔盈亏给框架定生死(见 openorder frameworks/outcome-tracking.md)。
边界:何时不要用我
- 用户只是问行情/分析,没有"记一笔/录入"意图 → 不要触发(那是 strategic-materials / openorder 的活)。
- 绝不写用户的原始持仓/展示表;只写独立交易日志表。
- 截图数字模糊读不准 → 标 ⚠️ 让用户确认,不猜不填。
反模式
- ❌ 不确认来源框架就录入(丢掉最有价值的归因信号)。
- ❌ 把看不清的成本价/股数硬填一个数(违反 claim-verification)。
- ❌ 写进原始持仓表导致结构/数字被污染。
- ❌ 用单笔盈亏判定框架好坏(要看命中率 n,且对错≠盈亏)。
- ❌ 把私有云端表 token 硬编码进公共仓库(放环境变量)。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

