# blader/napkin architecture

> Architecture diagram of the GitHub repository blader/napkin, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/blader/napkin
- Repository: https://github.com/blader/napkin

## Overview

Napkin is a Claude Code skill for carrying learned project context across sessions. At session start, the agent reads the repository’s `.claude/napkin.md`, creating it if needed; during work, it records mistakes, corrections, preferences, surprises, and successful approaches. The README documents this workflow and the skill’s activation, but no source excerpts were provided, so the graph does not infer implementation details beyond those statements.

Main entry points: [`SKILL.md`](https://github.com/blader/napkin/blob/main/SKILL.md) (Napkin skill)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_agent(("Claude Code agent"))
node_skill["Napkin skill<br/>[SKILL.md]"]
node_napkin["Project napkin"]
node_user(("User"))

node_skill -->|"guides"| node_agent
node_agent -->|"reads or creates"| node_napkin
node_agent -->|"records learnings"| node_napkin
node_user -->|"corrects"| node_agent

click node_skill "https://github.com/blader/napkin/blob/main/SKILL.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_agent,node_napkin toneIndigo
class node_skill toneTeal
class node_user toneBlue
```

## Components

### Other components

- **Claude Code agent**
- [Napkin skill](https://github.com/blader/napkin/blob/main/SKILL.md): `SKILL.md`
- **Project napkin**
- **User**

## Connections

- Napkin skill → Claude Code agent: guides (evidence: `README.md`)
- Claude Code agent → Project napkin: reads or creates (evidence: `README.md`)
- Claude Code agent → Project napkin: records learnings (evidence: `README.md`)
- User → Claude Code agent: corrects (evidence: `README.md`)
