| name | doey-scaffy-new |
| description | Create a new scaffy template from existing files (--from-files) or interactively. Outputs to .doey/scaffy/templates/<name>.scaffy. |
- Templates dir: !
ls .doey/scaffy/templates/ 2>/dev/null || echo "(none — will be created)"
Create a new .scaffy template, either as an empty stub, from a set of existing files, or by walking an interactive prompt.
Usage
doey-scaffy new <name> [flags]
Flags
--from-files FILE... — seed the template with CREATE blocks for each file (variables inferred from repeated identifiers in the files' contents)
--domain <name> — set the template's DOMAIN field (e.g. web, cli, infra)
--interactive — walk a guided prompt for description, domain, and tags
--force — overwrite an existing template with the same name
--output <path> — destination .scaffy path (default: .doey/scaffy/templates/<name>.scaffy)
Examples
doey-scaffy new handler
doey-scaffy new handler --from-files src/handler.go src/handler_test.go --domain web
doey-scaffy new handler --interactive
Notes
- Output path:
.doey/scaffy/templates/<name>.scaffy
- Refuses to overwrite without
--force
- Run
/doey-scaffy-validate --strict after creating to catch missing fields
- Pair with
/doey-scaffy-discover to find candidate file sets first