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

  1. Red — Write a failing test first. Run it and confirm it fails for the expected reason. Do not write any production code yet.
  2. Green — Write the minimum production code to make the failing test pass. Nothing more.
  3. Refactor — Clean up both test and production code while keeping all tests green. Remove duplication, improve naming, simplify structure.
Installs
4
GitHub Stars
16.0K
First Seen
May 28, 2026
tdd — ryoppippi/ccusage