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 mahmoud20138/Tradecraft --skill context-memorygit clone --depth 1 https://github.com/mahmoud20138/TradecraftWrote 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/mahmoud20138/tradecraft/context-memory)<a href="https://agentmods.dev/skills/mahmoud20138/tradecraft/context-memory"><img src="https://agentmods.dev/badge/skills/mahmoud20138/tradecraft/context-memory.svg" alt="Measured on agentmods" 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.00028 | $0.00563 |
| Opus 5 | $0.00014 | $0.00282 |
| Sonnet 5 | $0.00006 | $0.00113 |
| Haiku 4.5 | $0.00003 | $0.00056 |
Grade A, and why
context-memory 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 8d 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.
What it actually says
Context Memory — Session State Manager
You are a persistent state manager for multi-skill workflows. You save, retrieve, and inject context between skill calls.
Memory Store Schema
{
"session": {
"date": "YYYY-MM-DD",
"account_size": null,
"risk_per_trade": null,
"active_pairs": [],
"current_regime": null
},
"analysis": {
"last_pair": null,
"last_fen": null,
"macro_bias": null,
"key_levels": {},
"active_setups": []
},
"trades": {
"open": [],
"pending": [],
"today_pnl": 0,
"today_trades": 0
},
"skills_run": []
}
Commands
SAVE — Store a value
/context-memory save key=value
/context-memory save account_size=10000
/context-memory save current_regime=trending_bullish
/context-memory save active_pairs=[EURUSD,XAUUSD,GBPUSD]
LOAD — Retrieve stored values
/context-memory load
/context-memory load account_size
/context-memory load analysis
INJECT — Prepend context into next skill call
/context-memory inject → /trading-brain
(automatically prefixes stored context before running the skill)
CLEAR — Reset memory
/context-memory clear session
/context-memory clear all
SUMMARY — Display current state
/context-memory summary
Auto-Capture
When chaining skills, automatically capture these outputs:
- From
/market-regime-classifier→ savecurrent_regime - From
/risk-and-portfolio→ saveposition_size,max_risk - From
/trading-brain→ saveactive_setups,key_levels - From
/trade-journal-analytics→ savetoday_pnl,today_trades
Persistence
Write memory state to: ~/.claude/session_context.json
Read it at the start of each session for continuity.
Usage
When user says "remember that...", "use what you know about...", "apply previous analysis to...", activate this skill to retrieve and inject the relevant stored context.
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.
- 8d ago First seen · 92 lines · 28 tokens per session scan A a852d106cac5
context-memory is a skill published in the GitHub repository mahmoud20138/Tradecraft (15 stars, last pushed 4mo ago), licensed MIT. It adds 28 tokens to every session and 563 once invoked, about $0.0001 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
comptable
Comptabilité, fiscalité et facturation pour entreprises françaises. Gère écritures PCG, déclarations TVA, IS/IR, clôture annuelle, liasse fiscale (2033/2065), FEC, états financiers, et chaîne facturation (mentions obligatoires, numérotation, Factur-X/UBL/CII, plateformes agréées PDP/PA, e-reporting, réforme 2026…
fiscaliste
Fiscaliste IA pour la fiscalité personnelle des particuliers français : optimisation et déclaration de l'impôt sur le revenu, IFI, revenus du capital, revenus fonciers, equity salarial, crypto-actifs et PER. Couvre le calcul de l'IR (barème, quotient familial, décote, PAS, CEHR, revenus exceptionnels), la déclaration…
controleur-fiscal
Inspecteur des finances publiques IA. Simule un contrôle fiscal DGFIP complet sur les comptes d'une entreprise française (SASU, EURL, SAS, SARL). Analyse le FEC, la liasse fiscale, les charges déduites, le compte courant d'associé, la TVA, l'IS selon 8 axes de vérification. Identifie les chefs de redressement…
commissaire-aux-comptes
Commissaire aux comptes IA pour l'audit des comptes annuels d'entreprises françaises. Applique la démarche NEP en 7 phases : prise de connaissance, contrôle du FEC, vérification du bilan, du compte de résultat, de la balance, de la liasse fiscale, et contrôles transversaux. Émet une opinion motivée sur la fiabilité…
syndic
Gère un parc de copropriétés en France avec vue portfolio consolidée. Couvre administration, comptabilité (décret 2005, plan comptable copro, 5 annexes), assemblées générales (convocation, PV, notification), appels de fonds, travaux, fournisseurs, recouvrement d'impayés et transition de syndic. Maîtrise les majorités…
self-improve
Extract lessons from the current session, or sweep the project's past sessions when asked, and route them to the appropriate knowledge layer (project AGENTS.md, auto memory, existing skills, or new skills). Use when the user asks to "self-improve", "distill this session", "distill past sessions", "sweep past…