ID:WORK-029Status:done
plan init and plan create Commands
Priority:mediumComplexity:simpleSource:SPEC-022
Summary
Scaffolding commands that create plan directories and template files. init sets up the full plan structure in a new project. create scaffolds individual plan items from templates. Neither command needs the scanner — they only write files.
Acceptance Criteria
plan initcreatesplan/work/,plan/spec/,plan/decision/directoriesplan initgenerates example files (work item, decision, spec) and starterindex.mdplan initappends workflow section to CLAUDE.md (or creates one) includingnext/update/statuscommandsplan create work --id WORK-XXX --title "..."scaffolds a work item from templateplan createsupports all 5 types: work, bug, decision, spec, milestone- Templates include all required sections per
plan/CLAUDE.mdstructure - Tests for directory creation, file generation, and template rendering
Approach
Templates live in runes/plan/src/templates/ as string constants (not separate files). Each template is a function that accepts attributes and returns a Markdoc string. init calls create internally for its example files.
Dependencies
- CLI Plugin Discovery Architecture (plugin architecture — so commands can be registered)
References
- Plan CLI (Plan CLI)
plan/CLAUDE.md(required content structure)
Relationships
Depends on
Dependency of
History
- f262d7bsource+SPEC-022
- bae844cstatusready→done
- ☑ `plan init` creates `plan/work/`, `plan/spec/`, `plan/decision/` directories
- ☑ `plan init` generates example files (work item, decision, spec) and starter `index.md`
- ☑ `plan init` appends workflow section to CLAUDE.md (or creates one) including `next`/`update`/`status` commands
- +4 more criteria
- ebe0c64Content edited
- 30b2ae0Created (ready, medium, simple, cli, plan)