Agent skill
napkin
Maintain a per-repo napkin as a continuously curated runbook (not a session log). Activates EVERY session. Read and curate it before work, keep only recurring high-value guidance, organize by priority-sorted categories, and cap each category at top 10 items..
Install this agent skill to your Project
npx add-skill https://github.com/l-lin/dotfiles/tree/main/home-manager/modules/share/ai/.config/ai/skills/napkin
SKILL.md
Napkin
You maintain a per-repo markdown runbook, not a chronological log. The napkin must be continuously curated for fast reuse in future sessions.
This skill is always active. Every session. No trigger required.
Session Start: Read And Curate
First thing, every session — read .sandbox/napkin.md before doing anything else. Internalize what's there and apply it silently. Don't announce that you read it. Just apply what you know.
Every time you read it, curate it immediately:
- Re-prioritize items by importance (highest first).
- Merge duplicates and remove stale/low-signal notes.
- Keep only recurring, high-frequency guidance.
- Ensure each item contains an explicit "Do instead" action.
- Enforce category caps (top 10 per category).
If no napkin exists yet, create one at .sandbox/napkin.md:
# Napkin Runbook
## Curation Rules
- Re-prioritize on every read.
- Keep recurring, high-value notes only.
- Max 10 items per category.
- Each item includes date + "Do instead".
## Execution & Validation (Highest Priority)
1. **[YYYY-MM-DD] Short rule**
Do instead: concrete repeatable action.
## Shell & Command Reliability
1. **[YYYY-MM-DD] Short rule**
Do instead: concrete repeatable action.
## Domain Behavior Guardrails
1. **[YYYY-MM-DD] Short rule**
Do instead: concrete repeatable action.
## User Directives
1. **[YYYY-MM-DD] Directive**
Do instead: exactly follow this preference.
Adapt categories to the repo, but keep category structure and priority ordering. Do not use raw journal-style entries.
Continuous Runbook Updates
Update during work whenever you learn something reusable.
What qualifies for inclusion:
- Frequent gotchas or surprising behavior in this repo/toolchain.
- User directives that affect repeated behavior.
- Non-obvious tactics that repeatedly work.
What does not qualify:
- One-off timeline notes.
- Verbose postmortems without reusable action.
- Pure mistake logs without "Do instead" guidance.
Entry format requirements:
- Include date added (
[YYYY-MM-DD]). - Include short rule title.
- Include explicit
Do instead:line. - Keep wording concise and action-oriented.
Category And Priority Policy
- Organize notes by category.
- Keep each category sorted by importance descending.
- Re-evaluate category choice and priority whenever editing.
- Maximum 10 items per category; if over 10, remove lowest-priority entries.
- Prefer fewer high-signal items over broad coverage.
Practical Rule
Think of napkin as a live knowledge base for future execution speed and reliability, not a history file.
Example Entry
1. **[2026-02-21] `rg` fails on giant expanded path lists**
Do instead: run `rg` on directory roots or iterate files via `while IFS= read -r`.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
datadog-pup
Use when interacting with Datadog resources using the `pup` CLI, especially for APM traces, metrics, monitors, notebooks, and synthetic tests.
tmux
Use when you need a persistent terminal environment for long-running processes, programs requiring a TTY, REPLs, debuggers, TUI apps, or concurrent terminals — while the agent continues executing other commands.
writing-skill
Use when creating new skills, editing existing skills, or verifying skills work before deployment
clarifying-intent
Use when user asks to create, build, design, add, or generate something — especially when the request is vague, underspecified, or the scope is unclear. Use before starting creative work, features, components, or any new functionality.
code-simplifier
Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Use when asked to "simplify code", "clean up code", "refactor for clarity", "improve readability", or review recently modified code for elegance. Focuses on project-specific best practices.
clear-writing
Use when writing or editing any prose humans will read — documentation, commit messages, error messages, UI text, reports, or explanations. Also use when user says "write clearly", "clear writing", or "improve writing".
Didn't find tool you were looking for?