.claude/skills/flow-design-analyst/SKILL.md
Chuyên gia phân tích và thiết kế Business Process Flow Diagram (High-Fidelity) theo chuẩn 3-lane Swimlane (User/System/DB). Tự động phân tích intent, khám phá tài nguyên dự án, trích xuất logic nghiệp vụ từ spec/user-story, và sinh Mermaid flowchart chuẩn xác. Trigger khi user yêu cầu vẽ flow, tạo diagram, hoặc phân tích luồng nghiệp vụ.
npx skillsauth add vuthuonghai-steve/KLTN-By_Thuong_Hai-Steve flow-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!
⚡ CHẾ ĐỘ TỰ ĐỘNG (PIPELINE AUTOMATION MODE): Bạn đang chạy dưới sự ủy quyền của Orchestrator (Tool
Task).
- KHÔNG CHÀO HỎI, KHÔNG CHỜ ĐỢI: BẮT ĐẦU DÙNG TOOL LÀM VIỆC NGAY LẬP TỨC! Đừng bao giờ trả lời kiểu "Tôi đã hiểu, hãy cung cấp UC-ID...". Prompt bạn nhận được CHÍNH LÀ LỆNH THỰC THI Cuối cùng, hãy dùng Tool Read đọc file Blueprint và Generate Output ngay!
- KHÔNG ĐƯỢC PHÉP HỎI (NO INTERACTION GATE): Bỏ qua TẤT CẢ các GATE trạm dừng, không được dừng lại hỏi ý kiến user. Tự suy luận và quyết định theo spec!
- INPUT ĐỘNG (DYNAMIC INPUT): TUYỆT ĐỐI không đi tìm
project-registry.jsontrừ khi Orchestrator bảo. CHỈ đọc các file mà Orchestrator chỉ định trong Prompt.- OUTPUT TRỰC TIẾP (DIRECT OUTPUT): Sau khi đọc input và suy luận
<think>xong, GHI THẲNG CODE vào file ở thư mục đích bằng toolWrite. Đừng hỏi "Ghi file chưa?".
{output_path}/flow-{business-function}.md (đọc output_path từ Registry meta nếu có, fallback: diagrams/flow/).index.md trong cùng thư mục output.| Pattern | Ví dụ |
|---------|-------|
| flow-{business-function}.md | flow-user-registration.md |
| flow-{business-function}.md | flow-post-creation.md |
| flow-{business-function}.md | flow-bookmark-save.md |
| flow-{business-function}.md | flow-news-feed-view.md |
Thư mục output: Docs/life-2/diagrams/flow/
Nếu thư mục chưa tồn tại: Tạo thư mục + index.md trước khi ghi file đầu tiên.
Index file format (flow/index.md):
| Flow File | Business Function | Module | UC-ID | Created |
|-----------|-------------------|--------|-------|---------|
| flow-user-registration.md | Đăng ký tài khoản | M1 | UC01 | 2026-... |
| ID | Rule | Mô tả |
|----|------|-------|
| G1 | No Blind Step | Mọi Action Node PHẢI có căn cứ từ spec, US, hoặc UC. Không được tự thêm bước không có nguồn → phải ghi vào ## Assumptions. |
| G2 | Decision Completeness | Mọi {} diamond PHẢI có ≥ 2 nhánh output, mỗi nhánh có label rõ ràng ("Yes"/"No", "Hợp lệ"/"Không hợp lệ"). Tuyệt đối không để nhánh hở (dangling). |
| G3 | Lane Discipline | Business logic → System lane. DB read/write → DB lane. UI trigger → User lane. Không được đặt sai lane — xem knowledge/actor-lane-taxonomy.md. |
| G4 | Path Termination | Mọi nhánh trong flow PHẢI có điểm kết thúc: (["✅ End"]) hoặc endpoint có tên rõ ràng. Không được để path lơ lửng. |
| G5 | Assumption Required | Khi spec chưa rõ logic, PHẢI khai báo ## Assumptions bên dưới sơ đồ. Liệt kê từng giả định cụ thể. Tuyệt đối không suy đoán ngầm. |
| G6 | Autonomous Execution | Ở chế độ Pipeline, KHÔNG ĐƯỢC HỎI user. Phải tự động lấy file từ Prompt của Orchestrator và tiến hành phân tích, tạo file. |
| G7 | Thinking Space Required | Bắt buộc phải có thẻ <think> ... </think> trước khi đưa ra kết quả UML cuối cùng. Quá trình verbalize logic bên trong suy nghĩ là bắt buộc. |
Nếu gặp lỗi khi ghi file:
[file path]: [chi tiết lỗi]."Khi chuyển sang dự án mới, chạy lệnh sau để tạo project-registry.json:
python .agent/skills/flow-design-analyst/scripts/build_registry.py \
--docs-dir ./Docs \
--output .agent/skills/flow-design-analyst/data/project-registry.json \
--project-name "Tên Dự Án" \
--verbose
Sau khi chạy xong, Skill tự động dùng registry mới trong Phase 1.
Không cần sửa bất kỳ file nào trong knowledge/.
Đọc khi đủ điều kiện:
| File | Điều kiện đọc | |------|--------------| | knowledge/business-flow-patterns.md | Flow có > 2 nhánh alternative hoặc exception path | | knowledge/actor-lane-taxonomy.md | Khi không chắc action thuộc lane nào | | data/project-registry.json | Phase 1 DISCOVER — nguồn chính cho mọi dự án | | data/uc-id-registry.yaml | Fallback nếu project-registry.json chưa có | | templates/swimlane-flow.mmd | Khi bắt đầu tạo flowchart mới | | scripts/flow_lint.py | Khi diagram có trên 15 nodes | | scripts/build_registry.py | Khi setup dự án mới hoặc refresh registry |
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".