agentleFS
DongDuong2001DongDuong2001/pudo-code-system/skills/test/tdd/SKILL.md

tdd

Skill5 starsChanged 5 months agoMITView on GitHub

Test-driven development workflows and red-green-refactor loops

We split this skill into the rules it gives an agent

5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 186 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When developing new features following strict TDD constraints.

    line 11
  2. Distinctive:

    When refactoring legacy code safely by writing tests first.

    line 12
  3. Distinctive:

    Red: Write a failing test for the next piece of functionality.

    line 15
  4. Distinctive:

    Green: Write the absolute minimum amount of code necessary to make the test pass.

    line 16
  5. Distinctive:

    Wait on edge cases: Don't write generalized code until the tests explicitly demand it through diverse test cases.

    line 18

“Common” is measured: kept by at least 6 in 10 of the 186 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Test-Driven Development (TDD) Skill

This skill guides the implementation of features using the TDD lifecycle.

When to use this skill

  • When developing new features following strict TDD constraints.
  • When refactoring legacy code safely by writing tests first.

Guidelines

  • Red: Write a failing test for the next piece of functionality. Ensure it fails for the correct reason.
  • Green: Write the absolute minimum amount of code necessary to make the test pass.
  • Refactor: Improve the code quality, remove duplication, and optimize while ensuring tests remain green.
  • Wait on edge cases: Don't write generalized code until the tests explicitly demand it through diverse test cases.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.