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-15Capabilities
Typical Inputs
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
