.claude/agents/activity-diagram-design-analyst/SKILL.md
Senior Solutions Architect chuyên về Activity Diagram (High-Fidelity) theo tư duy Clean Architecture (B-U-E). Kích hoạt khi cần tạo activity diagram từ class diagram hoặc chạy pipeline UML stage 4. Đầu ra: Docs/life-2/diagrams/activity/{module}-activity.md
npx skillsauth add vuthuonghai-steve/KLTN-By_Thuong_Hai-Steve activity-diagram-design-analystInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
🚨 MỆNH LỆNH BẮT BUỘC TỪ HỆ THỐNG (CRITICAL DIRECTIVE): Bạn CHỈ MỚI ĐỌC file
SKILL.mdnày. Trí tuệ của bạn chưa được nạp đầy đủ. Hệ thống KHÔNG tự động nạp các file kiến thức khác trong thư mục. Bạn BẮT BUỘC PHẢI sử dụng toolReadhoặcGlobhoặcBash(ls) để QUÉT VÀ ĐỌC TRỰC TIẾP nội dung các file trong các thư mụcknowledge/,templates/,scripts/hoặcloop/của bạn TRƯỚC KHI bắt đầu làm bất cứ nhiệm vụ nào. Tuyệt đối không được đoán ngữ cảnh hoặc tự bịa ra kiến thức nếu chưa tự mình gọi tool đọc file!
[class-diagram-analyst-agent] → [activity-diagram-design-analyst-agent] → [schema-design-analyst-agent]
↓ ↓
Docs/life-2/diagrams/class/ Docs/life-2/diagrams/activity/
| Loại | Path | Bắt buộc | Mô tả |
|------|------|----------|-------|
| file | Docs/life-2/diagrams/flow/{module}-flow.md | ✅ Có | Flow diagram |
| file | Docs/life-2/diagrams/class/{module}/class-{module}.md | ❌ | Class reference |
| Loại | Path | Format |
|------|------|--------|
| index | Docs/life-2/diagrams/activity/index.md | markdown |
| detail | Docs/life-2/diagrams/activity/{module}/index.md | markdown |
| detail | Docs/life-2/diagrams/activity/{module}/{scenario}-activity.md | markdown |
Docs/life-2/diagrams/activity/
├── index.md # File tổng quan
└── {module}/
├── index.md # Module index
├── {scenario1}-activity.md # Chi tiết từng scenario
├── {scenario2}-activity.md
└── ...
# Activity Diagrams — {Module}
## Overview
| Scenario | File | Swimlanes | Status |
|----------|------|-----------|--------|
| Registration | registration-activity.md | User/System/DB | ✅ |
## Metadata
- Module: {module}
- Total Scenarios: {n}
- Clean Architecture: B-U-E
# {Scenario} Activity — {Module}
## Mode
- **Mode A (Design V1)**: Từ văn bản/yêu cầu
- **Mode B (Refactor)**: Thẩm định sơ đồ hiện tại
## Swimlanes (Clean Architecture)
- Actor / User
- Application / UseCase
- Domain / Entity
- External / Infrastructure
## Activity Diagram
```mermaid
stateDiagram-v2
[*] --> Initial
Initial --> Validate: Input
Validate --> Error: Invalid
Validate --> Process: Valid
Process --> Success
| ID | Severity | Issue | Recommendation | |----|----------|-------|----------------| | A-01 | Major | Implicit AND at step 3 | Add explicit fork |
## Execution Workflow
### Phase 1: Collect Context & Mode Detection
1. Load `.claude/skills/activity-diagram-design-analyst/SKILL.md`
2. Load knowledge: `activity-uml-rules.md`, `clean-architecture-lens.md`
3. Detect Mode:
- **Mode A**: Thiết kế từ văn bản
- **Mode B**: Refactor/Audit sơ đồ hiện tại
### Phase 2: Analyze Business Logic
1. Trích xuất Basic, Alternative, Exception flows
2. Apply Lens Clean Architecture (B-U-E)
3. Phản biện rủi ro với refactor-risk-patterns.md
### Phase 3: High-Fidelity Design
1. Generate Mermaid stateDiagram-v2
2. Đúng ký hiệu: Fork/Join vs Decision/Merge
3. Lập Findings Report
### Phase 4: Guidance & Validation
1. Self-verify với loop/checklist.md
2. Giải thích Clean Architecture benefits
3. Ghi kết quả
tools
Automates end-to-end drawing of UI screens in Pencil canvas from module spec files. Reads spec file → generates wireframe blueprint → draws each screen using Pencil MCP tools. Triggers when user provides a UI spec path and asks to draw, generate, or auto-build screens for Steve Void modules M1–M6 in STi.pen.
testing
Extracts UI Screen Specs by analyzing Schema and Diagrams. Use when you need to bridge database logic and flow diagrams into intermediate UI component specifications for a given module. Trigger when user says "analyze UI for module X", "generate ui spec", "phân tích UI module", or invokes "ui-architecture-analyst --module M[X]".
development
Giải thích lỗi TypeScript một cách dễ hiểu bằng tiếng Việt. Sử dụng khi gặp lỗi type, generic, inference, hoặc bất kỳ lỗi TS nào cần được giải thích rõ ràng.
development
Skill phan tach yeu cau/tinh nang thanh cac phase, task va subtask cu the. Tao bo tai lieu planning clean, khong chua code mau, tap trung mo ta logic va nghiep vu. Su dung khi: (1) nhan yeu cau tinh nang moi can lap ke hoach, (2) co tai lieu nghien cuu can chuyen thanh task plan, (3) nguoi dung yeu cau phan tach cong viec, (4) can tao roadmap trien khai cho du an/tinh nang. Trigger: /task-planner, /plan-tasks, "phan tach task", "lap ke hoach", "tao plan", "chia phase".