napkin

napkin is a skill for Claude Code from mnzralee/claude-multi-agent-architecture. It costs 137 tokens per session (1,564 once invoked), scanned A, original, MIT.

A mistake log kept at the repository root, with each entry recording what went wrong and how to prevent it. The log is read before coding and updated when a change causes a failure or correction.

In plain words
What is it for?
It helps review relevant past mistakes before editing code and record new prevention rules after failed tests, reviews, user corrections, or failed commands.
Why use it?
It makes lessons from earlier sessions durable instead of leaving them buried in chat history. This helps avoid repeating wrong paths, flags, API assumptions, and similar errors.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions CLAUDE.md.

Part of the claude-multi-agent-architecture plugin — 23 skills, 19 agents, 4 hooks shipped together

Good fit It helps review relevant past mistakes before editing code and record new prevention rules after failed tests, reviews, user corrections, or failed commands.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mnzralee/claude-multi-agent-architecture/napkin
Install

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.

Any agent
npx skills add mnzralee/claude-multi-agent-architecture --skill napkin
Clone the repo
git clone --depth 1 https://github.com/mnzralee/claude-multi-agent-architecture

Made for: Claude Code.

Or install claude-multi-agent-architecture, the plugin that ships this one along with the rest of its 23 skills, 19 agents, 4 hooks.

Wrote 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.

agentmods badge for napkin

README.md
[![agentmods](https://agentmods.dev/badge/skills/mnzralee/claude-multi-agent-architecture/napkin/github.svg)](https://agentmods.dev/skills/mnzralee/claude-multi-agent-architecture/napkin)
Your own site
<a href="https://agentmods.dev/skills/mnzralee/claude-multi-agent-architecture/napkin"><img src="https://agentmods.dev/badge/skills/mnzralee/claude-multi-agent-architecture/napkin/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.

agentmods 80×15 button for napkin

Your own site · 80×15
<a href="https://agentmods.dev/skills/mnzralee/claude-multi-agent-architecture/napkin"><img src="https://agentmods.dev/badge/skills/mnzralee/claude-multi-agent-architecture/napkin.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 137 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,564 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00137 $0.01564
Opus 5.5 $0.00055 $0.00626
Sonnet 5.5 $0.00027 $0.00313
Haiku 4.5 $0.00014 $0.00156

Measured 5d ago against content hash 0797d5e5771c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

napkin 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 5d 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.

.claude/skills/napkin/SKILL.md · 86 lines

How it starts

The opening of the file, as written. The whole thing — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Napkin: the error learning loop

You are an engineer who keeps a napkin in their pocket, writes down every mistake the moment it happens, and reads the napkin before starting anything new. You are not embarrassed by mistakes. You are embarrassed by repeating one.

Input: $ARGUMENTS

The problem this fixes

Claude makes the same mistake in session 9 that it made, and was corrected for, in session 2: the wrong import path, a test-runner flag that does not exist, the API that returns cents rather than dollars. The correction lived in a chat that is gone. Napkin turns each correction into a durable, greppable rule that is checked before the next attempt.

Rules

  1. Read before code. Before writing or editing code, grep mistakes.log for the files, modules, libraries and kinds of change you are about to touch. Name the matching entries in one line before the code. No match means say nothing.
  2. Log at the moment of error, not at the end. Append an entry as soon as one of these happens: a test or build fails because of your change; the user corrects you; a review (human or agent) finds a defect you introduced; a command fails because you assumed a path, flag, name or config. Fix first if it is quick, then log, in the same turn.
  3. Root cause, not symptom. "Test failed" is a symptom. "Assumed amount was dollars; the API returns integer cents" is a cause. If you cannot name the cause, debugging is not finished.
  4. Every entry ends in a rule. The rule is an instruction a future session can follow without any context: imperative, specific, checkable. "Be careful with money" is not a rule. "Convert API amounts with toMoney(); never divide by 100 inline" is.
  5. One line per entry, append-only. Never edit or delete a past entry. If a rule turns out wrong, append a new entry that supersedes it (supersedes M-007).
  6. Promote on the third strike. When the same rule is hit three times, propose promoting it to the project's permanent rules (the gotchas section of CLAUDE.md, or a .claude/rules/ file) and mark the entry promoted. The log is the inbox; the rules are the law.
  7. Codebase facts only. Log mistakes about this project's code, tools and conventions. Preferences about how the user likes to work belong in Claude's own memory, not here. Never log secrets or personal data.

Read the full file on GitHub · 86 lines

Changes

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.

  1. 5d ago First seen · 86 lines · 137 tokens per session scan A 0797d5e5771c

Subscribe to this mod's changes

napkin is a skill published in the GitHub repository mnzralee/claude-multi-agent-architecture (9 stars, last pushed 5d ago), licensed MIT. It adds 137 tokens to every session and 1,564 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-29.

Related

napkin compared with skills from other repositories

napkin next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
napkinmnzralee/claude-multi-agent-architectureSkill95d agoMITA137Claude Code
coordinate-recoverhogancv/coordinate-agentsSkill1076d agoMITA43Claude Code, Codex
compact-s0fuk/OpenACCPSkill21mo agoMITA120Claude Code
threat-intel-triageahmadvh/octochainsSkill3841mo agononeA30Claude Code, Codex
senior-review0fuk/OpenACCPSkill21mo agoMITA178Claude Code, Codex
vibe-debugging-journalmracal/vibe-engineeringSkill31mo agoMITA33Claude Code
browserwing-adminMemTensor/MemOSSkill13ktodayApache-2.0B47Claude Code, Codex