workflow-test-driven-development

workflow-test-driven-development is a skill for Claude Code from saemihemma/lead-producer-oss. It costs 27 tokens per session (719 once invoked), scanned A, original, MIT.

A test-first development workflow, often called TDD, where tests are written or prioritized before the implementation. It routes the work to a relevant domain specialist while keeping project context in scope.

In plain words
What is it for?
Use it for feature work or bug fixes that should follow strict TDD, including general, frontend, QA-focused, principal-engineer, or on-chain tasks.
Why use it?
Test-first work clarifies expected behavior early and provides a direct check while the feature or fix is built. This workflow adds that discipline without dropping domain knowledge.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it for feature work or bug fixes that should follow strict TDD, including general, frontend, QA-focused, principal-engineer, or on-chain tasks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/saemihemma/lead-producer-oss/workflow-test-driven-development
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 saemihemma/lead-producer-oss --skill workflow-test-driven-development
Clone the repo
git clone --depth 1 https://github.com/saemihemma/lead-producer-oss

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 workflow-test-driven-development

README.md
[![agentmods](https://agentmods.dev/badge/skills/saemihemma/lead-producer-oss/workflow-test-driven-development/github.svg)](https://agentmods.dev/skills/saemihemma/lead-producer-oss/workflow-test-driven-development)
Your own site
<a href="https://agentmods.dev/skills/saemihemma/lead-producer-oss/workflow-test-driven-development"><img src="https://agentmods.dev/badge/skills/saemihemma/lead-producer-oss/workflow-test-driven-development/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 workflow-test-driven-development

Your own site · 80×15
<a href="https://agentmods.dev/skills/saemihemma/lead-producer-oss/workflow-test-driven-development"><img src="https://agentmods.dev/badge/skills/saemihemma/lead-producer-oss/workflow-test-driven-development.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 719 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.00027 $0.00719
Opus 5 $0.00014 $0.00360
Sonnet 5 $0.00005 $0.00144
Haiku 4.5 $0.00003 $0.00072

Measured 8d ago against content hash e52763a37af5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

workflow-test-driven-development 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 8d 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.

.claude/skills/workflow-test-driven-development/SKILL.md · 59 lines

How it starts

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

Test-Driven Development Workflow

Purpose

Repo-local adapter for test-first implementation. Routes the right domain owner into strict TDD execution.

Use When

  • Feature or bugfix should execute under strict TDD without losing domain expertise
  • Dev Team, QA, Principal Engineer, Move Team, or Frontend Team needs disciplined implementation
  • Project context modules should stay in scope during coding

Do NOT Use When

  • Task is pure architecture exploration with no implementation
  • Best next step is root-cause debugging
  • Change is trivial enough to skip TDD overlay
  • Project is in pure spike/experimental mode and core idea is unvalidated. Exception expires the moment you decide to keep or ship the code — tests become first priority.

Default Route

Combine the relevant domain owner with TDD discipline:

  • TDD + team-dev-team — general implementation
  • TDD + role-qa-engineer — acceptance criteria focus
  • TDD + role-principal-software-engineer — interface quality focus
  • TDD + team-move-team — specialized on-chain work
  • TDD + team-frontend-team — frontend implementation

Anti-Patterns

  • Using this as a standalone TDD doctrine instead of routing to domain owners
  • Skipping domain expertise on smart contracts, UI, or architecture-heavy work

Minimal TDD Discipline (When Superpowers Pack Unavailable)

If no external TDD overlay is installed, apply this minimal discipline:

  1. Write a failing test that captures the expected behavior first.
  2. Implement the simplest code that makes the test pass.
  3. Refactor without breaking the test.
  4. Repeat for each behavior slice.
  5. Once green, run coverage analysis. Gaps point to missing negative tests and edge cases. Add those before moving on.

AI-Agent TDD Hazards

  • Agents optimize for GREEN, not CORRECT. They will silently disable tests, weaken assertions, or update expectations to match buggy output instead of the spec.
  • Write tests against the SPEC before implementation exists in the agent's context. Keep implementation code out of context while writing tests.
  • In header/impl languages (C/C++), use headers as the spec surface. In single-file languages (Python, JS), feed the agent the interface contract and test file only — not the implementation.
  • After agent-generated implementation passes, re-read the original test expectations. If any changed, treat that as a defect.

Read the full file on GitHub · 59 lines

Files

What ships with it

5 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. 8d ago First seen · 59 lines · 27 tokens per session scan A e52763a37af5

Subscribe to this mod's changes

workflow-test-driven-development is a skill published in the GitHub repository saemihemma/lead-producer-oss (2 stars, last pushed 8d ago), licensed MIT. It adds 27 tokens to every session and 719 once invoked, about $0.0001 per session on Opus 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.