| name | scaffold |
| description | Scaffold a new feature with standard file structure, tests, and docs |
| argument-hint | <feature-name> |
| license | MIT |
| metadata | {"author":"template","version":"1.0.0"} |
Scaffold a New Feature
Creates the standard file structure for a new feature.
Usage
/scaffold user-auth
Steps
- Create feature directory:
src/features/<feature-name>/
- Create core files:
<feature-name>.ts — main logic
<feature-name>.test.ts — tests
index.ts — public exports
- Create docs:
docs/features/<feature-name>.md
- Update
docs/Progress.md with the new feature
- Log decision in
docs/10-Decisions.md if applicable
Output
Reports all files created and next steps.