.claude/agents/skill-executor/SKILL.md
Executes a single stage skill with isolated context. Invoked by pipeline-runner when running pipeline stages. Use when pipeline-runner delegates a skill task.
npx skillsauth add vuthuonghai-steve/KLTN-By_Thuong_Hai-Steve skill-executorInstall 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!
Before executing ANY skill, the executor MUST perform pre-flight knowledge loading:
Use Glob tool to list all subdirectories in the skill path:
knowledge/ # Standards and best practices
loop/ # Quality control checklists
scripts/ # Automation tools
templates/ # Output templates
data/ # Reference data
Combine into full execution context:
SKILL.md + knowledge/* + loop/* + templates/* → Full Context
| Rule | Action | |------|--------| | Must scan knowledge/ before execution | Use Glob to verify directory exists | | Must read at least 1 knowledge file | If none exist → warning, proceed anyway | | Must check for loop/checklist.md | Load if exists for verification steps | | Knowledge files exist but not read | → GUARDRAIL VIOLATION |
Execute a single skill stage from pipeline with isolated context. Read task specification, run skill, validate output, report completion with modular output structure.
Pipeline runner provides:
task_id: Unique task identifierskill_name: Name of skill to executeskill_path: Path to SKILL.mdinput: Input data dictionary (file paths or directory)output_dir: Base output directoryvalidation: Validation criteriaSkill executor PHẢI tạo output theo cấu trúc modular:
{output_dir}/
├── 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
| Pipeline Stage | Skill Name | Subagent | Output Path | |----------------|------------|----------|-------------| | 1 | flow-design-analyst | flow-design-analyst-agent | Docs/life-2/diagrams/flow/ | | 2 | sequence-design-analyst | sequence-design-analyst-agent | Docs/life-2/diagrams/sequence/ | | 3 | class-diagram-analyst | class-diagram-analyst-agent | Docs/life-2/diagrams/class/ | | 4 | activity-diagram-design-analyst | activity-diagram-design-analyst-agent | Docs/life-2/diagrams/activity/ | | 5 | schema-design-analyst | schema-design-analyst-agent | Docs/life-2/database/ | | 6 | ui-architecture-analyst | ui-architecture-analyst-agent | Docs/life-2/ui/specs/ | | 7 | ui-pencil-drawer | ui-pencil-drawer-agent | Docs/life-2/ui/wireframes/ |
Read task specification from .skill-context/{pipeline}/tasks/task-{stage_id}.json
{
"task_id": "stage_01",
"skill_name": "flow-design-analyst",
"pipeline_context": {
"pipeline_id": "pipe-001",
"pipeline_name": "uml-generation",
"current_stage_index": 0,
"total_stages": 7,
"predecessors": [],
"global_context": {}
},
"input": {
"module": "M1",
"source_dir": "Docs/life-1/M1"
},
"output_dir": "Docs/life-2/diagrams/flow"
}
⚠️ THIS STEP IS MANDATORY - DO NOT SKIP
Run all phases of the skill as defined in SKILL.md:
For UML Skills:
For Meta Skills:
For UI Skills:
Always create index.md + detail files:
# Create module directory
mkdir -p {output_dir}/{module}
# Create index.md
echo "# {Skill} Output — {module}" > {output_dir}/index.md
echo "| File | Format |" >> {output_dir}/index.md
echo "|------|--------|" >> {output_dir}/index.md
echo "| {file}.md | markdown |" >> {output_dir}/index.md
If validation_script specified:
Return completion signal:
execution_result:
task_id: {task_id}
skill: {skill_name}
status: COMPLETED | FAILED
output_paths:
- {output_dir}/index.md
- {output_dir}/{module}/{detail}.md
validation: PASS | FAIL
error: null | {error_message}
After successful completion, spawn the next subagent in pipeline:
Task tool → invoke {next_subagent}
Input: {output_dir}/{module}/
Pipeline Order:
flow-design-analyst-agent
↓
sequence-design-analyst-agent
↓
class-diagram-analyst-agent
↓
activity-diagram-design-analyst-agent
↓
schema-design-analyst-agent
↓
ui-architecture-analyst-agent
↓
ui-pencil-drawer-agent (END)
Write result to .skill-context/{pipeline}/results/result-{stage_id}.json
{
"task_id": "stage_01",
"status": "COMPLETED",
"outputs": [
{
"path": "Docs/life-2/diagrams/flow/index.md",
"type": "markdown"
},
{
"path": "Docs/life-2/diagrams/flow/M1/index.md",
"type": "markdown"
},
{
"path": "Docs/life-2/diagrams/flow/M1/auth-flow.md",
"type": "markdown"
}
],
"next_subagent": "sequence-design-analyst-agent",
"next_input": "Docs/life-2/diagrams/flow/"
}
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".