ワンクリックで
ba-data
[Agentic] Data Architecture - ERD, Data Dictionary, DFD, data mapping, migration planning, analytics requirements
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
[Agentic] Data Architecture - ERD, Data Dictionary, DFD, data mapping, migration planning, analytics requirements
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
[Meta] How to use BA-Kit effectively. Use when starting with BA-Kit, unsure which agent to invoke, or when an AI agent needs to map user intent to the right skill.
[Agentic] Agile BA Practices - User Story Mapping, MVP Definition, Hypothesis-Driven Development
[Agentic] Business Rules Management - decision tables, decision trees, rule catalog, conflict detection
[Agentic] Change Management - ADKAR, readiness assessment, training needs, go-live planning, benefits realization
[Agentic] Communication & Reporting - audience-adapted messaging, status reports, executive summaries
[Agentic] Conflict Resolution & Negotiation - resolve stakeholder disagreements (SKILL-06)
| name | ba-data |
| description | [Agentic] Data Architecture - ERD, Data Dictionary, DFD, data mapping, migration planning, analytics requirements |
| version | 1.0.0 |
If input is unclear, incomplete, or out-of-scope:
When NOT to use:
When activated via @ba-data, perform the following cognitive loop:
| Need | Artifact | Audience |
|---|---|---|
| What entities exist and how they relate? | ERD (Conceptual/Logical) | BA, Stakeholders, Dev |
| What fields exist, types, rules? | Data Dictionary | Dev, QA, DBA |
| How does data flow between systems? | DFD (Level 0-2) | Architects, BA |
| Where does each field come from/go? | Data Mapping (Source→Target) | ETL Dev, Migration Team |
| What makes data "good"? | Data Quality Rules | QA, Data Team |
| What data moves when we migrate? | Migration Plan | PM, DBA, Dev |
| What dashboards/reports are needed? | Analytics Requirements | BI, Product, Stakeholders |
Generate the selected data artifact using structured templates (see Output Format).
ERD Notation Convention:
[Entity] 1---* [Entity] One-to-Many
[Entity] *---* [Entity] Many-to-Many (junction table needed)
[Entity] 1---1 [Entity] One-to-One
[Entity] 0..1-* [Entity] Optional One-to-Many
STOP & THINK. Challenge your data model:
Present the validated data artifact with clear notation.
@ba-writing to create User Stories referencing this data model."@ba-nfr to define data-related NFRs (latency, volume, retention)."@ba-consistency to verify data model aligns with API spec and US."@ba-business-rules to document rules governing data transformations."@ba-validation to review the data dictionary for completeness."| Rationalization | Reality |
|---|---|
| "Dev will add constraints" | Dev adds what works. Business constraints (uniqueness, value ranges, FK cascade rules) come from you and must be explicit. |
| "Data dictionary is documentation overhead" | It's specification. Without it, two devs build different validation rules for the same field. |
| "Audit fields slow performance" | Adding created_at/updated_by costs microseconds. Missing them = no audit trail = compliance failure. |
| "Schema is obvious from the use cases" | Obvious schemas lack normalization. Normalization requires explicit design decisions that must be documented. |
After completing this skill's process, confirm:
erDiagram
EMPLOYEE ||--o{ ATTENDANCE : "records"
EMPLOYEE {
int employee_id PK
string full_name
string employee_code UK
int department_id FK
enum status "active|inactive|suspended"
datetime created_at
}
ATTENDANCE {
int attendance_id PK
int employee_id FK
datetime check_in
datetime check_out
enum method "camera_ai|manual|qr_code"
enum status "valid|pending|rejected"
}
# Data Dictionary: [Module/Entity Name]
Version: [X.Y] | Last Updated: [DD/MM/YYYY] | Author: [Name]
## Entity: [Entity Name]
Description: [Mô tả ngắn entity này đại diện cho gì trong business]
| # | Field | Type | Size | Required | Default | Constraint | Description |
|---|-------|------|------|----------|---------|-----------|-------------|
| 1 | employee_id | INT | — | Yes | Auto | PK, AUTO_INCREMENT | Mã NV tự tăng |
| 2 | full_name | VARCHAR | 100 | Yes | — | NOT NULL | Họ tên đầy đủ |
| 3 | status | ENUM | — | Yes | 'active' | IN ('active','inactive','suspended') | Trạng thái NV |
## Business Rules
- BR-01: [Field X] phải tuân thủ [quy tắc nghiệp vụ]
- BR-02: Khi [condition], [field] tự động cập nhật thành [value]
## Indexes
| Index Name | Fields | Type | Rationale |
|-----------|--------|------|-----------|
| idx_emp_code | employee_code | UNIQUE | Tìm kiếm theo mã NV |
# Data Mapping: [Source System] → [Target System]
Purpose: [Migration / Integration / Sync]
| # | Source Field | Source Type | Target Field | Target Type | Transform | Rule |
|---|-------------|-----------|-------------|-----------|-----------|------|
| 1 | emp_no | CHAR(10) | employee_code | VARCHAR(20) | TRIM + UPPER | 1:1 |
| 2 | dept_name | VARCHAR | department_id | INT | Lookup dept table | FK resolve |
| 3 | — | — | created_at | DATETIME | — | Set NOW() |
## Data Quality Checks (Post-Migration)
- [ ] Row count: Source [N] = Target [N]
- [ ] Null check: Required fields have 0 NULLs
- [ ] Referential integrity: All FKs resolve
- [ ] Business rule: [specific validation]
Tình huống: ERD cho module Chấm Công EAMS.
erDiagram
EMPLOYEE ||--o{ ATTENDANCE_RECORD : "has"
EMPLOYEE ||--o{ OT_REQUEST : "submits"
EMPLOYEE }o--|| DEPARTMENT : "belongs to"
DEPARTMENT }o--|| SITE : "located at"
ATTENDANCE_RECORD ||--o{ ATTENDANCE_ADJUSTMENT : "may have"
OT_REQUEST ||--o| APPROVAL : "requires"
SITE {
int site_id PK
string site_name
string address
string timezone
}
EMPLOYEE {
int employee_id PK
string employee_code UK
string full_name
int department_id FK
enum role "employee|team_lead|hr_manager|admin"
}
ATTENDANCE_RECORD {
int record_id PK
int employee_id FK
date work_date
datetime check_in
datetime check_out
enum method "camera_ai|manual|qr_code"
enum status "valid|pending_review|rejected"
decimal work_hours "computed"
}
Before drafting, search for relevant knowledge:
run_command: python3 .agent/scripts/ba_search.py "<topic keywords>" --domain modelingrun_command: python3 .agent/scripts/ba_search.py "<topic keywords>" --domain data-analyticspython3 .agent/scripts/ba_search.py "<query>" --multi-domainActivation Phrase: "Data Architect online. Describe the entities and data landscape."