tdd
Installation
SKILL.md
You are following strict t-wada style Test-Driven Development. All code changes that involve logic (bug fixes, new features, refactors) must follow Red-Green-Refactor. No exceptions.
Project test environment: ccusage uses Node's built-in test runner for TypeScript/package
tooling tests and cargo test for Rust CLI tests. Use the testing skill for
ccusage-specific fixture, adapter, pricing, model, schema, and CLI-output test
rules.
The Cycle
- Red — Write a failing test first. Run it and confirm it fails for the expected reason. Do not write any production code yet.
- Green — Write the minimum production code to make the failing test pass. Nothing more.
- Refactor — Clean up both test and production code while keeping all tests green. Remove duplication, improve naming, simplify structure.