LogoClawIndex
CasesSkillsAbout
LogoClawIndex

test-driven-development - Test-Driven Development Cycle and Best Practices

Executes test-driven development by writing failing tests, writing minimal implementation code, and refactoring while adding features or fixing bugs.

Tags

Updated: 2026-09-17
tddtestingunit-testingrefactoringbug-fixing

Capabilities

Write failing tests firstImplement minimum passing codeRefactor code safelyWrite bug reproduction tests

Typical Inputs

Feature specificationsBug reproduction detailsExisting codebase

Typical Outputs

Unit test filesSource code implementationRefactored codebase

What this skill does

  • Write failing tests first
  • Implement minimum passing code
  • Refactor code safely
  • Write bug reproduction tests
  • Mock external dependencies

Inputs

  • Feature specifications
  • Bug reproduction details
  • Existing codebase

Outputs

  • Unit test files
  • Source code implementation
  • Refactored codebase

Requirements

  • Test runner framework
  • Access to ~/.ai-shared/references/testing-patterns.md

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.