LogoClawIndex
CasesSkillsAbout
LogoClawIndex

tdd - Test-Driven Development Workflow

Applies test-driven development by evaluating regression value, checking test infrastructure, and following a red-green-refactor cycle.

Tags

Updated: 2026-09-12
tddtestingrefactoringred-green-refactorsoftware-engineering

Capabilities

Preflight changes for TDD applicabilityCheck existing project test infrastructureWrite failing tests before codeExecute red green refactor cycles

Typical Inputs

Proposed code changesExisting project test infrastructureUser task requirements

Typical Outputs

Failing and passing test casesRefactored production codeTest infrastructure engineering plan

What this skill does

  • Preflight changes for TDD applicability
  • Check existing project test infrastructure
  • Write failing tests before code
  • Execute red green refactor cycles
  • Test observable public behavior

Inputs

  • Proposed code changes
  • Existing project test infrastructure
  • User task requirements

Outputs

  • Failing and passing test cases
  • Refactored production code
  • Test infrastructure engineering plan

Requirements

    Source

    • Spec: SKILL.md

    ClawIndex

    OpenClaw Skills & Use Case Index

    ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

    Index

    Skills·
    Cases

    Meta

    About·
    Disclaimer·
    Email·
    GitHub
    © 2026 ClawIndex All Rights Reserved.