.agent/skills/napkin/SKILL.md
Maintain a per-repo napkin file at .agent/memory/napkin.md that tracks mistakes, corrections, surprises, and what works. Always active, every session, unconditionally. Read distilled.md and napkin.md before doing anything. Write to the napkin continuously as you work. Log your own mistakes, not just user corrections.
npx skillsauth add oaknational/oak-open-curriculum-ecosystem napkinInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Maintain a per-repo markdown file that tracks mistakes, corrections, and patterns that work or don't. Read it before doing anything and update it continuously as you work.
This skill is always active. Every session. No trigger required.
First thing, every session — read both files before doing anything:
.agent/memory/distilled.md — Curated rules, patterns,
and troubleshooting. This is the high-signal reference.
Internalise and apply silently..agent/memory/napkin.md — Recent session log. Scan for
context from the most recent sessions.If neither file exists, create napkin.md at
.agent/memory/napkin.md with a session heading and start
logging. The distillation rotation in the
consolidation command
handles creating distilled.md at rotation time.
Update the napkin as you work, not just at session start and end. Write to it whenever you learn something worth recording:
Log anything that would change your behaviour if you read it next session:
Be specific. "Made an error" is useless. "Assumed the API
returns a list but it returns a paginated object with .items"
is actionable.
When something surprises you, capture it with this shape:
### Surprise
- **Expected**: what you thought would happen
- **Actual**: what actually happened
- **Why expectation failed**: what was wrong or incomplete in the mental model
- **Behaviour change**: what you should do differently next time
Use this for both negative and positive surprise. If a surprise keeps
reappearing, it is a candidate for distilled.md, a reusable pattern, a
governance update, or an ADR.
Each session gets a heading and subsections:
## Session: YYYY-MM-DD — Brief Title
### What Was Done
- (summary of work completed)
### Patterns to Remember
- (actionable insights from this session)
Add ### Mistakes Made or ### Fixes subsections as needed.
When the napkin exceeds ~500 lines, follow step 6 of the
consolidation command to
extract high-signal content into distilled.md, archive the
napkin, and start fresh.
Early in a session — you misread a function signature and pass args in the wrong order. You catch it yourself. Log it under "Patterns to Remember":
createUser(id, name) not createUser(name, id) — this
codebase does not follow conventional arg orderingMid-session — user corrects your import style. Log it:
src/ — alwaysLater — you re-read the napkin before editing another file and use absolute imports without being told. That is the loop working.
tools
When and how to use git worktrees for isolated work.
documentation
TSDoc and documentation workflow for canonical source comments, README updates, and ADR touchpoints.
development
Structured debugging workflow: reproduce, isolate, hypothesise, verify, fix, regression test.
data-ai
Load the shared thorough start-right workflow from `.agent/skills/start-right-thorough/shared/start-right-thorough.md`.