generate_usecase_specification
Generates a detailed use case specification in Vietnamese format with main, alternative, and exception flows, rendered as a markdown table with Actor/System columns. Optionally saves to a .md file.
Instructions
Generate a detailed use case specification (đặc tả use case) in Vietnamese format. Produces a structured document with use case name, actors, pre/post conditions, main flow, alternative flows, and exception flows — rendered as a markdown table with Actor/System columns. Optionally saves to a .md file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trigger | No | Điều kiện kích hoạt use case | |
| mainFlow | Yes | Luồng sự kiện chính (happy case) | |
| priority | No | Mức độ ưu tiên (e.g., "Must Have", "Should Have") | |
| useCaseId | No | Mã định danh use case (e.g., "UC-01") | |
| outputPath | No | Đường dẫn file để lưu (optional) | |
| description | Yes | Mô tả sơ lược về use case | |
| useCaseName | Yes | Tên use case (e.g., "Đăng ký học phần") | |
| outputFormat | No | Định dạng output | markdown |
| primaryActor | Yes | Actor chính | |
| businessRules | No | Các quy tắc business (nếu có) | |
| preConditions | Yes | Danh sách tiền điều kiện | |
| exceptionFlows | No | Các luồng sự kiện ngoại lệ | |
| postConditions | Yes | Danh sách hậu điều kiện | |
| secondaryActor | No | Actor phụ (nếu có) | |
| alternativeFlows | No | Các luồng sự kiện thay thế | |
| nonFunctionalRequirements | No | Yêu cầu phi chức năng (nếu có) |