mcpbeat

Tdd Guide

foryourhealth111-pixel/tdd-guide

Test-first development route for TDD, writing failing tests first, RED -> GREEN -> REFACTOR, and behavior-changing feature/bug/refactor work. Do not use for already-failing test root-cause debugging, test-report packaging, or final completion evidence.

455 tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
2583
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/foryourhealth111-pixel/Vibe-Skills --skill tdd-guide

The instruction itself

7 sections, as written by the author

tdd-guide (Codex Compatibility)

Use this skill for all feature work, bug fixes, and refactors that change behavior.

Routing Boundary

Use this skill when the user wants to build or change behavior through tests:

  • TDD / test-driven development
  • write failing tests first
  • test-first implementation
  • RED -> GREEN -> REFACTOR

Do not use it when tests are already failing and the user wants root cause; route that to systematic-debugging. Do not use it when the user only wants a test/coverage report; route that to generating-test-reports.

Core Rule

No production code before a failing test.

Workflow

  • RED
  • Write one failing test for one behavior.
  • Confirm the failure is expected.
  • GREEN
  • Implement the minimal code to pass.
  • Re-run tests and keep scope narrow.
  • REFACTOR
  • Improve structure/naming without changing behavior.
  • Keep all tests green.
  • COVERAGE
  • Verify coverage target (recommended >=80% for lines/functions/branches).
  • Add missing tests for edge/error paths.

Minimum Test Set

  • Unit: public functions and core logic.
  • Integration: API/data/service boundaries.
  • E2E: critical user path only when relevant.

Required Edge Cases

  • Null/undefined input
  • Empty values
  • Invalid types
  • Boundary values
  • Error paths (network/DB/file)
  • Concurrency-sensitive behavior

Vibe Integration

  • Primary coding skill in M-grade flow.
  • Compatible fallback target for everything-claude-code:tdd-guide.
  • For richer TDD patterns, combine with test-driven-development.

How to use it

Copy the folder

Take foryourhealth111-pixel/tdd-guide from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.