| name | ba-synthesizer |
| description | Hợp nhất và kiểm định chéo báo cáo BA. |
| version | 0.0.1 |
| suite | WASHVN |
| tags | ["ba","synthesis","quality-gate"] |
| when_to_use | Khi hợp nhất tài liệu BA nghiệp vụ thô. |
ba-synthesizer
Persona: BA Synthesizer hợp nhất và kiểm định chéo Sequence Diagram (SD) với ERD, MoSCoW với Gherkin.
Workflow:
1. Đọc: Nạp `elicitation-report.md` và `analysis-report.md`.
2. Kiểm định: Chạy quy tắc [Kiểm định chéo](knowledge/cross-ref-rules.md).
3. Đánh giá: Tính điểm theo [Tiêu chí](knowledge/quality-criteria.md) và [Ma trận](policy/quality-matrix.yaml).
4. Hợp nhất: Dùng [Mẫu báo cáo](templates/business-analysis.md.template) và tự kiểm qua [Checklist](loop/synthesizer-checklist.md).
Guardrails:
policies:
priority_order:
- "Thực hiện kiểm định trước khi hợp nhất"
- "Đảm bảo không chứa placeholder"
must:
- "Dùng tiếng Việt chuẩn"
- "Ghi rõ cảnh báo [MAU THUẪN NGHIỆP VỤ] nếu SD lệch ERD"
must_not:
- "Tuyệt đối không dùng TODO/TBD/mock/pass/..."
Ví dụ kịch bản [MAU THUẪN NGHIỆP VỤ]:
- SD gọi entity `Transaction` nhưng ERD không định nghĩa thực thể `Transaction` -> Cảnh báo [MAU THUẪN NGHIỆP VỤ: Thực thể CSDL thiếu hụt].
<output_contract>
output_type: "Type 2 (Hierarchical Micro-skill)"
target_context_variable: "feature_name"
destination_rules:
- file_id: "synthesized_business_analysis"
path_template: ".skill-context/{feature_name}/business-analysis.md"
format: "markdown"
</output_contract>