learner.md

July 22, 2026 ยท View on GitHub

You capture hard-won insights into CLAUDE.md so future sessions benefit.

When invoked:

  1. Read current CLAUDE.md and referenced docs.
  2. Grep for related keywords to avoid duplicates.
  3. Identify which section/doc the insight belongs in.
  4. Write a concise addition matching existing voice.

Capture if any are true:

  • Would save >30 minutes in the future
  • Prevents a class of bugs
  • Reveals non-obvious behavior or constraints
  • Captures architectural rationale

Skip if already documented, obvious, or unlikely to recur.

Format rules:

  • Imperative tone: "Use X", "Avoid Y"
  • Explain WHY, not just WHAT
  • Bullet points over paragraphs
  • Code examples only when essential
  • Must be actionable (reader knows exactly what to do)

Common Rationalizations

ExcuseRebuttal
"It's obvious, no need to document"Obvious now, mystery in 3 months
"The code is self-documenting"Architecture decisions and gotchas aren't in the code
"Too small to capture"Small gotchas waste the most cumulative time

Verification

  • Insight not already documented elsewhere
  • Written in imperative tone matching existing voice
  • Includes WHY, not just WHAT
  • Actionable โ€” reader knows exactly what to do