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
1002 B
1002 B
Why
Manual setup for new changes leads to formatting mistakes in spec deltas and slows agents who must recreate the same file skeletons for every proposal. A built-in scaffold command will generate compliant templates so assistants can focus on the change content instead of structure.
What Changes
- Add an
openspec scaffold <change-id>CLI command that creates a change directory (if it does not already exist) with validatedproposal.md,tasks.md, and spec delta templates. - Update CLI documentation and quick-reference guidance so agents discover the scaffold workflow before drafting files manually, including reminders on when to create spec deltas.
- Add automated coverage (unit/integ tests) to ensure the command respects naming rules, copies templates correctly, fails for existing directories, and produces output that passes
openspec validate --strictuntouched.
Impact
- Affected specs:
specs/cli-scaffold - Affected code:
src/cli/index.ts,src/commands,docs/