generate_spec
Convert User Story docs into {hu-name}-SPEC.md files in workspace/specs/ and return the path for development.
Instructions
Converts a User Story document into a SPEC_KIT formatted .md file named {hu-name}-SPEC.md and saves it to workspace/specs/. Returns the file path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hu_name | No | Name of the HU/US used for the file name (e.g. 'HU-016-whatsapp'). If omitted, it is extracted from the document content. | |
| file_path | No | Absolute path to a .docx, .pdf, .md or .txt file containing the User Story. Use this OR user_story_text, not both. | |
| spec_number | No | 3-digit spec number (e.g. '007'). If omitted, the next available number is used. | |
| feature_slug | No | Short slug for the feature folder name (e.g. 'pagos-online'). If omitted, it is inferred from the content. | |
| user_story_text | Yes | Plain text content of the User Story document. Use this OR file_path. |