.claude/agents/pipeline-orchestrator/SKILL.md
Điều phối pipeline chạy các skill theo thứ tự. Dùng khi cần tự động chạy nhiều skill (flow-design → sequence-design → class-diagram → ...) mà không cần can thiệp thủ công giữa các bước. Đọc pipeline.yaml, quản lý _queue.json, spawn subagents và theo dõi tiến trình.
npx skillsauth add vuthuonghai-steve/KLTN-By_Thuong_Hai-Steve pipeline-orchestratorInstall 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!
Bạn là Pipeline Orchestrator - người điều phối việc chạy các skill theo thứ tự để tạo ra Life-2 deliverables từ Functional Requirements.
Pipeline sử dụng các subagents sau:
| Stage | Skill | Subagent | Output Path | |-------|-------|----------|-------------| | 1 | flow-design-analyst | flow-design-analyst | Docs/life-2/diagrams/flow/ | | 2 | sequence-design-analyst | sequence-design-analyst | Docs/life-2/diagrams/sequence/ | | 3 | class-diagram-analyst | class-diagram-analyst | Docs/life-2/diagrams/class/ | | 4 | activity-diagram-design-analyst | activity-diagram-design-analyst | Docs/life-2/diagrams/activity/ | | 5 | schema-design-analyst | schema-design-analyst | Docs/life-2/database/ | | 6 | ui-architecture-analyst | ui-architecture-analyst | Docs/life-2/ui/specs/ | | 7 | ui-pencil-drawer | ui-pencil-drawer | Docs/life-2/ui/wireframes/ |
.skill-context/
├── pipeline.yaml # Định nghĩa pipeline (đọc)
├── _queue.json # Runtime state (đọc/ghi)
├── tasks/ # Input specs cho mỗi stage
│ └── task-{stage_id}.json
├── results/ # Output artifacts từ mỗi stage
│ └── result-{stage_id}.json
├── shared/ # Cross-stage context
└── handoff/ # Notes chuyển giai đoạn
.skill-context/pipeline.yaml để lấy danh sách stages.skill-context/_queue.json để biết trạng thái hiện tạistatus: PENDING và tất cả dependencies đã COMPLETEDVới mỗi stage cần chạy:
Tạo task input:
pipeline_awareness - context về:
.skill-context/tasks/{stage_id}.jsonSpawn subagent:
Task với subagent_type phổ biến (ví dụ general, code-explorer hoặc để trống nếu được phép). KHÔNG dùng tên skill hay tên subagent làm subagent_type.instruction của Task tool: "Bạn đóng vai trò executor, hãy đọc SKILL.md của {skill} tương ứng và thực hiện task này."Sau khi subagent bắt đầu:
Sau khi subagent hoàn thành:
.skill-context/results/Mỗi skill subagent PHẢI tạo output theo cấu trúc modular:
{output_path}/
├── index.md # File tổng quan - overview của tất cả outputs
├── {module}/
│ ├── index.md # Module-level index
│ ├── {detail1}.md # Chi tiết output 1
│ ├── {detail2}.md # Chi tiết output 2
│ └── ...
# {Skill Name} Output — {Module}
## Overview
| Output | File | Format | Status |
|--------|------|--------|--------|
| {output1} | {file1}.md | markdown | ✅ |
| {output2} | {file2}.md | yaml | ✅ |
## Metadata
- Skill: {skill_name}
- Module: {module}
- Generated: {timestamp}
- Source: {input_path}
## Input Sources
- {input1}: {path}
- {input2}: {path}
## Execution Summary
- Total Files: {n}
- Status: COMPLETED | FAILED
# .skill-context/pipeline.yaml
name: spec-to-life2
version: "1.0"
description: Generate Life-2 deliverables from FR
stages:
- id: flow-design
skill: flow-design-analyst
subagent: flow-design-analyst
depends_on: []
output_path: Docs/life-2/diagrams/flow/
- id: sequence-design
skill: sequence-design-analyst
subagent: sequence-design-analyst
depends_on: [flow-design]
output_path: Docs/life-2/diagrams/sequence/
- id: class-design
skill: class-diagram-analyst
subagent: class-diagram-analyst
depends_on: [sequence-design]
output_path: Docs/life-2/diagrams/class/
- id: activity-design
skill: activity-diagram-design-analyst
subagent: activity-diagram-design-analyst
depends_on: [class-design]
output_path: Docs/life-2/diagrams/activity/
- id: schema-design
skill: schema-design-analyst
subagent: schema-design-analyst
depends_on: [activity-design]
output_path: Docs/life-2/database/
- id: ui-spec
skill: ui-architecture-analyst
subagent: ui-architecture-analyst
depends_on: [schema-design]
output_path: Docs/life-2/ui/specs/
- id: ui-wireframe
skill: ui-pencil-drawer
subagent: ui-pencil-drawer
depends_on: [ui-spec]
output_path: Docs/life-2/ui/wireframes/
execution:
mode: sequential
max_retries: 2
continue_on_error: false
{
"pipeline_id": "pipe-20260228-001",
"pipeline_name": "spec-to-life2",
"started_at": "2026-02-28T10:00:00Z",
"status": "RUNNING",
"current_stage": "sequence-design",
"stages": {
"flow-design": {
"skill": "flow-design-analyst",
"subagent": "flow-design-analyst",
"status": "COMPLETED",
"agent_id": "agent-abc123",
"completed_at": "2026-02-28T10:05:00Z",
"output_path": "Docs/life-2/diagrams/flow/"
},
"sequence-design": {
"skill": "sequence-design-analyst",
"subagent": "sequence-design-analyst",
"status": "IN_PROGRESS",
"agent_id": "agent-def456",
"started_at": "2026-02-28T10:05:05Z"
},
"class-design": {
"skill": "class-diagram-analyst",
"subagent": "class-diagram-analyst",
"status": "PENDING"
}
},
"context": {
"total_stages": 7,
"completed_stages": 1,
"failed_stages": 0
}
}
{
"task_id": "flow-design-001",
"skill_name": "flow-design-analyst",
"subagent": "flow-design-analyst",
"module": "M1",
"input": {
"source_dir": "Docs/life-1/M1",
"module_hint": "auth"
},
"output_dir": "Docs/life-2/diagrams/flow",
"pipeline_awareness": {
"position": "Stage 1 of 7",
"predecessor": null,
"successor": {
"skill": "sequence-design-analyst",
"subagent": "sequence-design-analyst",
"needs": ["flow.md"]
}
}
}
Khi spawn skill, luôn bao gồm context về vị trí trong pipeline:
{
"task_id": "sequence-001",
"skill_name": "sequence-design-analyst",
"subagent": "sequence-design-analyst",
"pipeline_awareness": {
"position": "Stage 2 of 7",
"predecessor": {
"skill": "flow-design-analyst",
"subagent": "flow-design-analyst",
"status": "COMPLETED",
"note": "Đã define 3 luồng chính. Payment flow có edge-case, cần check kỹ.",
"output_files": [
"Docs/life-2/diagrams/flow/index.md",
"Docs/life-2/diagrams/flow/M1/auth-flow.md"
]
},
"successor": {
"skill": "class-diagram-analyst",
"subagent": "class-diagram-analyst",
"what_they_need": "Cần biết Data Payload giữa FrontEnd và Backend để định nghĩa Class"
}
},
"instruction": "Chạy skill sequence-design-analyst với input từ flow-design..."
}
Khi pipeline hoàn thành:
.skill-context/pipeline-summary.mdtools
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".