Documentation
Agent skills
Walnut ships project agent skills so Cursor, Claude Code, and other IDEs can
build apps from a walnut new tree without extra setup.
One-minute path
walnut new HelloApp
cd HelloApp
# Open this folder in Cursor or Claude Code — skills are already under:
# .cursor/skills/ and .claude/skills/
walnut skills list
Existing apps created before this layout:
cd MyApp
walnut skills install # copy skills + write AGENTS.md if missing
# optional: rm -rf .agent-skills # legacy path; no longer used
What gets installed
| Path | Role |
|---|---|
AGENTS.md | Always-on brief for agents that read project instructions |
.cursor/rules/walnut.mdc | Cursor always-apply reminder |
.cursor/skills/<name>/SKILL.md | Cursor project skills |
.claude/skills/<name>/SKILL.md | Claude Code project skills (identical copies) |
walnut skills install overwrites skill directories (CLI-owned). It writes
AGENTS.md only if missing unless you pass --force. Use --skills-only to
skip AGENTS.md and the Cursor rule.
Catalog
| Skill | When to use |
|---|---|
| walnut-dev | Everyday check / test / simulator / device / hot reload |
| walnut-debug | Live TEA console: p model, dispatch, time travel |
| walnut-test | Host JIT walnut test suites |
| walnut-language | TEA / List / String / Attr pitfalls |
| walnut-diagnostics | Reading WN#### compiler diagnostics |
| walnut-ui | Views, floatBottom, glass, screenshot-verify UI |
| walnut-effects | Cmd / Sub / Port / host registration |
| walnut-screenshots | App Store captures under store/ |
Commands
walnut skills install [dir] [--skills-only] [--force] [--runtime PATH]
walnut skills list [dir] [--runtime PATH]
Limits
- Skills teach app workflows.
- Discovery depends on the IDE: Cursor loads
.cursor/skills/; Claude Code loads.claude/skills/; Codex-style agents typically readAGENTS.md. - Refresh after upgrading the CLI so new skills appear in older apps.
Related
- getting-started.md —
walnut new - diagnostics.md —
WN#### - screenshots.md — listing captures
- effects.md — Cmd / Sub / Port
- views.md · glass.md