generate_spec_draft
Generate a markdown specification draft for an initiative using customizable templates (default, lite, detailed). The draft includes acceptance criteria, context, and optional risks, and is ready for mk-spec-master parsing.
Instructions
Produce a markdown spec draft for one initiative, shaped so mk-spec-master.parse_spec(raw_text=...) can ingest it verbatim. Three templates: 'default' (title / source / OKR / context / acceptance criteria / out-of-scope), 'lite' (title / context / acceptance criteria), 'detailed' (default + risks + dependencies + estimated effort). Appends a spec_generated decision to the index. Returns {markdown, suggested_filename, template_used, ready_for_mk_spec_master, next_step_hint}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| initiative_id | Yes | ||
| template | No | default |