Install
$ agentstack add skill-nweii-agent-stuff-code-to-pantry ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
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.
Then identify:
- The core technique: what is the conceptual pattern, independent of the surrounding application?
- App-specific shell: what parts are wired to this specific app's state, routing, styling system, or data model?
- The stack: what language/framework is this? (React/TSX, plain JS/TS, CSS, Python, etc.)
Step 2: Design the abstraction — discuss before writing
Propose an abstraction plan and get Nathan's approval before writing any files. Cover:
- Name: a short, lowercase, hyphenated identifier for the technique (this becomes the filename)
- What gets extracted: the essential mechanism, described in one sentence
- What gets dropped: app-specific assumptions, hardcoded values that don't generalize, framework boilerplate that isn't part of the technique
- Props / API surface: what parameters make sense to expose? What should be hardcoded defaults?
- ABOUTME line: a single sentence describing what the file does — this becomes the registry description. It must be generic; it cannot reference the source project.
- Dependencies: list any non-trivial imports the extracted code will need
If the source code is deeply entangled with app-specific concerns, surface that tension explicitly. Sometimes the right call is to extract a narrower slice of the technique rather than trying to abstract everything at once.
Wait for approval before proceeding.
Step 3: Write the pantry entry
Finding the pantry repo
Try these in order until one works:
- Check if a local clone exists by searching common developer paths (
~/Developer,~/code,~/projects, etc.) for a directory namedpantrywith aregistry.json - Use
gh repo clone nweii/pantryto clone it to a temporary location - Use any available GitHub MCP/plugin tools to write files directly to the repo
Once you have local access, write to src/. where `` matches the stack.
File conventions (all stacks)
- First line:
// ABOUTME:(use#for Python) - The ABOUTME description must be generic — no references to the source project, app name, or context
- No inline comments that reference the source project or why the code was originally written
- Usage examples in comments must use placeholder/generic names (`
,`, etc.)
React/TSX conventions
- Named exports only (no default exports)
- Props interface above the component
- All props optional with sensible defaults
- No dependencies beyond
react(peer dep) - Use
useId()(React 18+) for any internally-generated IDs
Non-React conventions
Match the idioms of the target language. For plain TypeScript/JavaScript utilities: export named functions. For CSS: export as a standalone file with a usage comment at the top. For other languages/frameworks, use the standard module export pattern for that ecosystem.
Pantry-specific: the pre-commit hook
The pantry uses a pre-commit hook (scripts/sync.js) that auto-generates registry.json and src/index.ts. Do not edit those files manually — just commit and the hook handles them.
Step 4: Commit and push
From the pantry repo directory:
git add src/.
git commit -m "add "
git push
The pre-commit hook will stage registry.json and src/index.ts automatically as part of the commit.
Confirm to Nathan that the component is live and available via:
bunx github:nweii/pantry add
Common pitfalls
- Over-abstracting: don't try to make something configurable that will always be the same. The right amount of parameterization is what the technique actually needs.
- Under-abstracting: don't leave in hardcoded values that only make sense in the source app's context.
- Naming for the use case: if you find yourself naming it after what the source app does with it, step back and name it for what the technique is.
- Leaking source context: scan all comments, JSDoc, and example code for any reference to the source project before writing.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: nweii
- Source: nweii/agent-stuff
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.