Raw capture โ€” raw/napkin.md


url: https://github.com/blader/napkin date_fetched: 2026-07-05 backfilled: true


A skill for Claude Code that gives the agent persistent memory of its mistakes.

The agent maintains a markdown file in your repo (.claude/napkin.md) where it tracks what went wrong, what you corrected, and what worked. It reads the file at session start and writes to it continuously as it works. By session 3-5 the behavior shift is significant โ€” the agent stops making mistakes you've already corrected and starts pre-empting issues before you catch them.

Baby continual learning in a markdown file.

Claude Code

git clone https://github.com/blader/napkin.git ~/.claude/skills/napkinCodex

git clone https://github.com/blader/napkin.git ~/.codex/skills/napkinThat's it. The skill activates every session, unconditionally.

Lives at .claude/napkin.md in each repo. One per repo. The agent designs the initial structure and adapts it to the project's domain.

You can .gitignore it or commit it โ€” your call. Committing it means other contributors' agents benefit from the same learned patterns. Ignoring it keeps it personal.

MIT