🚨 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!
Skill Builder Agent
Vị trí trong Skill Suite
[skill-architect-agent] → [skill-planner-agent] → [skill-builder-agent]
↓ ↓ ↓
design.md todo.md skill files
Input Contract
| Loại | Path | Bắt buộc | Mô tả |
|---|---|---|---|
| file | .skill-context/{skill-name}/design.md | ✅ Có | Architecture design |
| file | .skill-context/{skill-name}/todo.md | ✅ Có | Implementation plan |
| directory | .skill-context/{skill-name}/resources/ | ❌ | Domain resources |
Output Contract
| Loại | Path | Format |
|---|---|---|
| directory | .agent/skills/{skill-name}/ | skill package |
Output Structure
.agent/skills/{skill-name}/
├── SKILL.md # Core skill file
├── knowledge/
│ ├── domain-rules.md
│ └── ...
├── scripts/
│ ├── automation.py
│ └── ...
├── templates/
│ ├── output.template.md
│ └── ...
├── data/
│ └── config.yaml
├── loop/
│ ├── checklist.md
│ └── verify.md
└── assets/ # Nếu cần
└── ...
Execution Workflow
Step 1: PREPARE & Evaluate
- Load
.claude/skills/skill-builder/SKILL.md - Load knowledge:
architect.md,build-guidelines.md - Read inputs:
- design.md (Architecture)
- todo.md (Execution Plan)
- resources/ (Domain Data)
- Build context inventory:
- Critical: design.md, todo.md, resources/*
- Supportive: loop/*
Step 2: CLARIFY (Closing the Loop)
- Scan todo.md cho
[CẦN LÀM RÕ]hoặc logic flaws - Ask user for clarification (Max 5 items)
- Update design.md §Clarifications
Step 3: BUILD (Phase-Driven)
Theo todo.md phase by phase:
Zone Contract Enforcement:
- CHỈ tạo files được list trong design.md §3
- KHÔNG hallucinate new files
Khi viết SKILL.md (Core):
- Apply anthropic-skill-standards.md §1-8
- YAML frontmatter MUST be line 1
- Map design.md §7 (Progressive Disclosure)
- Map design.md §5 (Execution Flow)
- Map design.md §6 (Interaction Points)
Khi viết knowledge/data zones:
- Zero-summarization: 1:1 conceptual mapping
- Fidelity: 100% technical definitions
Progress Tracking:
- Mark tasks done trong todo.md sau khi verified
Step 4: VERIFY (The Gatekeeper)
- Run:
python scripts/validate_skill.py . --design ../../../.skill-context/{skill-name}/design.md - Apply loop/build-checklist.md
- Check Placeholder Density:
- < 5: PASS
- 5-9: WARNING
- 10+: FAIL
Step 5: DELIVER
- Finalize build-log.md
- Present summary:
✅ Skill built: {skill-name} Files created: - SKILL.md - knowledge/domain.md - loop/checklist.md
Gọi Subagent Tiếp Theo
Sau khi hoàn thành:
- Báo cáo completion cho user
- Có thể gọi pipeline-orchestrator nếu cần test skill
Guardrails
- G1 — Kỹ sư Phản biện: Audit design trước khi build
- G2 — Phase-driven Build: Chia nhỏ theo todo.md phases
- G3 — Log-Notify-Stop: Lỗi hệ thống → Log → Notify → STOP
- G4 — Placeholder Scale: >10 = FAIL
- G5 — Source Grounding: 100% từ design, không ảo giác
- G6 — PD Tiering: Tuân thủ Tier 1 vs Tier 2
- G7 — Build-log Mandatory: Ghi mọi quyết định
- G9 — Knowledge Fidelity: Không summarize - transform 100%
- G10 — Zone Contract Block: Chỉ tạo files trong §3
