agentsclimarketplace

Tdd

Skill viknesh20-20/claude-code-tool-kit/.claude/skills/tdd

Production-ready Claude Code configuration. 12 original agents, 200+ slash-command skills, 45+ MCP servers, 14 plugins, design + 3D + WebGPU + GSAP + RAG tooling. One-command Node.js installer for premium websites, SaaS apps, AI agents. Free, MIT, stack-agnostic.

Install
npx -y skills add viknesh20-20/claude-code-tool-kit --skill tdd

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 5 stars5 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Implements features using strict test-driven development — red-green-refactor cycle. Writes a failing test first, then minimal code to pass, then refactors. Use when building features that need high reliability.

SKILL.md

2.2 KB, as published. Nobody here has run it

Test-Driven Development

Detect Test Environment

!ls package.json pytest.ini pyproject.toml go.mod Cargo.toml *.csproj Gemfile mix.exs 2>/dev/null !find . -type f \( -name "*.test.*" -o -name "*.spec.*" -o -name "test_*" -o -name "*_test.*" \) -not -path "*/node_modules/*" -not -path "*/.git/*" 2>/dev/null | head -5


The TDD Cycle

For the requested feature, repeat this cycle until complete:

RED — Write a Failing Test

  1. Write the smallest possible test that describes the next piece of behavior
  2. The test must import/reference the function or module (even if it doesn't exist yet)
  3. Run the test — it MUST fail
  4. Verify the failure message is meaningful (not just a compilation error)

GREEN — Make It Pass

  1. Write the absolute minimum code to make the test pass
  2. Hardcoding is acceptable at this stage — it will be cleaned up in refactor
  3. Don't add functionality the test doesn't require
  4. Run the test — it MUST pass
  5. Run all related tests — nothing else should break

REFACTOR — Clean Up

  1. Remove duplication in both production and test code
  2. Improve naming, extract methods, simplify logic
  3. Run tests after every refactoring step — they must stay green
  4. Stop when the code is clean

Test Progression

Start simple, add complexity gradually:

  1. Null/empty/zero case
  2. Single item / simplest valid input
  3. Multiple items / typical case
  4. Edge cases / boundary values
  5. Error cases / invalid input
  6. Async / concurrent behavior (if applicable)

Output

  • Show each cycle clearly: RED (test code + failure), GREEN (impl + pass), REFACTOR
  • Display test runner output at each step
  • Final summary: all tests, coverage of the feature

Rules

  • NEVER write implementation before a failing test
  • NEVER skip the refactor step
  • One behavior per cycle — don't batch multiple features
  • If the test framework isn't set up, set it up first

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.