stacksdapp new or initialized with stacksdapp init includes a bundled agent skill. AI assistants can follow Scaffold Stacks conventions without extra setup.
Contents
What gets installed
Cursor
Cursor auto-discovers.cursor/skills/scaffold-stacks/SKILL.md. No configuration is required.
When working in a scaffolded project, the agent knows to:
- Edit only
contracts/contracts/*.clarand frontend components (not generated files) - Run
stacksdapp check→generate→testafter contract changes - Prefer testnet for deploy verification
- Use
stacksdapp add --template sip010|sip009instead of hand-written tokens
Other agents
For Claude Code, Codex, or other tools, point the agent at:AGENTS.mdin the project root.cursor/skills/scaffold-stacks/SKILL.mdfor full guidance
Refreshing the skill
Runstacksdapp upgrade to refresh the bundled skill files alongside npm dependencies and generated bindings. This is non-destructive to your contracts and frontend code.
Security hooks
Scaffolded projects include a git pre-commit hook at.githooks/pre-commit that blocks likely seed phrases in contracts/settings/Testnet.toml and Mainnet.toml.
After cloning a repo, enable hooks:
stacksdapp doctor --strict warns if hooks are not configured.