Skip to content
Development
Skill

/tdd

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

From plugin
pudo-code-system
534 skills1 agent
Install
$ npx -y skills add DongDuong2001/pudo-code-system --skill tdd --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/tdd

Context preview

The summary Claude sees to decide when to auto-load this skill.

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

SKILL.md

tdd.SKILL.md
name: tdd
description: Test-driven development workflows and red-green-refactor loops

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.
Ships withpudo-code-system

Modular, scalable, automated development intelligence.

Get the whole plugin
Stats
5
Stars
0
Forks
Maintained
Maintenance
JavaScript
Language
MIT
License
1mo ago
Last commit
4mo ago
Created

Repo: DongDuong2001/pudo-code-system

Other skills on pudo-code-system.