Shelpuk & Company
    Open Source
    AI Coding Skill

    TDD for AI Agents

    Reusable test-driven development workflow for AI coding agents

    The always-on skill that enforces strict TDD discipline, requirements documentation, and tiny test-verified steps — the orchestrator that makes Kindly Web Search and Lad Code Review work together as a unified AI coding suite.

    View on GitHub

    "Fantastic setup. Improved my Claude Code generation quality by 15–20% for our company’s commercial projects."

    Ostap Dribniuk
    Ostap DribniukSenior Software Engineer at Relevant Software

    Part of Our AI Coding Suite

    TDD for AI Agents orchestrates our complete open-source toolkit. It calls Kindly to verify assumptions and Lad to review designs and code — ensuring all three tools work together seamlessly.

    REQUIREMENTS.md

    Every task begins with a structured requirements document. This eliminates ambiguity and gives the AI agent a clear, testable contract to work against.

    1As Is

    Current behavior and state — what exists today before any changes.

    2To Be

    Desired behavior after the change — the clear target state.

    3Requirements

    Numbered functional requirements with explicit acceptance criteria.

    4Testing Plan

    Test strategy and cases following TDD best practices.

    5Implementation Plan

    Smallest sequential changes, each with its own test verification.

    6System Design Review

    Reviewed by Lad Code Review before implementation begins.

    Workflow

    A strict six-step process that turns vague requirements into production-ready, tested code.

    1.Investigate

    Inspect repository structure, code paths, current behavior, and existing tests. Run minimal commands to confirm the current state.

    2.Clarify & Write Requirements

    Ask clarifying questions, propose testable requirements, get user confirmation, then write REQUIREMENTS.md with the full mandated structure.

    3.Validate Assumptions

    Use Kindly Web Search to verify API signatures, version behavior, breaking changes, and deprecations. Update requirements if assumptions change.

    4.Design Review with Lad

    Submit the system design in REQUIREMENTS.md to Lad's system_design_review tool. Iterate until feedback converges.

    5.Implement with TDD

    Follow the Implementation Plan in order. Write tests first, implement features second, verify tests pass. Keep diffs minimal and focused.

    6.Code Review & Verify

    Use Lad's code_review tool after each change. Implement worthy suggestions. Iterate until Lad stops providing new feedback.

    Non-Negotiables

    These rules are always enforced. No shortcuts, no exceptions — unless the user explicitly opts out.

    Investigate before changing anything — understand state, logs, and user input first
    No requirement changes without explicit confirmation from the user
    Write REQUIREMENTS.md before any implementation starts
    Use Kindly Web Search to verify all API and dependency assumptions
    Implement in the smallest possible steps, each tested before proceeding
    Review every code change with Lad Code Review before moving on

    One Suite, Three Tools

    TDD for AI Agents is the orchestrator that ties our open-source AI coding tools into a complete development workflow. Each tool has a specific role.

    Supported AI Coding Assistants

    Codex (OpenAI)
    Claude Code
    Gemini CLI
    Cursor
    Windsurf
    Antigravity (Google IDE)

    Ready to bring TDD discipline to your AI coding workflow?

    Deploy the full suite in your private cloud or hire the engineers who built it.

    Star on GitHub

    Frequently Asked Questions

    Answers to common questions about this topic.

    How can we enforce test-first discipline for AI coding agents?

    Test-driven development orchestrator for AI coding agents. Ensure AI-generated code is tested, reliable, and production-ready. Shelpuk AI Technology Consulting created this skill to make agent-driven development auditable, testable, and repeatable in real delivery settings.

    How does the workflow improve requirement quality and implementation traceability?

    The workflow enforces investigation, explicit requirements documentation, tests-first implementation, and iterative review loops before broad code changes. Shelpuk AI Technology Consulting helps engineering leaders connect process rigor with faster and safer AI-assisted execution.

    How should teams adopt the TDD Skill across multiple repositories and agent clients?

    A practical adoption model starts with pilot repositories, shared templates, and policy checks that standardize behavior across agent clients. Shelpuk AI Technology Consulting supports cross-repository adoption with implementation playbooks, enablement sessions, and governance patterns.

    What investment is typically required to operationalize this open-source skill in production teams?

    The skill is open source, and most budget is directed to rollout coaching, repository integration, and measurement of engineering impact. Shelpuk AI Technology Consulting offers services to turn this methodology into a durable operating model for enterprise engineering organizations.