LogoClawIndex
CasesSkillsAbout
LogoClawIndex

unit-test-writer - Write failing unit tests for TDD Red

Writes unit tests before implementation, emphasizing non-obvious branches and confirming that tests fail for the expected reason.

Tags

Updated: 2026-12-05
unit testingtest-driven developmentTDD Red phasemutation testingtest design

Capabilities

Read feature specificationsWrite failing unit testsCover non-obvious branchesRun tests and verify failures

Typical Inputs

Feature specificationPlan ancestryRepository source code

Typical Outputs

Unit test filesConfirmed failing test resultsUnreachable-branch documentation

What this skill does

  • Read feature specifications
  • Write failing unit tests
  • Cover non-obvious branches
  • Run tests and verify failures
  • Document unreachable branches
  • Return test files

Inputs

  • Feature specification
  • Plan ancestry
  • Repository source code
  • Test runner configuration

Outputs

  • Unit test files
  • Confirmed failing test results
  • Unreachable-branch documentation

Requirements

  • Repository read access
  • Repository write access
  • Test execution access
  • Opus model support

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.