LogoClawIndex
CasesSkillsAbout
LogoClawIndex

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.

tdd - Red-green-refactor workflow for code changes

Executes a red-green-refactor loop by writing a failing test first, committing it, and implementing minimum passing code.

Tags

Updated: 2026-09-11

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • Write failing test first
  • Commit failing test
  • Implement minimal code change
  • Refactor implementation safely
  • Run target test runner

Inputs

  • Behavior specifications
  • Source code files
  • Test target path

Outputs

  • Failing test commit
  • Passing test output
  • Refactored source code

Requirements

  • Pytest test runner
  • Vitest test runner
  • Git version control system

Source

  • Spec: SKILL.md
tdd
testing
pytest
vitest
git
Write failing test first
Commit failing test
Implement minimal code change
Refactor implementation safely
Behavior specifications
Source code files
Test target path
Failing test commit
Passing test output
Refactored source code