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 yarlson/yarstack --skill lesson-recordgit clone --depth 1 https://github.com/yarlson/yarstackWrote 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/yarlson/yarstack/lesson-record)<a href="https://agentmods.dev/skills/yarlson/yarstack/lesson-record"><img src="https://agentmods.dev/badge/skills/yarlson/yarstack/lesson-record/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/yarlson/yarstack/lesson-record"><img src="https://agentmods.dev/badge/skills/yarlson/yarstack/lesson-record.svg" alt="Reviewed on agentmods" width="80" 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.00115 | $0.01434 |
| Opus 5.5 | $0.00046 | $0.00574 |
| Sonnet 5.5 | $0.00023 | $0.00287 |
| Haiku 4.5 | $0.00012 | $0.00143 |
Grade A, and why
lesson-record 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 3d 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 — 124 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Record a Yarbrain Lesson
Turn what this session learned into a small lesson that a future agent can apply without this conversation. You propose; an independent gate agent decides. You never judge your own lesson.
Before anything
Run yarbrain status. Act on the result:
- Command not found: run this plugin's launcher by its path. It is
bin/yarbraintwo folders above this skill's folder. Use that path in place ofyarbrainin every command of this session. no_vault: ask the person once where the vault should live, then runyarbrain init <path>. Apply only the setup steps whosehostis the host you run in:claude-codeorcodex. Edit exactly the file that the step names, never a project file, and tell the person what you changed. The host may ask them to approve each edit; if they decline one, or the edit fails, tell them the step and continue.- Any other error: follow its
fixfield. Exit code 4 means retry once; the first call exits 4 after it downloads the yarbrain CLI that this plugin pins.
What qualifies
Propose a lesson only when all of these hold:
- A later session in this project, or in any project, would act differently because of it.
- This session verified it: the fix worked, or the user stated the rule.
- It is not already in the README, AGENTS.md, CLAUDE.md, or other docs. If the docs should say it, suggest that edit to the person instead.
- It is not task status, a one-off value, or a personal preference about how agents should behave. Preferences belong in the person's agent instructions.
Propose at most 3 lessons per session that nobody asked for.
Propose
-
Check for an existing lesson:
yarbrain find <2 or 3 distinctive terms>. If a served lesson already covers it, confirm that one instead (below). -
Write the lesson and pass it on stdin. On Windows, write it to a temporary file and pass
--input <file>.yarbrain propose <<'EOF' --- cue: 'make seed fails with "relation users does not exist"' scope: here --- # Run migrations before seeding the test database Run `make migrate` before `make seed`. The seed script assumes the schema and reports a missing table instead of missing migrations. ## Observed `make seed` failed with the error above; after `make migrate`, it passed. EOF
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.
- 3d ago First seen · 124 lines · 115 tokens per session scan A 904d5fdd6144
lesson-record is a skill published in the GitHub repository yarlson/yarstack (3 stars, last pushed yesterday), licensed MIT. It adds 115 tokens to every session and 1,434 once invoked, about $0.0005 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-11-04.
lesson-record compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| lesson-recordyarlson/yarstack | Skill | 3 | yesterday | MIT | A | 115 | Claude Code |
| performance-auditgreglas75/zuvo | Skill | 7 | 3d ago | MIT | A | 90 | Claude Code |
| esp32-expertjohnkozaris/jko-claude-plugins | Skill | 11 | yesterday | MIT | A | 137 | Claude Code |
| capturedavesheffer/hunch | Skill | 15 | yesterday | none | A | 21 | Claude Code |
| healdavesheffer/hunch | Skill | 15 | yesterday | none | A | 21 | Claude Code |
| fixdavesheffer/hunch | Skill | 15 | yesterday | none | A | 17 | Claude Code |
| whydavesheffer/hunch | Skill | 15 | yesterday | none | A | 18 | Claude Code |