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
- 参考文档references/upstream-command.md5.5 KB
03 SKILL.md 正文
ecc-cmd-tdd
Use strict Red → Green → Refactor cycle.
Workflow
- Define behavior and acceptance criteria.
- Write failing test(s) first (Red).
- Implement minimum code to pass (Green).
- Refactor while preserving passing tests (Refactor).
- Run verification (
ecc-cmd-verifyquick/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
SKIPrather than hard-failing when environment support is absent.
04 同仓库更多 Skills
visa-doc-translate
Translate visa application documents (images) to English and create a bilingual PDF with original and translation
verification-loop
A comprehensive verification system for Claude Code sessions.
tdd-workflow
Use this skill when writing new features, fixing bugs, or refactoring code. Enforces test-driven development with 80%+ coverage including unit, integration, and E2E tests.
swiftui-patterns
SwiftUI architecture patterns, state management with @Observable, view composition, navigation, performance optimization, and modern iOS/macOS UI best practices.
swift-protocol-di-testing
Protocol-based dependency injection for testable Swift code — mock file system, network, and external APIs using focused protocols and Swift Testing.
swift-concurrency-6-2
Swift 6.2 Approachable Concurrency — single-threaded by default, @concurrent for explicit background offloading, isolated conformances for main actor types.