ワンクリックで
activity-diagram
สร้าง PlantUML Activity Diagram (Swimlane) แสดง workflow ของแต่ละ module — ครอบคลุม SystemFlow และ UserFlow
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
สร้าง PlantUML Activity Diagram (Swimlane) แสดง workflow ของแต่ละ module — ครอบคลุม SystemFlow และ UserFlow
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Pre/Post execution validation + Phase Gate enforcement — ป้องกันการข้าม step, auto-validate output, ให้คะแนน quality score
สแกน code ใน Scaffold/ ด้วย 53 security rules (6 หมวด) — secrets, permissions, injection, AI-specific, config, dependencies — ก่อน deploy หรือหลัง Dev report
Coordinate PM/Dev/QA agents แบบ Pipeline Pattern — auto-route งานตาม role, ส่งต่ออัตโนมัติเมื่อ status เปลี่ยน, track progress ทุก handoff
Create color-coded teaching scripts / presenter talking-point documents (.md) that serve as a "live reading book" for speakers. The output is a markdown file where each color tells the presenter what to do: blue = speak this line, red = pronunciation guide, dark blue = slide header, black = stage direction & audience engagement, yellow box = terminology. Use this skill whenever the user mentions: teaching script, talking points, presenter script, key talking point, speaker notes, lecture script, training script, presentation script, สคริปต์การสอน, สคริปต์วิทยากร, คำพูดที่ต้องอ่าน, หนังสือสำหรับพูด, or any request to create a document that guides a speaker through a slide deck with exact words to say, pronunciation help, and stage directions. Also trigger when the user uploads a PowerPoint (.pptx) and asks to write a script, narration, or talking points for it.
Use for QA evidence, release readiness, rollback review, and close-out decisions.
Use for build completion evidence, code review readiness, and ready-for-QA checks.
| name | Activity Diagram |
| description | สร้าง PlantUML Activity Diagram (Swimlane) แสดง workflow ของแต่ละ module — ครอบคลุม SystemFlow และ UserFlow |
Related Skills:
- Always load
pmo-lark-plantumlwhen writing .puml files- Load
references/case-analysis.mdfor detailed case examples- Load
references/case-checklist.mdfor the 20-item checklist- Load
references/mom-validation.mdfor MOM Validation Workflow
Every diagram must use Swimlane syntax separating lanes by actor/system:
|#BackgroundColor|Actor Name|
Must ask user every time before creating a diagram:
Never assume actors without asking (unless user specifies them all in the request).
| Type | Color | Hex Code | Example Actor |
|---|---|---|---|
| Backend / API / Scheduler | Cream yellow | #FFF9E0 | Backend API, Cron Job |
| Admin / Back-office User | Light blue | #E8F0FE | Admin, Admin (Finance) |
| Frontend / UI | Light green | #EDF7E8 | Frontend App, Customer App |
| External / 3rd Party | Light purple | #F3E5F5 | Payment Gateway, SMS Provider |
| Customer / End User | Light pink | #FCE4EC | Customer, User |
Additional colors for extra actors:
| Color | Hex Code |
|---|---|
| Light gray | #ECEFF1 |
| Light teal | #E0F7FA |
| Light orange | #FFF3E0 |
Format: Module XX-X: Workflow Name [Ref: MOM#X - Topic]
title Module 05-A: Order Approval Workflow [Ref: MOM#2 - Approval Process]
Every step must have a sequential number prefix, continuous across lanes:
:1. First action;
:2. Second action;
:3. Third action\nAdditional detail\nSecond line;
note right with Bold Headernote right
**Bold Header:**
- Detail 1
- Detail 2
- **Actions:**
-> Button/Action
end note
' --- Section Name ---
Declare lane every time actor changes:
|#FFF9E0|Backend API|
:1. Backend work;
|#E8F0FE|Admin|
:2. Admin work;
|#EDF7E8|Frontend App|
:3. Display screen;
AI ต้องประเมินขนาด flow ก่อนเริ่มเขียน — ถ้าเกิน threshold ต้องแบ่งอัตโนมัติ โดย user ไม่ต้องบอก
| เงื่อนไข | Threshold |
|---|---|
| จำนวน Activity | > 20 activities ใน flow เดียว |
| จำนวน Swimlane | > 4 lanes |
| Nested Decision | > 2 ระดับซ้อนกัน (if ใน if ใน if) |
| Sub-process ชัดเจน | มี process ที่แยกเป็นกลุ่มงานได้ (เช่น Payment, Notification, Approval) |
@startuml and @endumlBOF-SysF-07-A_WithdrawRequest.puml, BOF-SysF-07-B_WithdrawApproval.pumlทุก sub-flow ต้องมี connector note ที่จุดเริ่มและจุดจบ:
' --- จุดเริ่ม (ถ้าต่อจาก flow อื่น) ---
note right
**→ ต่อจาก:** Module XX-A Step 15
**Context:** User ส่งคำขอแล้ว รอ Admin อนุมัติ
end note
' --- จุดจบ (ถ้ามี flow ต่อ) ---
note right
**→ ต่อที่:** Module XX-C Step 1
end note
ใส่ที่ flow แรก (Module XX-A) ใต้ title:
note right
**Module XX ประกอบด้วย:**
- **XX-A:** ยื่นคำขอ (Step 1-15)
- **XX-B:** อนุมัติ/ปฏิเสธ (Step 16-28)
- **XX-C:** แจ้งผล + บันทึก (Step 29-38)
end note
@startuml
title Module XX-A: Workflow Name [Ref: MOM#X - Topic]
|#FFF9E0|Backend API (Scheduler)|
start
:1. Check pending items;
note right
**Trigger Condition:**
Condition details
AND Status = "Pending"
end note
:2. Update Status = "Ready";
:3. Send Notification:\nNotify Customer;
:4. Send Notification:\nNotify Admin;
|#E8F0FE|Admin|
:5. Enter management page;
:6. Filter: Status = "Ready";
|#EDF7E8|Frontend App|
:7. Display list;
note right
**Table Columns:**
- Column 1
- Column 2
- Column 3
- **Actions:**
-> Action button
end note
|#E8F0FE|Admin|
:8. Click "Process" button;
|#EDF7E8|Frontend App|
:9. Show Confirmation Modal;
note right
**Details:**
- Data 1
- Data 2
**Admin must fill:**
- Field 1
- Field 2
end note
|#E8F0FE|Admin|
:10. Fill data;
:11. Confirm;
|#FFF9E0|Backend API|
:12. Execute:\n- Action 1\n- Action 2;
:13. Create Record;
:14. Update Status;
:15. Send Notification:\nNotify Customer;
:16. Log Activity;
|#EDF7E8|Frontend App|
:17. Display "Success";
stop
@enduml
| System Flow | User Flow | |
|---|---|---|
| For | Dev Team, Tech Lead | Client, PM, Stakeholder |
| Actors | All: Admin, Backend API, Scheduler, 3rd Party, Customer | Users only: Customer, Admin + "System" (combined Backend/Scheduler/3rd Party) |
| Detail | Error handling, Audit log, API call, Retry logic, technical terms | Actions user sees + results + important logic/conditions affecting next flow |
| Save to | SystemFlow/ | UserFlow/ |
| File naming | {Platform}-SysF-{XX}_{Name}.puml | {Platform}-UseF-{XX}_{Name}.puml |
| Created when | Steps 1-4 of Workflow | Step 5 - Derived from Final System Flow |
| Must Include | Don't Include |
|---|---|
| Decision points affecting next action | API call / endpoint details |
| Business logic client must know | Audit log / Logging details |
| Results of each choice affecting next flow steps | Server-side retry/error handling |
| Notifications user receives | Internal system notifications |
| Messages/status user sees on screen | Database operation details |
Use business language, not technical jargon:
Backend API validates... -> System verifies data...POST /api/orders -> System creates orderCron job triggers -> System runs automatically| Type | Format | Example |
|---|---|---|
| System Flow | {Platform}-SysF-{XX}_{Name}.puml | BOF-SysF-01_AdminLogin.puml |
BOF-SysF-07-A_WithdrawApproval.puml | ||
| User Flow | {Platform}-UseF-{XX}_{Name}.puml | BOF-UseF-01_AdminLogin.puml |
| Combined | {Platform}-SysF-ALL_Combined.puml | BOF-SysF-ALL_Combined.puml |
| Traceability | REQ_Traceability_Matrix.md | In SystemFlow/ |
Platform prefix:
| Prefix | Meaning |
|---|---|
BOF | Back Office |
CSA | Customer App (CS App) |
| (others per project) |
UseCase/ folder remains separate - Use Case Diagram is a different diagram type from User Flow.