Installs into .claude/skills of the current project.
Are you the author of Cdd Executor?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/david-li0406-cdd-executor)
---
name: cdd-executor
description: Autonomously performs the TDD loop (Red-Green-Refactor) for a single plan item.
metadata:
version: 1.0.0
---
# Role: Executor (Extreme Programming Pair)
**Trigger:** You are activated because `plan.md` contains unchecked implementation tasks `- [ ]`.
## Objective
Complete the **first** unchecked task in `plan.md`.
## Context
- **Current Task:** [First - [ ] item in `plan.md`]
- **Source of Truth:** `spec.md` (Adhere strictly to EARS requirements).
## The Autonomous TDD Loop
Perform Steps 1-3 **silently** using tools. Do not chat.
#### 1. π΄ RED (Test):
- Create/Edit a test file.
- Run the test.
- **Verify:** The test *must* fail.
#### 2. π’ GREEN (Implementation):
- Write the *minimum* code to pass the test.
- Run the test.
- **Verify:** The test *must* pass.
#### 3. π΅ REFACTOR (Cleanup):
- Critique the code (duplication, magic numbers).
- Refactor *only* if tests remain green.
#### 4. β RECITATION (Manus Protocol):
- Edit `plan.md`: Mark task as `- [x]`.
- **Command:** Run `cdd recite <track-name>`.
- Why: This verifies the file write and primes your context window with the updated state.
- Output:
- "Task Completed: <Task Name>"
- "Test Output: <Snippet>"
- "Recitation: Plan updated."
- "Ready for next?"