ag-referencia-tdd

ag-referencia-tdd is a skill for Claude Code from andregusman-raiz/a-gusman-claude. It costs 44 tokens per session (3,293 once invoked), scanned A, original, MIT.

A test-first development guide based on TDD, a method where you write a failing test before writing the code that should make it pass.

In plain words
What is it for?
Use it when building sensitive features or refactoring critical logic with an existing test suite.
Why use it?
It makes the intended behavior explicit and helps catch weak tests before implementation is treated as complete.

Skill for Claude Code

Written for Claude Code: context: fork in frontmatter. Also seen: model in frontmatter; mentions CLAUDE.md.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { calcularJurosCompostos } from '../financeiro/juros'.

Good fit Use it when building sensitive features or refactoring critical logic with an existing test suite.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/andregusman-raiz/a-gusman-claude
agentmods
npx agentmods add skills/andregusman-raiz/a-gusman-claude/ag-referencia-tdd

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 ag-referencia-tdd

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/andregusman-raiz/a-gusman-claude/ag-referencia-tdd"><img src="https://agentmods.dev/badge/skills/andregusman-raiz/a-gusman-claude/ag-referencia-tdd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,293 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 4
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
How audits are shown
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.00044 $0.03293
Opus 5 $0.00022 $0.01647
Sonnet 5 $0.00009 $0.00659
Haiku 4.5 $0.00004 $0.00329

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

Security

Grade A, and why

ag-referencia-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 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.

skills/ag-referencia-tdd/SKILL.md · 319 lines

How it starts

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

TDD Canonico — Red-Green-Refactor

Principio fundamental: escrever o teste que falha ANTES de existir implementacao. O teste define o comportamento desejado; a implementacao e consequencia.

Escopo: compoe com ~/Claude/CLAUDE.md (workspace) e CLAUDE.md local do projeto.

Quando carregar: ao usar /ag-1-construir --tdd, antes de implementar feature em dominio sensivel, ao fazer refactor de logica critica com suite de testes existente.


Pipeline Obrigatorio: 3 Fases por Ciclo

Fase RED — Escrever o teste que falha

  1. Ler a SPEC (ou criterio de aceite) do comportamento desejado
  2. Escrever o(s) teste(s) que cobrem exatamente esse comportamento
  3. Rodar os testes e CONFIRMAR que falham — se passarem sem implementacao, o teste esta errado (assertion fraca ou cobrindo comportamento ja existente)
  4. O erro de falha deve ser o erro esperado (ex: TypeError: func is not defined, nao AssertionError vazio)

Checklist RED:

  • Teste escrito antes de qualquer implementacao nova
  • Rodei os testes e confirmei falha com mensagem de erro coerente
  • O teste cobre o COMPORTAMENTO (entrada → saida esperada), nao a implementacao interna
  • Commit de teste: test: red — <descricao do comportamento>

Fase GREEN — Implementar o minimo para passar

  1. Escrever o codigo mais simples possivel que faz o teste passar
  2. Nao mais que o necessario — resistir a tentacao de generalizar ou otimizar agora
  3. Rodar os testes e confirmar que passam (todos, incluindo os anteriores)
  4. Se quebraram testes anteriores: o design esta errado — corrigir sem alterar os testes

Checklist GREEN:

  • Implementei apenas o necessario para os testes novos passarem
  • Todos os testes anteriores continuam passando (sem regressao)
  • Nao adicionei logica especulativa ("pode ser util depois")
  • Commit de implementacao: feat: green — <descricao do comportamento>

Fase REFACTOR — Melhorar sem quebrar

  1. Com todos os testes verdes, melhorar a qualidade do codigo
  2. Extrair duplicacoes, renomear para clareza, simplificar estrutura
  3. Rodar os testes apos cada mudanca de refactor — qualquer falha = refactor errado, reverter
  4. Nunca refatorar sem suite verde — o risco de introducao silenciosa de bug e alto

Read the full file on GitHub · 319 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. 8d ago First seen · 319 lines · 44 tokens per session scan A acfadf35db60

Subscribe to this mod's changes

ag-referencia-tdd is a skill published in the GitHub repository andregusman-raiz/a-gusman-claude (19 stars, last pushed 3d ago), licensed MIT. It adds 44 tokens to every session and 3,293 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

taiyi-dev

A software-development stage that implements planned tasks using test-driven development, or TDD: write a failing test, make it pass, then improve the code. It checks the task plan, dependencies, file boundaries, and required completion evidence.

Dong90/oh-my-taiyiforge · 21 tokens

figma-to-react-workflow

Orchestrates end-to-end Figma-to-React conversion pipeline with enforced TDD, automated pixel-diff visual QA, E2E testing, and app-type awareness (web apps, Chrome extensions, PWAs). Keywords: Figma to React, design tokens, autonomous component generation, Figma conversion, Tailwind config, component library, TDD…

PMDevSolutions/Aurelius · 0 tokens

tdd-from-figma

Writes failing tests FIRST from Figma structure and the design token lockfile, then implementation makes them pass. Per-component TDD cycle using exact values from design-tokens.lock.json. App-type-aware: generates Chrome extension, PWA, and web app test templates. Keywords: TDD, test-driven development, Figma tests…

PMDevSolutions/Aurelius · 0 tokens

skill-tuning-loop

Empirically test whether a lacquer skill needs an edit by mining real session transcripts for friction, proposing a bounded fix, and validating it against held-out cases before it ships. Use when a skill in core/skills/ or profiles//skills/ keeps getting corrected in practice, when triaging a scheduled tuning-pass PR…

patrickserrano/lacquer · 122 tokens

superplan-tdd

Use when a feature, bugfix, or behavior change has a testable contract and implementation is about to begin.

superplan-md/superplan-plugin · 28 tokens

Test Driven Development

Strict Red-Green-Refactor implementation methodology for high quality, regression-free software.

ankur-gaurav161418/omniforge · 21 tokens