1
    TDD Loop Master

    TDD Loop Master

    by Arnstein Larsen

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

    Updated Jun 2026
    0 installs

    Free

    Included in download

    • Downloadable skill package
    • Instant install

    Sample input

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

    Sample output

    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.

    Use Cases

    • Generate a prioritized test list for new features before writing code.
    • Audit existing tests for tautologies and missing failure modes.
    • Enforce minimum-viable-code patterns to prevent over-engineering.
    • Design testable interfaces using triangulation and fake-it strategies.

    Reviews

    No reviews yet - be the first to share your experience.

    Only users who have downloaded or purchased this skill can leave a review.

    Security Scanned

    Passed automated security review

    Permissions

    No special permissions declared or detected

    Compatible with SKILL.md-compatible agents like Claude Code and Cursor.

    Frequently Asked Questions

    More Premium Skills

    Free