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 agentmods add commands/saigonxiii/evc/lesson-capturegit clone --depth 1 https://github.com/SaigonXIII/evcWrote 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/commands/saigonxiii/evc/lesson-capture)<a href="https://agentmods.dev/commands/saigonxiii/evc/lesson-capture"><img src="https://agentmods.dev/badge/commands/saigonxiii/evc/lesson-capture.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 | $0.00000 | $0.01271 |
| Opus 5 | $0.00000 | $0.00635 |
| Sonnet 5 | $0.00000 | $0.00254 |
| Haiku 4.5 | $0.00000 | $0.00127 |
Grade A, and why
lesson-capture 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 4d 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 — 179 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Lesson Capture
Record structured lessons after significant tasks. Builds a persistent knowledge base that improves future agent performance. Run with an optional summary or use review to read past lessons.
Trigger
User invokes /lesson-capture [SUMMARY] or says "capture lesson", "what did we learn", "record this"
Examples:
/lesson-capture Fixed the content pipeline to handle missing images gracefully
/lesson-capture The blog QA caught 3 canon violations — updated banned phrases
/lesson-capture review
Input: A brief summary of what happened, or review to read recent lessons.
Output: A formatted lesson entry appended to the monthly lessons file, or a pattern analysis of recent lessons.
When to Capture
Record a lesson after:
- Multi-phase tasks — pipelines, proposals, audits (what phase was hardest? what would you skip?)
- Debugging sessions — root cause analysis (what was the actual problem vs what you initially suspected?)
- User corrections — any time the user said "no, not that" or "actually, do it this way" (what assumption was wrong?)
- Non-obvious discoveries — workarounds, undocumented behaviors, surprising file locations
- Failed approaches — something you tried that did not work (save others from the same mistake)
- Validated approaches — something non-obvious that worked well (reinforce the pattern)
Do not capture: routine tasks, trivial fixes, or lessons already documented in existing commands.
Auto-Lesson on QA Failure
When /lesson-capture is invoked after a QA failure (content-qa, blog-qa, or any validation step that returned failures), automatically detect and capture the failure pattern:
Detection
Check the current session for recent QA results by looking for:
- Files matching
{{CONTENT_OUTPUT_DIR}}/**/qa-report*.md - Recent conversation mentions of "FAIL", "violation", "rejected", "not compliant"
- Output from
/content-qaor/blog-qawithin this session
Auto-Capture Format
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.
- 4d ago First seen · 179 lines · 0 tokens per session scan A 6af2e6caa6e1
lesson-capture is a command published in the GitHub repository SaigonXIII/evc (56 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,271 tokens. 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 commands, from other repositories
review-tool
Research a tool or product for skill-gap, architecture, and verb-fit per the Anatomy framework.
setup
First-run setup — replace the fictional company and authors with yours.
review-content
Review content for brand alignment, lead placement, bio consistency, and proof points.
voice-check
Check a draft against the author's voice profile and flag deviations.
content-status
Scan all content directories and report status of drafts, ideas, and published content.
draft-blog
Scaffold a blog post with proper structure, voice, and frontmatter.