AGENT SKILL

ecc-cmd-tdd

Command skill for 'tdd'. Use when users request test-driven development (red-green-refactor).

License 许可
MIT
最近更新
2026-03-08
Stars
★ 2
Forks
0

01 前言 Front Matter

name
ecc-cmd-tdd
description
Command skill for 'tdd'. Use when users request test-driven development (red-green-refactor).

02 资源文件 1

03 SKILL.md 正文

ecc-cmd-tdd

Use strict Red → Green → Refactor cycle.

Workflow

  1. Define behavior and acceptance criteria.
  2. Write failing test(s) first (Red).
  3. Implement minimum code to pass (Green).
  4. Refactor while preserving passing tests (Refactor).
  5. Run verification (ecc-cmd-verify quick/full based on scope).

Checklist

  • [ ] New/updated tests fail before implementation
  • [ ] Tests pass after implementation
  • [ ] No unrelated code churn
  • [ ] Edge cases covered
  • [ ] Regression test added for bug fixes

Output

## TDD Run
- Behavior: ...
- Red: failing tests listed
- Green: implementation summary
- Refactor: improvements made
- Final test status: pass/fail

Rules

  • Do not skip Red phase unless user explicitly waives TDD.
  • Keep test names behavior-oriented.
  • Prefer deterministic tests (avoid timing/network flakiness).

ECC Parity Notes

  • This skill is adapted from ECC intent and translated to OpenClaw-native tool workflows.
  • Prefer reproducible, tool-backed execution over harness-specific slash semantics.
  • Keep outputs evidence-based and verification-first.

OpenClaw Constraints

  • If upstream flow assumes unavailable hooks/tools, use documented fallback scripts in openclaw-ecc/scripts/.
  • Mark non-applicable checks as SKIP rather than hard-failing when environment support is absent.

04 同仓库更多 Skills