tdd

tdd is a skill for Claude Code from VictorCostaOliveira/agents-tdd-flow. It costs 120 tokens per session (1,834 once invoked), scanned A, original, MIT.

A staged workflow for building a user-interface feature from a Figma design and acceptance criteria using test-driven development, or TDD. TDD means writing tests before the implementation, and each stage creates a required document before its code changes.

In plain words
What is it for?
Use it to plan a UI layout, write tests, implement the feature, refactor it, and evaluate the result through the required artifact files and approval steps.
Why use it?
It prevents design, testing, implementation, and review from being mixed together without checkpoints. Approval is required between stages, making the intended work visible before the next step starts.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md.

Good fit Use it to plan a UI layout, write tests, implement the feature, refactor it, and evaluate the result through the required artifact files and approval steps.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/victorcostaoliveira/agents-tdd-flow/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 VictorCostaOliveira/agents-tdd-flow --skill tdd
Clone the repo
git clone --depth 1 https://github.com/VictorCostaOliveira/agents-tdd-flow

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/victorcostaoliveira/agents-tdd-flow/tdd/github.svg)](https://agentmods.dev/skills/victorcostaoliveira/agents-tdd-flow/tdd)
Your own site
<a href="https://agentmods.dev/skills/victorcostaoliveira/agents-tdd-flow/tdd"><img src="https://agentmods.dev/badge/skills/victorcostaoliveira/agents-tdd-flow/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/victorcostaoliveira/agents-tdd-flow/tdd"><img src="https://agentmods.dev/badge/skills/victorcostaoliveira/agents-tdd-flow/tdd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 120 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,834 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.00120 $0.01834
Opus 5.5 $0.00048 $0.00734
Sonnet 5.5 $0.00024 $0.00367
Haiku 4.5 $0.00012 $0.00183

Measured 22d ago against content hash 3ca017b908f4, 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 22d 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/.claude/skills/tdd/SKILL.md · 103 lines

How it starts

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

Figma + critérios de aceite + TDD

Implementa uma funcionalidade (tela ou bloco de UI) com pipeline fixo de artefatos: cada agente entrega um documento (ou documento + código) nesta ordem, sem pular etapas. Vale tanto invocado por esta skill quanto em chamada direta a qualquer um dos agentes (figoso, testivos, devoso, refoso, avaliason).

Cada etapa é um agente chamado pela ferramenta Task com o subagent_type correspondente. A sessão principal orquestra, apresenta os artefatos e pede aprovação; o trabalho da etapa é do agente.

Princípio inviolável: o artefato guia a tarefa

  • O arquivo de planejamento da etapa (TESTS.md, DEV.md, REFACTOR.md) é o contrato do que vai ser feito em seguida. A implementação materializa esse contrato; nunca o inverso.
  • Ordem rígida por etapa: 1) gravar o .md completo na pasta da feature; 2) só então criar ou editar arquivos de teste, produção ou refatoração.
  • Proibido na mesma corrida do agente: alterar código de produto, testes ou refatorar antes de o artefato correspondente existir gravado. Exceção: leitura e análise para escrever o plano.
  • Se o plano ficar desatualizado durante a execução: atualizar o .md primeiro, depois o código.
  • AVALIACAO.md só conta como entregue quando estiver no disco com todos os pontos; resumo no chat não substitui.

Regra de ouro, aprovação humana: ao final de cada etapa, a sessão entrega os artefatos (resumo + caminhos), para e não invoca o próximo agente até o usuário aprovar explicitamente ("pode continuar", "aprovado") ou pedir ajustes. Ajustes são feitos dentro da mesma etapa, e só depois se pede aprovação de novo.

Artefatos por etapa

Etapa Agente Artefato Ordem de trabalho
1 figoso LAYOUT_SPEC.md Único entregável: layout + estrutura de componentes. → Gate
2a testivos TESTS.md (árvore) Só o plano, no formato árvore abaixo. Nenhum .spec/.test nesta invocação. → Gate
2b testivos arquivos de teste Nova invocação: traduz a árvore para Vitest/RSpec. A suíte fica vermelha: sem código de produto nem atalho para verde. → Gate
3 devoso DEV.md → código Grava DEV.md com base nos testes, depois implementa até ficarem verdes, sem alterar testes. → Gate
4 refoso REFACTOR.md → refatoração Com a suíte verde, grava REFACTOR.md (regras do projeto, código morto, defesas redundantes, front × API), depois aplica. Sem nada a fazer: "N/A" com o motivo. → Gate
5 avaliason AVALIACAO.md Analisa o diff e grava todos os pontos (severidade, arquivo, sugestão) para o devoso corrigir. → Gate antes de nova rodada do devoso

Read the full file on GitHub · 103 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. 22d ago First seen · 103 lines · 120 tokens per session scan A 3ca017b908f4

Subscribe to this mod's changes

tdd is a skill published in the GitHub repository VictorCostaOliveira/agents-tdd-flow (2 stars, last pushed 22d ago), licensed MIT. It adds 120 tokens to every session and 1,834 once invoked, about $0.0005 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-11-13.

Related

tdd compared with skills from other repositories

tdd next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tddVictorCostaOliveira/agents-tdd-flowSkill222d agoMITA120Claude Code
engram-testing-coverageGentleman-Programming/engramSkill8.4k11d agoMITA25Claude Code, Codex
iterative-developmentalinaqi/maggySkill7128d agoMITA24Claude Code
tddglebis/claude-skillsSkill419yesterdayMITA92Claude Code
mobiai-mobile-tddArisGuimera/MobiAI-CoreSkill4965d agoMITA38Claude Code
nw-leanux-methodologynWave-ai/nWaveSkill63816d agoMITA37Claude Code
nw-ddd-eventsourcingnWave-ai/nWaveSkill63816d agoMITA38Claude Code