Cdd Executor

Autonomously performs the TDD loop (Red-Green-Refactor) for a single plan item.

gustavofsantos dc5853c 1.2 KB Updated

File contents

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: "
    • "Test Output: "
    • "Recitation: Plan updated."
    • "Ready for next?"

gustavofsantos/cdd/tree/main/.agent/skills/cdd-executor commit dc5853c578

Frequently asked questions

npx skillmds@latest add gustavofsantos/cdd-executor