一键导入
ba-process
[Agentic] Process Modeling - BPMN and As-Is/To-Be analysis (SKILL-16)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
[Agentic] Process Modeling - BPMN and As-Is/To-Be analysis (SKILL-16)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | ba-process |
| description | [Agentic] Process Modeling - BPMN and As-Is/To-Be analysis (SKILL-16) |
| version | 1.0.0 |
If input is unclear, incomplete, or out-of-scope:
When NOT to use:
When activated via @ba-process, perform the following cognitive loop:
Generate the MermaidJS/BPMN code.
STOP & THINK. Challenge the geometry.
Present the Diagram + Waste Analysis Report.
Don't stop here. Recommend the next step:
@ba-writing to draft User Stories for each Process Box."@ba-metrics to measure the Cycle Time of this flow."@ba-test-gen to generate state transition test cases from the process."| Rationalization | Reality |
|---|---|
| "The process is obvious, everyone knows it" | Obvious processes contain 60% of undocumented workarounds. Map it to surface what people actually do, not what the manual says. |
| "I'll draw To-Be directly, skip As-Is" | Without As-Is baseline metrics, you cannot prove improvement. Cycle time needs before/after numbers. |
| "Swimlanes make the diagram too complex" | Swimlanes are where handoff failures live. Skip them = miss the root cause of every delay. |
| "We don't need exception paths, just the happy path" | Exception paths are where 80% of production incidents originate. Happy path is easy; exceptions are the actual risk. |
| "I'll add gateway conditions later" | A gateway without both paths is a diagram bug. Add them now or the model is wrong. |
After completing this skill's process, confirm:
write_to_file: To save the Mermaid .mmd file.Purpose: Shows dependencies between business functions BEFORE diving into process details.
Purpose: Cross-functional analysis of business processes — who does what across departments.
When a use case has forks, joins, or parallel flows that text can't express clearly:
## Process: [Tên Process]
Version: [x.x] | Owner: [Role] | Last Updated: [Date]
### As-Is Process (Current State)
[ASCII BPMN hoặc Mermaid diagram]
Swimlanes: [Nhân viên] | [Team Lead] | [HR] | [Hệ thống]
[Actor A] ──► [Step 1] ──► <Gateway: OK?> ──Yes──► [Step 2] ──► [End]
│No
▼
[Rework Step] ──► <back to Step 1>
### Process Metrics (As-Is)
| Metric | Value | Note |
|-----------------|---------------|-------------------------|
| Cycle Time | X ngày | từ trigger đến complete |
| Handoffs | N lần | cross-role transfers |
| Manual Steps | M / Total | % automation hiện tại |
| Wait Time | Y giờ avg | thời gian chờ approval |
| Rework Rate | Z% | % cases cần làm lại |
### To-Be Process (Future State)
[ASCII BPMN hoặc Mermaid diagram — chỉ hiển thị thay đổi]
### Improvement Summary
| Pain Point | Root Cause | To-Be Solution | Expected Gain |
|---------------------|-------------------|-------------------------|---------------------|
| [Pain point 1] | [Cause] | [Solution] | [Metric improvement]|
Context: EAMS — Quy trình điều chỉnh công (Attendance Correction) As-Is vs To-Be.
### As-Is: Điều chỉnh công thủ công (Manual Paper Process)
[Nhân viên] ──► Viết phiếu ──► Nộp HR ──────────────────────────────────────┐
│
[HR] ◄── Nhận phiếu ◄──────── <Kiểm tra: hợp lệ?> ──No──► Trả lại │
│ │
▼ Yes │
[Team Lead] ──► Ký duyệt thủ công ──────────────────────────────────────────┤
│ │
▼ │
[HR] ──► Nhập tay vào Excel ──► Lưu file ──► Cuối tháng gửi payroll │
│
◄── Nhân viên không biết status ◄────────────────────┘
Process Metrics (As-Is):
| Metric | Value | Note |
|--------------|--------------|-------------------------------|
| Cycle Time | 3–5 ngày | phụ thuộc Team Lead có mặt |
| Handoffs | 4 lần | NV→HR→TL→HR→Payroll |
| Manual Steps | 6/6 (0%) | toàn bộ thủ công |
| Wait Time | ~48h avg | chờ Team Lead ký |
| Rework Rate | ~25% | phiếu thiếu thông tin |
---
### To-Be: Điều chỉnh công số hóa (EAMS Module 04 + Camera AI)
[Nhân viên] ──► Submit form trên app ──► <Camera AI verify?> ──Yes──► Auto-submit
│No (anomaly)
▼
Add note bắt buộc ──► Submit với flag
[Hệ thống] ──► Gửi notification ──► [Team Lead] review online ──► Approve/Reject
│Approve
▼
[Hệ thống] ──► Auto-update attendance record ──► Notify NV ──► Ready for payroll
Process Metrics (To-Be):
| Metric | As-Is | To-Be | Improvement |
|--------------|----------|----------|-------------|
| Cycle Time | 3–5 ngày | 4–8h | -80% |
| Handoffs | 4 lần | 2 lần | -50% |
| Manual Steps | 6/6 | 1/5 | 80% automated|
| Wait Time | ~48h | ~2h | -95% |
| Rework Rate | ~25% | ~5% | -80% |
Before drafting, search for relevant knowledge:
run_command: python3 .agent/scripts/ba_search.py "<topic keywords>" --domain processpython3 .agent/scripts/ba_search.py "<query>" --multi-domain.agent/templates/data-dictionary-template.md — Data Dictionary & GlossaryActivation Phrase: "Process Architect online. Show me the whiteboard or describe the flow."
[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)