mirror of
https://github.com/Fission-AI/OpenSpec.git
synced 2026-09-14 20:16:53 +08:00
c54079a0cd
* clarify scaffold proposal * Update scaffold command proposal to support idempotent execution
1.0 KiB
1.0 KiB
1. CLI scaffolding command
- 1.1 Register an
openspec scaffoldcommand in the CLI entrypoint withchange-idargument validation. - 1.2 Implement generator logic that copies the default change template bundle (
proposal.md,tasks.md, optionaldesign.md,specs/README.md) intoopenspec/changes/<id>/, creating the directory tree in a single pass. - 1.3 Detect when
openspec/changes/<id>/already exists and exit with a clear error instead of overwriting user files.
2. Templates and documentation
- 2.1 Update
openspec/AGENTS.mdquick reference so agents seeopenspec scaffoldbefore drafting files manually. - 2.2 Refresh CLI docs/README/help text to mention the scaffold workflow, template bundle contents, and when to add spec deltas manually.
3. Test coverage
- 3.1 Add unit tests covering name validation, template copying, and existing-directory failures.
- 3.2 Add integration coverage ensuring a freshly scaffolded change (without deltas) passes
openspec validate --strictuntil the author customizes it.