本文へスキップ
Kitbay
掲載依頼
スキル

tdd

MIT2026年11月11日 更新19,406GitHubスター

A skill in the ccusage repository that guides red-green-refactor work on ccusage's own Rust and TypeScript code.

スキルの内容

A skill in the ccusage repository that guides red-green-refactor work on ccusage's own Rust and TypeScript code. The agent sketches the behaviours as placeholder tests, takes them one at a time, writes a failing test and confirms why it fails, writes the minimum code, then refactors while everything stays green, running only the affected tests after each step. It warns against writing all tests first, expected values computed by the code under test, and mocking inside the system, and names the real boundaries that may be substituted. It lists the cargo, node and just commands used to run focused tests in this repository.

できること

  • Sketch behaviours as placeholder tests
  • Run red-green-refactor on one behaviour at a time
  • Run focused Rust and Node tests