tdd-pipeline

Automate the end-to-end TDD workflow from spec to implementation.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Elijah-J/InfoScraper --skill tdd-pipeline
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-pipeline
Source: https://github.com/Elijah-J/InfoScraper/tree/main/.agents/skills/tdd-pipeline
Command: npx skills add https://github.com/Elijah-J/InfoScraper --skill tdd-pipeline

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates end-to-end TDD workflows for new or modified modules, ensuring specs, durable behavior catalogs, tests, and implementation align before commit.

Core Features & Use Cases

  • Spec HITL gate to validate behavior contracts before automation proceeds.
  • Enumerate durable behavior catalogs under docs/behavior-catalogs for traceability.
  • Generate tests via unit-test-gen and preserve behavior IDs in a living catalog.
  • Implement the smallest code slice that satisfies the approved spec and verify with pytest/ruff.
  • Audit and commit with /spec-coverage-audit and related verification steps.

Quick Start

Provide the module or feature name to begin the pipeline, e.g., /tdd-pipeline my-module.

Frequently Asked Questions about tdd-pipeline

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

FAQPage Schema
How do I automate an end-to-end TDD workflow from spec to implementation?

Automating an end-to-end TDD workflow involves orchestrating spec validation, behavior catalog enumeration, test generation, and aligned code implementation. This pipeline automates those steps sequentially, applying a human-in-the-loop gate to validate behavior contracts before proceeding to code generation and commit.

What's the best way to maintain durable behavior catalogs for test-driven development?

Durable behavior catalogs for TDD are maintained by enumerating behaviors into a structured directory like docs/behavior-catalogs. This pipeline automates the generation and preservation of these catalogs, ensuring traceability between formal specs, generated tests, and behavior IDs throughout the module lifecycle.

How do I implement the smallest code slice that satisfies a formal spec?

Implementing the smallest code slice that satisfies a formal spec requires generating targeted unit tests first, then writing the minimal code to pass them. This pipeline orchestrates that flow, verifying the smallest implementation slice against the approved spec using pytest and ruff before auditing coverage.

Does this TDD pipeline require specific directory structures for specs and behavior catalogs?

Yes, this TDD pipeline requires specific directory structures, specifically docs/specs for formal specifications and docs/behavior-catalogs for durable behavior traceability. These directories ensure the automated workflow can correctly route specifications, enumerate behaviors, and maintain alignment before the final commit.

Can I use a human-in-the-loop gate to validate behavior contracts before test generation?

Yes, you can use a human-in-the-loop gate to validate behavior contracts before test generation. This pipeline explicitly includes a spec HITL gate, allowing developers to review and approve the formal specs and behavior contracts before automating unit test generation and code implementation.

Why do I need child skills like unit-test-gen and spec-coverage-audit for TDD?

Child skills like unit-test-gen and spec-coverage-audit are needed for TDD to handle specialized sub-tasks within the pipeline. unit-test-gen handles automated test creation from specs, while spec-coverage-audit verifies that the smallest code slice and generated tests fully align with the approved behavior contracts before committing.