agent-tdd-guide

Enforces test-driven development with Red-Green-Refactor cycles and 80% coverage requirements.

5|15|Updated Jul 8, 2026
One-click install
npx skills add https://github.com/clfigueiredo/hermes-infra-skills --skill agent-tdd-guide-clfigueiredo
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: agent-tdd-guide
Source: https://github.com/clfigueiredo/hermes-infra-skills/tree/main/.hermes/skills/curso-hermes/agent-tdd-guide
Command: npx skills add https://github.com/clfigueiredo/hermes-infra-skills --skill agent-tdd-guide-clfigueiredo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? It prevents untested code from shipping by enforcing a write-tests-first methodology, ensuring every feature, bug fix, or refactor is backed by unit, integration, and E2E tests with at least 80% coverage. ## Core Features & Use Cases - Red-Green-Refactor Workflow: Guides you through writing a failing test first, implementing the minimal passing code, then refactoring while keeping tests green. - Edge Case Enforcement: Requires tests for null inputs, empty values, boundary conditions, error paths, race conditions, and large datasets. - Coverage Verification: Checks that branches, functions, lines, and statements all meet the 80% threshold, plus eval-driven pass@1/pass@3 reporting for release-critical paths. - Use Case: When adding a new API endpoint, invoke this skill to generate the failing integration test first, implement the handler, and verify coverage before merging. ## Quick Start Ask the agent to apply the tdd-guide workflow to write tests first for the new feature or bug fix you are about to implement.

Frequently Asked Questions about agent-tdd-guide

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I apply test-driven development to a new feature?▼

Write a failing test describing the expected behavior first, run it to confirm it fails, then write the minimal implementation to make it pass. Finally refactor while keeping tests green and verify coverage reaches 80%.

What is the Red-Green-Refactor cycle in TDD?▼

Red means writing a failing test, Green means writing the minimal code to pass it, and Refactor means improving names and removing duplication while tests stay green. This skill walks you through each phase with verification commands.

What test coverage percentage does TDD require?▼

This workflow requires 80% or higher coverage across branches, functions, lines, and statements, verified with a coverage command such as npm run test:coverage. Release-critical paths additionally target pass^3 eval stability before merge.

Which edge cases should unit tests always cover?▼

Tests must cover null and undefined inputs, empty arrays and strings, invalid types, boundary values, error paths like network failures, race conditions, large datasets, and special characters including Unicode and SQL characters.

What are common TDD anti-patterns to avoid?▼

Avoid testing internal implementation details instead of behavior, tests that depend on shared state, weak assertions that verify nothing, and failing to mock external dependencies like databases, Redis, or third-party APIs.