tdd

tdd is a skill for Claude Code from LucasSantana-Dev/sharekit. It costs 29 tokens per session (390 once invoked), scanned A, original, MIT.

A short workflow for test-driven development, or TDD: write a failing test, add the smallest code that passes it, then clean up the code.

In plain words
What is it for?
It guides feature and bug-fix work through the red-green-refactor cycle, using tests based on public behavior.
Why use it?
It makes the expected behavior explicit before implementation and helps prevent untested changes.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit It guides feature and bug-fix work through the red-green-refactor cycle, using tests based on public behavior.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lucassantana-dev/sharekit/tdd
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.

Any agent
npx skills add LucasSantana-Dev/sharekit --skill tdd
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

README.md
[![agentmods](https://agentmods.dev/badge/skills/lucassantana-dev/sharekit/tdd/github.svg)](https://agentmods.dev/skills/lucassantana-dev/sharekit/tdd)
Your own site
<a href="https://agentmods.dev/skills/lucassantana-dev/sharekit/tdd"><img src="https://agentmods.dev/badge/skills/lucassantana-dev/sharekit/tdd/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/lucassantana-dev/sharekit/tdd"><img src="https://agentmods.dev/badge/skills/lucassantana-dev/sharekit/tdd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 390 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.00029 $0.00390
Opus 5.5 $0.00012 $0.00156
Sonnet 5.5 $0.00006 $0.00078
Haiku 4.5 $0.00003 $0.00039

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

Security

Grade A, and why

tdd 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 1mo 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/skills/tdd/SKILL.md · 58 lines

What it actually says

Test-Driven Development (Short)

This is the quick-reference alias for test-driven-development. Use this when you want the essentials; use the full skill for comprehensive guidance, extensive examples, and rationalization handling.

Core Rule

NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST

Write code before the test? Delete it. Start over.

Red-Green-Refactor Cycle

RED → Failing test
GREEN → Minimal code to pass
REFACTOR → Clean up (tests still green)
REPEAT

Discipline: Tracer Bullets, Not Horizontal Slices

One test → one implementation → repeat.

Avoid "horizontal slicing" (write all tests, then all code). This produces tests coupled to implementation shape rather than behavior. Vertical slices (one test + one impl per cycle) keep tests responsive to what you actually learned.

Essential Rules

  • Watch every test fail before implementing
  • Write minimal code — only enough to pass current test
  • Don't anticipate future tests
  • Never refactor while RED
  • After green, refactor freely; tests catch breaks
  • Tests use public interfaces, not mocks of internals

Verification Checklist

  • Test describes behavior, not implementation
  • Test uses public interface only
  • Watched test fail before implementing
  • Code is minimal for this test
  • All tests pass

See Full Skill

For comprehensive workflows, rationalization handling, and examples, see test-driven-development or invoke /test-driven-development.

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 58 lines · 29 tokens per session scan A 092dbb0cf269

Subscribe to this mod's changes

tdd is a skill published in the GitHub repository LucasSantana-Dev/sharekit (1 stars, last pushed 3d ago), licensed MIT. It adds 29 tokens to every session and 390 once invoked, about $0.0001 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-09-03.

Related

Other skills, from other repositories

test-driven-development

Use when implementing any feature or bugfix, before writing implementation code.

mvschwarz/openrig · 17 tokens

skillshare-implement-feature

Implement a feature from a spec file or description using TDD workflow. Use this skill whenever the user asks to: add a new CLI command, implement a feature from a spec, build new functionality, add a flag, create a new internal package, or write Go code for skillshare. This skill enforces test-first development…

runkids/skillshare · 114 tokens

product

Consolidated Galyarder Framework Product intelligence bundle.

skillmds/skillmd · 13 tokens

implement

Use when an approved plan and task list exist and it is time to turn them into working, tested code — the SDD phase after analyze and before verify. Enforces TDD: a failing test comes before the code that makes it pass, one task at a time, appended to a progress ledger that survives compaction. Delegates test tooling…

ericrisco/rsc-harness · 123 tokens

implement

Implement a technical design by decomposing it into dependency-ordered vertical slices, executing each with TDD red-green, reviewing each via an isolated sub-agent, and persisting progress to a state file so work survives session restarts. Use when the user has a tech design (doc or settled conversation) and says…

open-octo/octo-agent · 97 tokens

test-driven-development

Writing code with tests first: RED-GREEN-REFACTOR, reproduce bugs as failing tests before fixing, and avoid testing anti-patterns. Use when implementing behaviour, fixing a defect, or asked to add tests.

damianvtran/local-operator · 48 tokens