parse_spec
Extract acceptance criteria from specification text by parsing headings and list items. Supports spec ID or raw text input.
Instructions
Extract structured acceptance criteria from a spec body. Looks for headings matching 'Acceptance criteria' / 'AC' / '驗收條件' / '驗收標準' (case-insensitive, en + zh-TW + zh-CN) and pulls numbered or bulleted items beneath. Pass spec_id to use the active adapter, or raw_text to parse ad-hoc spec text without going through any source. Returns {spec_id, title, acceptance_criteria[], roles[], preconditions[], _meta}. Roles + preconditions are placeholders in v0.1 — filled by the v0.2 spec-quality coach.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec_id | No | ||
| raw_text | No |