LogoClawIndex
CasesSkillsAbout
LogoClawIndex

ptp-test-driven-development - Red/green/refactor cycle for test-driven development

Applies the red/green/refactor test-driven development cycle before writing implementation code for features, bug fixes, or behavior changes.

Tags

Updated: 2026-09-15
tddtest-driven-developmentred-green-refactorptp

Capabilities

Write failing tests firstVerify test failure reasonsWrite minimal passing implementationVerify complete test suite

Typical Inputs

skills/ptp-skill-contract/SKILL.md referenceBehavior requirements and specificationsTest runner and browser environment

Typical Outputs

Failing and passing test casesMinimal feature implementation codeTest execution evidence records

What this skill does

  • Write failing tests first
  • Verify test failure reasons
  • Write minimal passing implementation
  • Verify complete test suite
  • Refactor code during green state
  • Record test execution evidence

Inputs

  • skills/ptp-skill-contract/SKILL.md reference
  • Behavior requirements and specifications
  • Test runner and browser environment

Outputs

  • Failing and passing test cases
  • Minimal feature implementation code
  • Test execution evidence records

Requirements

  • Skill tool for contract loading
  • Executable test runner or validator
  • Real browser engine for render tasks

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.