Context
UC-6 (Runbooks) needs an init template so users can kiwifs init --template runbook to scaffold a runbook workspace. See UC-6 wiki page for full context.
What to implement
-
Create .kiwi/templates/runbook/ directory under internal/workspace/templates/ with:
SCHEMA.md defining the runbook structure and frontmatter conventions
.kiwi/schemas/runbook.json validating required fields (trigger, severity, owner, services)
index.md — table of contents
example-high-cpu.md — example runbook following the 7-section format:
- Trigger / when to use
- Diagnosis (commands in fenced code blocks with expected output)
- Mitigation steps (ordered, idempotent)
- Verification (concrete success criteria)
- Rollback
- RTO and data loss expectations
- Escalation path
-
Register the template in cmd/init.go so kiwifs init --template runbook works.
Relevant code
internal/workspace/templates/knowledge/ — existing template to follow as pattern
internal/workspace/templates/wiki/ — another template example
cmd/init.go — template registration
Acceptance criteria
Difficulty: Beginner · Area: Markdown + Go
Context
UC-6 (Runbooks) needs an init template so users can
kiwifs init --template runbookto scaffold a runbook workspace. See UC-6 wiki page for full context.What to implement
Create
.kiwi/templates/runbook/directory underinternal/workspace/templates/with:SCHEMA.mddefining the runbook structure and frontmatter conventions.kiwi/schemas/runbook.jsonvalidating required fields (trigger,severity,owner,services)index.md— table of contentsexample-high-cpu.md— example runbook following the 7-section format:Register the template in
cmd/init.gosokiwifs init --template runbookworks.Relevant code
internal/workspace/templates/knowledge/— existing template to follow as patterninternal/workspace/templates/wiki/— another template examplecmd/init.go— template registrationAcceptance criteria
kiwifs init --template runbookcreates the scaffoldkiwifs checkpasses on the generated scaffoldDifficulty: Beginner · Area: Markdown + Go