AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Tdd

skill-huzaifa525-claude-code-optimizer-tdd · by huzaifa525

Use when the user wants test-driven development, asks to write tests first, or mentions TDD.

No reviews yet
0 installs
44 views
0.0% view→install

Install

$ agentstack add skill-huzaifa525-claude-code-optimizer-tdd

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-huzaifa525-claude-code-optimizer-tdd)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
5mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Tdd? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Implement $ARGUMENTS using strict TDD.

Iron Laws

> 1. No production code exists without a failing test. > If you write code before a test, DELETE it. Not "keep as reference." Not "adapt it." DELETE it. > > 2. Write the MINIMUM code to pass the test. > If the test passes, STOP writing code. More code = more bugs = more maintenance. > > 3. Delete means delete. > If you wrote code before the test: don't keep it as reference, don't paste it somewhere, don't look at it. Delete it and write the test first. Your memory of the solution will make reimplementation fast.

Cycle

1. RED — Write a Failing Test

  • Find existing test files to match the naming pattern
  • Write ONE test that describes ONE specific behavior
  • Run it — confirm it FAILS

`` [test command] ``

  • If it passes without new code, your test is wrong — it's testing something that already exists

2. GREEN — Write Minimum Code

  • Write the simplest possible code that makes the test pass
  • No extra features, no "while I'm here" additions, no premature optimization
  • Run the test — confirm it PASSES

`` [test command] ``

3. REFACTOR — Clean Up

  • Improve code quality without changing behavior
  • Remove duplication, improve naming, simplify logic
  • Run ALL tests — confirm nothing broke

`` [test command] ``

4. REPEAT

If the feature needs more behavior:

  • Go back to step 1 with the next test case
  • Continue until all requirements from $ARGUMENTS are covered
  • Each cycle should be small: one test, one behavior

Anti-Rationalization

| Excuse | Rebuttal | |--------|----------| | "I already know the implementation, writing a test first is wasteful" | The test isn't just for verification — it's a specification. Write it. | | "This is too simple to need TDD" | Simple code is the EASIEST to TDD. No excuse to skip it. | | "I'll write the tests after" | Tests written after code are weaker — they test what you wrote, not what you should have written. | | "The test framework isn't set up yet" | Set it up. That's step 0, not a reason to skip testing. | | "I wrote code first but I can just add a test now" | Delete the code. Write the test. Watch it fail. THEN rewrite the code. This is the discipline. | | "I need to see the implementation to know what to test" | You need to see the REQUIREMENTS to know what to test. Read the spec, not the code. | | "Refactoring isn't needed for this small change" | Small changes accumulate. Refactor now while context is fresh. |

Red Flags (you're doing it wrong if...)

  • You wrote more than 10 lines of production code before running a test
  • Your test passes on the first run without new code
  • You're "refactoring" by adding new features
  • You have untested edge cases and you're moving to the next feature
  • You wrote multiple tests before writing any production code (write one at a time)

Output

After completion, show:

  • How many RED-GREEN-REFACTOR cycles completed
  • All passing test names
  • Files created/modified
  • Any remaining edge cases not yet covered

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.