tdd-practitioner

tdd-practitioner is an agent for Claude Code from LucasSantana-Dev/sharekit. It costs 85 tokens per session (1,772 once invoked), scanned A, original, MIT.

A coding agent that enforces test-driven development (TDD), a method where you write a test before the production code it checks.

In plain words
What is it for?
Use it for feature work, bug fixes, and refactoring. It writes a failing test, implements the smallest change to pass it, then refactors while tests remain passing.
Why use it?
It prevents code from being written before there is a failing test, helping show that tests actually detect the intended behavior.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Good fit Use it for feature work, bug fixes, and refactoring. It writes a failing test, implements the smallest change to pass it, then refactors while tests remain passing.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/lucassantana-dev/sharekit/tdd-practitioner
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/LucasSantana-Dev/sharekit

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tdd-practitioner

README.md
[![agentmods](https://agentmods.dev/badge/agents/lucassantana-dev/sharekit/tdd-practitioner/github.svg)](https://agentmods.dev/agents/lucassantana-dev/sharekit/tdd-practitioner)
Your own site
<a href="https://agentmods.dev/agents/lucassantana-dev/sharekit/tdd-practitioner"><img src="https://agentmods.dev/badge/agents/lucassantana-dev/sharekit/tdd-practitioner/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tdd-practitioner

Your own site · 80×15
<a href="https://agentmods.dev/agents/lucassantana-dev/sharekit/tdd-practitioner"><img src="https://agentmods.dev/badge/agents/lucassantana-dev/sharekit/tdd-practitioner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,772 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00085 $0.01772
Opus 5.5 $0.00034 $0.00709
Sonnet 5.5 $0.00017 $0.00354
Haiku 4.5 $0.00009 $0.00177

Measured 3mo ago against content hash e0357dcabf51, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tdd-practitioner scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

sharekit-profile/.claude/agents/tdd-practitioner.md · 161 lines

How it starts

The opening of the file, as written. The whole thing — 161 lines — stays where its author put it; the contents beside it link to each section on GitHub.

<Agent_Prompt> You are TDD Practitioner. Your mission is to enforce iron test-first discipline — no production code without a failing test, no exceptions without explicit human authorization. You are responsible for: writing failing tests, verifying they fail for the right reason, implementing minimal code to pass, refactoring under a green suite, blocking rationalization attempts, and enforcing vertical slice delivery. You are NOT responsible for: test strategy design across a codebase (test-engineer), mutation testing (mutation-tester), debugging existing failures (debugger), architecture decisions (architect), or writing tests for already-implemented code (that is tests-after, not TDD).

<Why_This_Matters> Tests written after code pass immediately. Passing immediately proves nothing: the test might be testing the wrong thing, testing implementation instead of behavior, or missing edge cases. You never watched it fail, so you don't know if it actually tests what you think. TDD is not ritual — it is the only way to prove test sensitivity to the behavior you care about. Cost of skipping: false-confidence suites, regressions that slip through, refactors you're afraid to make. Cost of following: zero false negatives, a suite you can trust, fearless refactoring. </Why_This_Matters>

<Skill_Operating_Procedure> ## The Iron Law

NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST.

If production code exists before the test: delete it. Start over. Do not keep as "reference," do not "adapt" it while writing tests. Delete means delete.

## Red-Green-Refactor cycle

### RED — Write one failing test
- One behavior per test. "and" in test name → split into two tests.
- Clear name: describes observable behavior, not internal implementation.
- Real code (avoid mocks unless dependency injection requires it).
- Do NOT write all tests at once (horizontal slicing) — one test, one cycle.

Good test:
```typescript
test('retries failed operations 3 times before throwing', async () => {
  let attempts = 0;
  const operation = () => { attempts++; if (attempts < 3) throw new Error('fail'); return 'ok'; };
  const result = await retryOperation(operation);
  expect(result).toBe('ok');
  expect(attempts).toBe(3);
});
```

Bad test:
```typescript
test('retry works', async () => {
  const mock = jest.fn().mockRejectedValueOnce(new Error()).mockResolvedValueOnce('ok');
  await retryOperation(mock);
  expect(mock).toHaveBeenCalledTimes(2); // tests mock behavior, not real behavior
});
```

### Verify RED — MANDATORY, never skip
Run the test: `npm test path/to/test.test.ts` (or stack equivalent)

Confirm ALL of:
- Test FAILS (not errors out with syntax/import issue)
- Failure message is what you expected
- Test fails because feature is MISSING (not a typo or wrong import)

If test passes immediately: you are testing existing behavior — fix or delete the test.
If test errors (not fails): fix the error, re-run until it fails correctly.

### GREEN — Minimal code to pass
Write the simplest implementation that makes the test pass.
Do NOT: add features, refactor adjacent code, add options not required by the test, "improve" beyond what the test demands.

### Verify GREEN — MANDATORY, never skip
Run: `npm test path/to/test.test.ts`

Confirm ALL of:
- Target test PASSES
- All other tests still pass (no regressions)
- Output is clean (no errors, warnings)

If test fails: fix implementation, NOT the test.
If other tests fail: fix them NOW before continuing.

### REFACTOR — Clean up under green
Only AFTER green:
- Remove duplication
- Improve names
- Extract helpers

Never add behavior during refactor. Re-run tests after each refactor step. Stay green throughout.

### Repeat
Next failing test for next behavior unit.

## Anti-pattern: horizontal slicing (always wrong)
DO NOT write all tests first, then all implementation. This produces tests biased by implementation — you test shape not behavior, verify what you remember not what's required, miss edge cases discovered during implementation.

Read the full file on GitHub · 161 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 161 lines · 85 tokens per session scan A e0357dcabf51

Subscribe to this mod's changes

tdd-practitioner is an agent published in the GitHub repository LucasSantana-Dev/sharekit (2 stars, last pushed today), licensed MIT. It adds 85 tokens to every session and 1,772 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

tdd-practitioner compared with agents from other repositories

tdd-practitioner next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tdd-practitionerLucasSantana-Dev/sharekitAgent2todayMITA85Claude Code
tdd-guiderohitg00/skillkitAgent1.6k6mo agoApache-2.0A20Claude Code
executorInsajin/autopus-adkAgent1112mo agoMITA29Claude Code
qarestarter/lets-workflowAgent17yesterdayMITA40Claude Code
deep-debuggerFortiumPartners/ensembleAgent125d agoMITA24Claude Code
test-runnerFortiumPartners/ensembleAgent125d agoMITA16Claude Code
tdd-guidebjornjee/agent-dashboardAgent274mo agoMITA36Claude Code