Run the strict TDD loop using plan.md as SoT. Use when the user says 'go' or asks to implement next test. Follows Kent Beck's TDD methodology with RED→GREEN→REFACTOR cycle.
plan.md test queueplan.md exists with unchecked testspytest for Python, cargo test for Rust)implementer agent available (for code implementation)verifier agent available (for validation)# plan.md (SoT)
## Tests
- [ ] test: <description> (file: <path>, name: <test_function_name>)
- [x] test: <description> (file: <path>, name: <test_function_name>) # passed @YYYY-MM-DD <commit:hash>
- [ ] test: ...- [x] test: ... # passed @...file: and name: from parenthesesplan.md- [ ] test: linefile: (test file path) and name: (test function name)def test_example():
assert False # Intentionally failing
pytest tests/test_file.py::test_name -v
# or
cargo test test_name
pytest tests/test_file.py::test_name -v
pytest -q
# or
cargo test
pytest -q
- [x] test: <description> (file: <path>, name: <name>) # passed @2026-01-28 <commit:abcd1234>
implementer agent: Automatically called for code implementationverifier agent: Validates test execution and resultsplan.md: Source of truth for test queueUser: "go"
→ tdd-go skill
→ Read plan.md (select next test)
→ RED: Write failing test
→ implementer agent (GREEN: minimal code)
→ REFACTOR: Structure improvement
→ verifier agent (validate all tests)
→ Update plan.md
## Tests
- [ ] test: CLI report works on temp dir (file: tests/test_cli_smoke.py, name: test_cli_report_smoke)
# tests/test_cli_smoke.py
def test_cli_report_smoke():
result = run_cli_report()
assert result.status == "ok" # This will fail
# src/inventory_master/cli.py
def report_command():
return {"status": "ok"} # Minimal implementation
# Extract to function, improve naming
def generate_report(root: Path) -> ReportResult:
return ReportResult(status="ok", files=0)
## Tests
- [x] test: CLI report works on temp dir (file: tests/test_cli_smoke.py, name: test_cli_report_smoke) # passed @2026-01-28 <commit:abcd1234>
# Run specific test
pytest tests/test_file.py::test_name -v
# Run all tests
pytest -q
# Check coverage (if applicable)
pytest --cov=src --cov-report=term-missing
[Structural] Extract method for clarity[Behavioral] Add report command to pass test- [ ] or - [x] syntax.cursor/agents/implementer.md.cursor/agents/verifier.mddocs/AGENTS_AND_SKILLS_GUIDE.md