/ Diretório / Playground / agent-skill-tdd
● Comunidade Shelpuk-AI-Technology-Consulting ⚡ Instantâneo

agent-skill-tdd

por Shelpuk-AI-Technology-Consulting · Shelpuk-AI-Technology-Consulting/agent-skill-tdd

Six-step workflow that forces AI coding agents into requirements-first, test-first discipline — Serena + requirements docs + Lad MCP design review + TDD + peer review.

A discipline skill for coding agents. Activates Serena for semantic code navigation, forces investigation before changes, demands explicit requirements confirmation, writes timestamped .requirements/ docs with As-Is/To-Be/Acceptance, validates architecture via Lad MCP Server, then runs strict TDD with per-change peer review. Claims 15–20% quality uplift. Works with Claude Code, Codex, Cursor, Windsurf, Antigravity.

Por que usar

Principais recursos

Demo ao vivo

Como fica na prática

agent-skill-tdd-skill.replay ▶ pronto
0/0

Instalar

Escolha seu cliente

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "agent-skill-tdd-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/Shelpuk-AI-Technology-Consulting/agent-skill-tdd",
        "~/.claude/skills/agent-skill-tdd"
      ],
      "_inferred": true
    }
  }
}

Abra Claude Desktop → Settings → Developer → Edit Config. Reinicie após salvar.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "agent-skill-tdd-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/Shelpuk-AI-Technology-Consulting/agent-skill-tdd",
        "~/.claude/skills/agent-skill-tdd"
      ],
      "_inferred": true
    }
  }
}

Cursor usa o mesmo esquema mcpServers que o Claude Desktop. Config de projeto vence a global.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "agent-skill-tdd-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/Shelpuk-AI-Technology-Consulting/agent-skill-tdd",
        "~/.claude/skills/agent-skill-tdd"
      ],
      "_inferred": true
    }
  }
}

Clique no ícone MCP Servers na barra lateral do Cline, depois "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "agent-skill-tdd-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/Shelpuk-AI-Technology-Consulting/agent-skill-tdd",
        "~/.claude/skills/agent-skill-tdd"
      ],
      "_inferred": true
    }
  }
}

Mesmo formato do Claude Desktop. Reinicie o Windsurf para aplicar.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "agent-skill-tdd-skill",
      "command": "git",
      "args": [
        "clone",
        "https://github.com/Shelpuk-AI-Technology-Consulting/agent-skill-tdd",
        "~/.claude/skills/agent-skill-tdd"
      ]
    }
  ]
}

O Continue usa um array de objetos de servidor em vez de um map.

~/.config/zed/settings.json
{
  "context_servers": {
    "agent-skill-tdd-skill": {
      "command": {
        "path": "git",
        "args": [
          "clone",
          "https://github.com/Shelpuk-AI-Technology-Consulting/agent-skill-tdd",
          "~/.claude/skills/agent-skill-tdd"
        ]
      }
    }
  }
}

Adicione em context_servers. Zed recarrega automaticamente ao salvar.

claude mcp add agent-skill-tdd-skill -- git clone https://github.com/Shelpuk-AI-Technology-Consulting/agent-skill-tdd ~/.claude/skills/agent-skill-tdd

Uma linha só. Verifique com claude mcp list. Remova com claude mcp remove.

Casos de uso

Usos do mundo real: agent-skill-tdd

Implement a new feature with full TDD discipline

👤 Teams where AI coders jump to implementation and miss requirements ⏱ ~120 min intermediate

Quando usar: Non-trivial feature where 'just write it' has burned you before.

Pré-requisitos
  • Skill cloned — git clone https://github.com/Shelpuk-AI-Technology-Consulting/agent-skill-tdd ~/.claude/skills/agent-skill-tdd
  • Serena available — Install Serena MCP server
  • Lad MCP for design review — Install Lad MCP server
Fluxo
  1. Kick off with the skill
    Use agent-skill-tdd. I want to add a 'saved searches' feature. Start from step 1 — activate Serena and investigate.✓ Copiado
    → Claude reads code, summarizes current state
  2. Clarify requirements
    Confirm what I just said maps to these acceptance criteria — don't code yet.✓ Copiado
    → Back-and-forth until confirmed; .requirements/ file saved
  3. Design review via Lad
    Run design review — architecture fit, hotspots.✓ Copiado
    → Design critique, not just approval
  4. TDD loop
    Now begin TDD — write a failing test, minimum code to pass, refactor. Peer review each step.✓ Copiado
    → Red-green-refactor cycles, each reviewed

Resultado: Feature shipped with tests, requirements history, and design rationale preserved.

Armadilhas
  • Skipping clarify to 'save time' — That's where most AI coding value is lost — hold the line
Combine com: filesystem · github

Fix a bug after writing down what correct behavior should be

👤 Devs tired of AI 'fixes' that break other paths ⏱ ~60 min intermediate

Quando usar: A subtle bug where the reproduction is half the battle.

Fluxo
  1. Investigate + document
    Use agent-skill-tdd bug mode. Symptom: <description>. Write the reproduction + expected behavior to .requirements/ first.✓ Copiado
    → Timestamped doc with As-Is and To-Be
  2. Write failing test
    Test that expresses the expected behavior — currently failing.✓ Copiado
    → Red test
  3. Fix + peer review
    Minimum fix to go green. Peer review.✓ Copiado
    → Green + review notes

Resultado: A bug fix with a test preventing regression.

Stop before implementing — validate you understand the spec

👤 Teams where spec-misreading causes rework ⏱ ~30 min beginner

Quando usar: The ticket is ambiguous and you suspect you're about to build the wrong thing.

Fluxo
  1. Only run steps 1–4
    Use agent-skill-tdd — investigate + clarify + document + design review. Stop before coding.✓ Copiado
    → Requirements doc + design review without touching code

Resultado: You either discover you misread the ticket or greenlight with confidence.

Combinações

Combine com outros MCPs para 10× de alavancagem

agent-skill-tdd-skill + filesystem

Keep .requirements/ in the repo for future agents to read

Commit .requirements/ to git so the next session has context.✓ Copiado
agent-skill-tdd-skill + github

Link requirements doc in the PR description

When opening the PR, paste the .requirements/ file path in the description.✓ Copiado

Ferramentas

O que este MCP expõe

FerramentaEntradasQuando chamarCusto
activate_serena repo path Step 1 0 — local
investigate task description Step 2 0
clarify task, user answers Step 3 0
document_requirements confirmed requirements Step 4 0
design_review requirements + repo Step 5 0
tdd_cycle requirements Step 6 0

Custo e limites

O que custa rodar

Cota de API
None from the skill; Serena and Lad have their own footprints
Tokens por chamada
Moderate — each step is a round trip
Monetário
Free
Dica
Full 6-step is overkill for trivial tasks — run steps 1–4 only on small work

Segurança

Permissões, segredos, alcance

Armazenamento de credenciais: None
Saída de dados: Only via Serena/Lad if configured

Solução de problemas

Erros comuns e correções

Serena not available

Install the Serena MCP server and register it with your agent

Requirements doc not created

Ensure filesystem write access to .requirements/

Verificar: ls .requirements/
Design review step feels rubber-stamp

Force an adversarial framing: 'what's the strongest objection to this design?'

Alternativas

agent-skill-tdd vs. outros

AlternativaQuando usarTroca
claude-gpt-workflowYou want cross-model review instead of self-TDD disciplineHigher API cost
planning-with-files-skillYou want persistence across sessions but less TDD rigorNo test-first enforcement

Mais

Recursos

📖 Leia o README oficial no GitHub

🐙 Ver issues abertas

🔍 Ver todos os 400+ servidores MCP e Skills