Works with the AI tools you already use

    CClaude CodeCCursorCCodex CLIGGitHub CopilotGGemini CLIVVS CodeWWindsurf+15 more

    TDD Loop Master

    by Arnstein Larsen

    1

    Enforce strict Red-Green-Refactor discipline to build robust, test-driven software with 100% meaningful coverage.

    Free

    0 installsSecurity scanned

    See it in action

    You say

    I need to build a simple password validator in Python using PyTest. Let's start the TDD process.

    Your agent does

    Phase 1: Test List

    1. Empty string returns False (Degenerate)
    2. String < 8 chars returns False (Boundary)
    3. No special char returns False
    4. Valid input returns True

    Step 1: RED

    def test_empty_string_is_invalid():
        assert validate_password("") is False
    

    (Fails: NameError)

    About this skill

    Master the Red-Green-Refactor Cycle

    Most AI agents write code first and tests later, leading to fragile architectures and "tautological" tests that can't actually fail. TDD Loop Master enforces a strict, disciplined Test-Driven Development workflow that ensures your software design is driven by requirements, not implementation details.

    What it does

    This skill guides you through a rigorous TDD cycle for any feature or bug fix. It starts by generating a comprehensive "Test List" from the simplest degenerate cases to complex edge cases. It then methodically steps through the Red-Green-Refactor loop, preventing you from writing a single line of production code until a failing test exists.

    • Strict Red Phase: Generates a specific, failing test case tailored to your stack.
    • Green Phase: Forces the "minimum viable code" to pass the test, preventing over-engineering.
    • Refactor Control: Only allows architectural improvements once the suite is green.
    • Mocking Guardrails: Audits your mocks to ensure they aren't hiding bugs or creating false positives.

    Why use this skill?

    Standard prompting often produces broad code blocks that are hard to debug. This skill break tasks into atomic, verifiable steps. It supports all major frameworks (Jest, PyTest, JUnit, Go Test, etc.) and is ideal for developers who want robust, self-documenting codebases with near-100% meaningful coverage.

    How to install

    Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free forever

    No account required to browse

    Trust & safety

    Security scanned

    Verified clean 1 month ago

    • Free to download with an account

    Listed1 month ago
    Updated1 month ago

    Creator

    Frequently Asked Questions

    Popular in Testing & QA

    Free