api-derivation
Mechanically map completed feature files to an OpenAPI 3.0 specification.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Mechanically map completed feature files to an OpenAPI 3.0 specification.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Clarify raw user ideas through Event Storming concepts, producing a structured ES markdown as input for the formulation stage.
Orchestrate the formulation stage — manage knowledge map, route between concerns, and coordinate incremental updates to produce feature files, API spec, and entity model.
Coordinate requirement changes (add/modify/delete) across all spec artifacts by analyzing impact and delegating to existing prompts.
Identify features (Commands / Queries) from user ideas and clarify behavioral rules using Spec by Example with the 4-Rules-Pattern. Produces complete Gherkin feature files.
Extract and consolidate entities, fields, types, constraints, and relationships from completed feature files and API spec into a formal DBML data model.
| name | api-derivation |
| description | Mechanically map completed feature files to an OpenAPI 3.0 specification. |
| args | {"FEATURE_SPECS_DIR":"${SPECS_ROOT_DIR}/features","API_SPECS_DIR":"${SPECS_ROOT_DIR}"} |
| input | ${FEATURE_SPECS_DIR}/*.feature |
| output | ${API_SPECS_DIR}/api.yml |
api.yml 草稿。${API_SPECS_DIR}/api.yml。POST /carts/items)。{string}、{int}、{float}、{bool}用戶 "Alice" 將商品 1 加入購物車,數量 2 → Summary: 用戶 {string} 將商品 {int} 加入購物車,數量 {int}200:從「後置(狀態)」Rule 的 Then 子句推導。400:每個「前置(參數)」Rule 對應一個錯誤項。403:每個「前置(狀態)」Rule 對應一個錯誤項。GET /carts/{userId})。200:從「後置(回應)」Rule 的 Then datatable 欄位推導 schema。403:每個「前置(狀態)」Rule 對應一個錯誤項。404:若查詢的特定資源可能不存在。標準 OpenAPI 3.0 YAML。每個 endpoint 包含:
summary(參數化的 When 語句)operationIdrequestBody 或 parametersresponses 及 schema 定義API 規格中的每個元素必須可追溯至 Feature File 的 Rule。不添加任何現有產出物中不存在的 endpoint 或屬性。
當所有 endpoint 皆經確認,輸出完整的 ${API_SPECS_DIR}/api.yml。