More screenshots

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    TDD Loop Master

    1

    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.

    Free

    13 uses5.0 (1 review)
    TDD Loop Master

    TDD Loop Master

    Example session with this skill installed

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

    • Read your context and instructions
    • Compiled the tdd loop master

    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)

    Connects securely to your tools. The creator never sees your data.

    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 breaks 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.

    Next step

    When the tests are green and the feature ships, CI/CD Pipeline Designer (paid) turns that test suite into a pipeline with stage ordering, test parallelization, deploy gates and rollback triggers. It is also included in the Developer & AI Engineering Pack together with five other developer skills.

    • Focuses on unit and integration logic, not E2E visual regression.
    • Requires user to have a local test runner configured.
    • Best for logic-heavy features over pure UI styling.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    Reviews

    5.0
    1 review
    5
    1
    4
    0
    3
    0
    2
    0
    1
    0

    This skill has been used 13 times.

    Trust & safety

    Security scan

    Security scan passed 1 month ago

    • Free with an Agensi account

    Permissions

    Terminal / Shell
    Read Files
    Write Files

    Runs your existing test suite with your own runner (Jest, Vitest, pytest, JUnit, go test) and writes test and source files. Without terminal access it gives you the tests and the command to run.

    Listed4 months ago
    Updated11 days ago

    What's inside

    Frequently Asked Questions

    Unlike standard agents that write code and tests simultaneously, this skill enforces a strict 'test-first' workflow, preventing the creation of 'tautological' tests that pass by default or hide underlying architectural flaws.

    This skill is language-agnostic and supports all major testing frameworks, including Jest (JavaScript/TS), PyTest (Python), JUnit (Java), Go Test, and more, adapting its output to your specific stack.

    The purchase includes the full TDD Loop Master skill configuration, a set of integration templates for popular IDEs, and a guide on optimizing the Red-Green-Refactor cycle within your existing agent workflow.

    Yes, the skill is designed to work seamlessly with any AI agent that supports custom skill integration or system instruction sets, allowing it to act as a 'quality gate' for your development process.

    The skill is frequently updated to include better mocking strategies, support for emerging frameworks, and optimized logic for handling increasingly complex edge cases in modern software design.

    By forcing 'minimum viable code' to pass failing tests, the skill prevents developers and agents from over-engineering solutions, ensuring the codebase remains lean and strictly aligned with functional requirements.