ワンクリックで
aibdd-form-entity-spec
從推理包翻譯為 DBML (.dbml)。負責 DBML 語法規章 + 歸檔。 不做跨 boundary 決策;路徑 / 切檔策略由 Planner 透過 DELEGATE 參數指定。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
從推理包翻譯為 DBML (.dbml)。負責 DBML 語法規章 + 歸檔。 不做跨 boundary 決策;路徑 / 切檔策略由 Planner 透過 DELEGATE 參數指定。
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
當要把一筆需求對齊進 plan package 時觸發,這筆需求可以是對既有規格的變更或缺陷,也可以是要落到既有或全新 plan package 的全新需求。把這筆需求追加進 spec.md 並校準 impact matrix。
跨 skill 共用資源庫,本身不會被執行,只存放供其他 skill 載入的共用資源(reference/asset/script)。
Turn a legal Red handoff for target feature files green by verifying drift, editing product code only, detecting failure oscillation, and emitting a Green handoff. TRIGGER when Green execute is requested after aibdd-red-execute. SKIP when no legal Red handoff exists or the request is test, DSL, runtime, or architecture repair.
當 reconcile 校準 impact matrix 後、本 owner 名下有 pending impact 待落成 persistent data schema 時觸發。以 `read --owner aibdd-data-plan --impact-status pending` 為 worklist,依 Discovery 真相(spec.md/feature truth)把須穩定保存的系統狀態推論成 state schema、在草稿上收斂後委派 boundary profile 宣告之 state_specifier 落地至 `${DATA_DIR}`,最後回寫 impact matrix。
Build the entity-to-table mapping (`entity_to_table_mapping.yml`) from a boundary's physical schema specs (DBML / SQL DDL), preserving existing entity names and naming new tables from the plan spec.
Create legal AIBDD red for target feature files by loading project config, mapping every Scenario step to DSL and core preset assets, rendering runtime-visible step definitions, and emitting a Red handoff. TRIGGER when Red execute is requested or delegated by implementation/debug flow. SKIP when the feature package or BDD stack config is absent.
| name | aibdd-form-entity-spec |
| description | 從推理包翻譯為 DBML (.dbml)。負責 DBML 語法規章 + 歸檔。 不做跨 boundary 決策;路徑 / 切檔策略由 Planner 透過 DELEGATE 參數指定。 |
| user-invocable | false |
Formulation skill。綁定 DSL = DBML (.dbml)。被多個 Planner DELEGATE(如 aibdd-entity-analysis 之 logical ER、aibdd-system-analysis 之 sub-boundary state schema),Planner 在 DELEGATE payload 內提供具體 target_path,本 skill 不自決。
接收推理包:
| 項目 | 內容 |
|---|---|
| M/D/C 變更集 | Entity / Attribute / Relationship / AggregateHint 的增刪改 |
| Axis 單位對應 | 推理包中每個單位的具體對應 |
| 退出狀態 | Reason 步是否完整通過 |
target_path | Planner 指定之相對於 ${DATA_DIR} 的檔案路徑(例:logical.dbml、<boundary-id>/entities/logical.dbml、<boundary-id>/sub-boundaries/<sub-id>/states/<state>.dbml;切檔策略由 Planner 決定)。不得含 <<NN-functional-module>> 借位子層 — ${DATA_DIR} 在 SSOT 已是 flat directory(見 aibdd-core::ssot/spec-package-paths.md),functional module 借位只允許出現在 ${TRUTH_BOUNDARY_PACKAGES_DIR} 子樹。 |
缺項:推理包不完整或 target_path 未指定 → 回退呼叫 Planner 補齊。
references/format-reference.md(DBML 語法)references/patterns/naming-rules.md + schema-modularization.mdtarget_path 不得含 <<NN-functional-module>> 借位子層;違反 → STOP 並回退 Planner 補正(白話文回報「target_path 違反 ${DATA_DIR} flat 規約」)。target_path 寫出(落點=${DATA_DIR} ⊕ target_path)。snake_case 複數(lesson_progresses)snake_case(user_id)<table1>.<column> - <table2>.<column>Ref: table_a.col > other_file.table_b.colNote 標記 aggregate root:Note: 'aggregate_root'以白話文 1–3 句匯報(依 aibdd-core::planner-contract.md §REPORT 匯報;不輸出 JSON / YAML):
Form Entity Spec 完成。產出 N 個 .dbml 檔案。