← Back to list
1. SPEC Phase (
2. TDD Phase (
3. SYNC Phase (

orchestrating-spec-first-tdd-development
by kivo360
A claude code hooks library where it's very easy to create and test hooks of any kind
⭐ 0🍴 0📅 Jan 24, 2026
SKILL.md
name: "Orchestrating SPEC-First TDD Development" description: "Guides agents through SPEC-First TDD workflow with context engineering, TRUST principles, and @TAG traceability. Essential for /alfred:1-plan, /alfred:2-run, /alfred:3-sync commands. Covers EARS requirements, JIT context loading, TDD RED-GREEN-REFACTOR cycle, and TAG chain validation." allowed-tools: "Read, Bash(rg:), Bash(grep:)"
Alfred Development Guide Skill
Core Workflow: SPEC → TEST → CODE → DOC
No spec, no code. No tests, no implementation.
1. SPEC Phase (/alfred:1-plan)
- Author detailed specifications first with
@SPEC:IDtags - Use EARS format (5 patterns: Ubiquitous, Event-driven, State-driven, Optional, Constraints)
- Store in
.moai/specs/SPEC-{ID}/spec.md
2. TDD Phase (/alfred:2-run)
- RED: Write failing tests with
@TEST:IDtags - GREEN: Implement minimal code with
@CODE:IDtags - REFACTOR: Improve code while maintaining SPEC compliance
- Document with
@DOC:IDtags
3. SYNC Phase (/alfred:3-sync)
- Verify @TAG chain integrity (SPEC→TEST→CODE→DOC)
- Synchronize documentation with implementation
- Generate sync report
Key Principles
Context Engineering: Load only necessary documents at each phase
/alfred:1-plan→ product.md, structure.md, tech.md/alfred:2-run→ SPEC-{ID}/spec.md, development-guide.md/alfred:3-sync→ sync-report.md, TAG validation
TRUST 5 Pillars:
- T – Test-driven (RED→GREEN→REFACTOR)
- R – Readable (clear naming, documentation)
- U – Unified (consistent patterns, language)
- S – Secured (OWASP compliance, security reviews)
- E – Evaluated (metrics, coverage ≥85%)
Common Patterns
| Scenario | Action |
|---|---|
| Write tests first | RED phase: failing tests with @TEST:ID |
| Implement feature | GREEN phase: minimal code with @CODE:ID |
| Refactor safely | REFACTOR phase: improve code structure |
| Track changes | Always use @TAG system in code + docs |
| Validate completion | /alfred:3-sync verifies all links |
Score
Total Score
50/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon