Agent skill · Code Review & Quality

trader-memory-core

Track investment theses across their lifecycle — from screening idea to closed position with postmortem. Register theses from screener outputs, manage state transitions, attach position sizing, review due dates, and generate postmortem reports with P&L and MAE/MFE analysis. Trigger when user says "register thesis", "track this idea", "thesis status", "review due", "close position", "postmortem", or "trading journal".

BaggaT236github.com/BaggaT236GitHub ↗
claude-codeships scriptsMIT
Install
npx skills add BaggaT236/AI-Trading-Skills --skill trader-memory-core --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 16
SKILL.md size: 12 KB
Bundled scripts: yes
Path: skills/trader-memory-core/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 118
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Trader Memory Core ## Overview Persistent state layer that bundles screening → analysis → position sizing → portfolio management outputs into a single "thesis object" per investment idea. Tracks what you thought, what happened, and what you learned — across conversations. Phase 1 supports single-ticker theses: dividend_income, growth_momentum, mean_reversion, earnings_drift, pivot_breakout. ## When to Use - After a screener (kanchi, earnings-trade-analyzer, vcp, pead, canslim, edge-candidate-agent) produces candidates - When transitioning a thesis from IDEA → ENTRY_READY → ACTIVE → CLOSED - When attaching position-sizer output to a thesis - When checking which theses are due for review - When closing a position and generating a postmortem with lessons learned ## Prerequisites - Python 3.10+ - `pyyaml` (already in project dependencies) - `jsonschema` (already in `pyproject.toml`; required by `thesis_store.py` and every command that imports it, including `thesis_ingest.py` and `thesis_review.py`) - FMP API key (optional, only for MAE/MFE calculation in postmortem) ### How to invoke the CLI Use the stdlib-only launcher `trader_memory_cli.py` for all CLI work. It transparently routes

What's inside
Steps it walks through
  1. Overview
  2. When to Use
  3. Prerequisites
  4. How to invoke the CLI
  5. Workflow
  6. 1. Register — Ingest screener output as thesis
  7. 2. Query — Search and list theses
  8. 3. Update — Transition, attach position, link reports
  9. 4. Review — Check due dates and monitoring status
  10. 5. Postmortem — Close and reflect
  11. Output Format
  12. Thesis YAML (state/theses/)
  13. Index (state/theses/index.json)
  14. Journal (state/journal/)
Ships with 15 files
  • assets/postmortem_template.md
  • references/field_mapping.md
  • references/thesis_lifecycle.md
  • schemas/thesis.schema.json
  • scripts/fmp_price_adapter.py
  • scripts/tests/conftest.py
  • scripts/tests/test_fmp_price_adapter.py
  • scripts/tests/test_thesis_ingest.py
  • scripts/tests/test_thesis_review.py
  • scripts/tests/test_thesis_store.py
  • scripts/tests/test_trader_memory_cli.py
  • scripts/thesis_ingest.py
  • scripts/thesis_review.py
  • scripts/thesis_store.py
  • scripts/trader_memory_cli.py
Commands it runs
From inside the repo
python3 skills/trader-memory-core/scripts/trader_memory_cli.py store --state-dir state/theses list
From any other cwd (cron, profile, distribution runner) — point the launcher at the repo
export CLAUDE_TRADING_SKILLS_REPO=/path/to/claude-trading-skills
python3 "$CLAUDE_TRADING_SKILLS_REPO/skills/trader-memory-core/scripts/trader_memory_cli.py" \
store --state-dir /path/to/state/theses list
uv pip install -e /path/to/claude-trading-skills
python3 -m pip install jsonschema
python3 skills/trader-memory-core/scripts/trader_memory_cli.py ingest \
python3 .../trader_memory_cli.py ingest --source manual --input amd.json --state-dir state/theses/
More from AI-Trading-Skills
All skills →
About this skill
What does the trader-memory-core skill do?

Track investment theses across their lifecycle — from screening idea to closed position with postmortem. Register theses from screener outputs, manage state transitions, attach position sizing, review due dates, and generate postmortem reports with P&L and MAE/MFE analysis. Trigger when user says "register thesis", "track this idea", "thesis status", "review due", "close position", "postmortem", or "trading journal".

How do I install it?

Run `npx skills add BaggaT236/AI-Trading-Skills --skill trader-memory-core --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From BaggaT236/AI-Trading-Skills, a repository with 118 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going