Zum Inhalt springen
Kitbay
Einreichen
Skill

tdd

MITAktualisiert am 11. Nov. 202619.406GitHub-Sterne

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

Was der Skill vermittelt

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.

Funktionen

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