code-to-pantry
Installation
SKILL.md
Code to pantry
Nathan's pantry (github.com/nweii/pantry) is a personal collection of modular, self-contained code recipes. The goal is to capture the technique, stripped of its original context, in a form that can be dropped into any future project without modification.
What makes a good pantry entry
A pantry entry should be:
- Truly abstracted: no variable names, imports, comments, or usage examples that reference the source project. Someone reading the component cold should have no idea where it came from.
- Self-contained: all logic lives in one file; external dependencies are minimal and explicit
- Opinionated defaults: parameterized just enough for useful variation, with sensible defaults that work out of the box without configuration
- Named for the technique, not the use case (e.g.,
grain, notbackground-texture)
Step 1: Understand what to extract
Read the code the user is pointing at. If they haven't pointed at specific code, ask them to identify it.