Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/SethGammon/Citadelnpx agentmods add skills/sethgammon/citadel/learnWrote 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/sethgammon/citadel/learn)<a href="https://agentmods.dev/skills/sethgammon/citadel/learn"><img src="https://agentmods.dev/badge/skills/sethgammon/citadel/learn/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/sethgammon/citadel/learn"><img src="https://agentmods.dev/badge/skills/sethgammon/citadel/learn.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00066 | $0.03220 |
| Opus 5.5 | $0.00026 | $0.01288 |
| Sonnet 5.5 | $0.00013 | $0.00644 |
| Haiku 4.5 | $0.00007 | $0.00322 |
Grade A, and why
learn 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 1mo 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 — 319 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/learn — Knowledge Compiler
Orientation
Use when: You have a completed campaign or evolve cycle and want to compile its findings into the project's growing knowledge wiki — so future sessions start smarter, not from scratch.
Don't use when: You want a structured incident analysis first (use /postmortem
— run it before /learn); you haven't finished any campaigns (nothing to compile);
you want a context transfer only (use /session-handoff).
Key difference from appending: /learn doesn't create isolated per-campaign
files. It integrates new findings into existing wiki pages — updating evidence
lists, raising confidence where a pattern is confirmed again, and flagging
contradictions. A wiki is a compiler; a log is an interpreter.
Invocation Forms
/learn — most recently completed campaign
/learn {slug} — specific campaign by slug
/learn {file-path} — specific campaign file path
/learn --from-evolve {target} — compile from /evolve pattern library
/learn --from-evolve {target} --cycle {n} — specific evolve cycle only
/learn --lint — lint-only pass (no new extraction)
/learn --compile — re-compile staging area into wiki (no new extraction)
/learn --memory — compile semantic memory blocks from planning artifacts
/learn --doc-sync — process doc-sync queue into .planning/doc-sync/latest.md
Inputs
- A campaign slug, file path, evolve target, or "most recent" resolution
- Corresponding postmortem in
.planning/postmortems/(optional) .planning/telemetry/audit.jsonlfiltered to this campaign (optional)- For
--from-evolve:.planning/evolve/{target}/pattern-library.md
Protocol
Step 1: RESOLVE TARGET
If /learn (no argument):
- Glob
.planning/campaigns/completed/*.mdor.planning/campaigns/*.mdwhereStatus: completed - Sort by modification time descending, take most recent
- If none found: "No completed campaigns found. Run /learn after a campaign completes." Stop.
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.
- 1mo ago Changed · +2 lines 8f59eff8ad2d
- 2mo ago Changed · +7 lines af082539b534
- 2mo ago Changed · +2 lines 52ee8d8f43f8
- 3mo ago First seen · 308 lines · 66 tokens per session scan A 63c13d5e3fc5
learn is a skill published in the GitHub repository SethGammon/Citadel (943 stars, last pushed 5d ago), licensed MIT. It adds 66 tokens to every session and 3,220 once invoked, about $0.0003 per session on Opus 5.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.
learn compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| learnSethGammon/Citadel | Skill | 943 | 5d ago | MIT | A | 66 | Claude Code |
| zapier-demozapier/zapier-mcp | Skill | 460 | 20d ago | MIT | A | 121 | Claude Code |
| eli5Kanevry/session-orchestrator | Skill | 53 | 6d ago | MIT | A | 66 | Claude Code, Codex |
| explainramboz/jig | Skill | 6 | 5d ago | MIT | A | 173 | Claude Code |
| economicsjxpeng98/qiongli | Skill | 28 | 4d ago | MIT | A | 12 | Claude Code, Codex |
| book-to-skillOutlineDriven/odin-claude-plugin | Skill | 40 | 2mo ago | Apache-2.0 | A | 64 | Claude Code, Codex |
| drillOutlineDriven/odin-claude-plugin | Skill | 40 | 2mo ago | Apache-2.0 | A | 67 | Claude Code, Codex |