You're looking at a dual-write system that logs stock trades to both markdown files and SQLite. Every buy, sell, or position adjustment gets recorded with price, quantity, position size, and your reasoning, plus stop-loss and take-profit levels. The markdown files accumulate per ticker symbol, while the database handles the number crunching later. It's straightforward Python scripting with a clear command structure. The documentation is in Chinese but the implementation is transparent enough. If you're manually tracking trades and want something more structured than a spreadsheet but less heavy than a full portfolio app, this hits that middle ground. It won't integrate with your broker, but that might be exactly what you want for a clean personal journal.

skills.sh installs
773
GitHub stars
67
last updated
Aug 21, 2026

Install

$ npx -y skills add kirkluokun/awesome-a-stock-openclawskills --skill stock-trade-journal --agent claude-code

Installs into .claude/skills of the current project.

Files

stock-trade-journal

固定存储位置

  • results/trade-journal/records/<TS_CODE>.md
  • results/trade-journal/db/trades.db

执行规则

  1. 每次交易动作都记录(买/卖/加/减)。
  2. 同时写 Markdown + SQLite(双写)。
  3. Markdown 按个股持续追加,数据库用于后续统计计算。

命令模板

python3 scripts/record_trade.py \
  --workspace ~/.openclaw/workspace \
  --ts-code 603067.SH --side SELL --price 44.1 --quantity 2900 \
  --position-before 36900 --position-after 34000 \
  --reason "压力位先锁利润" --stop-loss 37.2 --take-profit "45.5分批"

Sponsors

Details

Repository
github.com/kirkluokun/awesome-a-stock-openclawskills
Categories
Finance & Trading, Databases
First seen
Jun 3, 2026

More from kirkluokun/awesome-a-stock-openclawskills

All 2
1joellewis avatarcurrencies-and-fxjoellewis/finance_skillsAnalyze currency markets, exchange rate mechanics, and FX risk management for international portfolios. Use when the user asks about exchange rates, FX hedging,765skills.sh installs
2mindrally avatarethereummindrally/skillsExpert guidelines for Ethereum smart contract development with Solidity, OpenZeppelin, and Hardhat765skills.sh installs
3joellewis avatarbet-sizingjoellewis/finance_skillsDetermine how much capital to allocate to individual positions within a portfolio. Use when the user asks about position sizing, the Kelly criterion, fractional755skills.sh installs
4joellewis avatartime-value-of-moneyjoellewis/finance_skillsCalculate present value, future value, NPV, IRR for projects and loans, loan payments, and amortization schedules across all compounding conventions. Use when t754skills.sh installs
5ruvnet avatartrader-backtestruvnet/rufloRun a historical backtest using npx neural-trader with Rust/NAPI engine (8-19x faster) and walk-forward validation; Ed25519-sign the result for paper→live tampe746skills.sh installs
6whawkinsiv avataraccountingwhawkinsiv/claude-code-skillsaccounting742skills.sh installs