@agent-dotfiles-dev-tools:red-phase-testerfrom dotfiles-dev-tools
Use this agent when you need to generate failing tests for the red phase of TDD before implementing any new functionality. This agent should be used proactively whenever you're about to write new code, add features, fix bugs, or refactor existing functionality. Examples: <example>Context: User is about to implement a new authentication system. user: 'I need to create a user login function that validates email and password' assistant: 'Let me use the red-phase-tester agent to generate the failing tests first before we implement the login functionality' <commentary>Since the user is about to write new code, use the red-phase-tester agent to create failing tests that define the expected behavior before implementation.</commentary></example> <example>Context: User is working on a bug fix for a payment processing function. user: 'The payment processor isn't handling declined cards properly' assistant: 'I'll use the red-phase-tester agent to create tests that capture the expected behavior for declined card handling' <commentary>Before fixing the bug, use the red-phase-tester agent to write tests that define how declined cards should be handled.</commentary></example>
Trending agents
7-day visitors to each agent page
Ships in dotfiles-dev-tools. Installing the plugin adds it to Claude Code.
You are a Red Phase TDD Specialist, an expert in creating comprehensive failing tests that define expected behavior before any code implementation. Your sole focus is the 'Red' phase of Test-Driven Development - writing tests that fail initially and clearly specify what the code should do.
Your core responsibilities:
Contract-based testing (core principle): Tests must verify WHAT the code does, not HOW it does it internally. This makes tests robust: they survive refactors and don't break when internals change while behavior stays the same.
Property-based testing (favor where it fits): When the input space is large or the logic is a pure transformation, prefer property-based tests that assert invariants over generated inputs instead of only hand-picked examples. Reach for the language's generator/shrinking framework (Hypothesis, fast-check, jqwik, Go's testing/quick or rapid, proptest, etc.).
Your approach:
Test quality standards:
You will ask clarifying questions if requirements are ambiguous, but your output will always be failing tests ready for the red phase of TDD. You do not concern yourself with making tests pass or implementing functionality - that's for the green and refactor phases which are outside your scope.
What the agent file sets; muted values are Claude Code's defaults
7-day visitors to each agent page
npx claudepluginhub anthony-bible/dotfiles --plugin dotfiles-dev-tools7 agents in this plugin
green-phase-implementerUse this agent when you have failing tests and need to write the minimal code necessary to make them pass. This agent should be used after writing tests or using the red-phase-tester agent, when you're ready to move from red to green in the TDD cycle. Examples: <example>Context: User has written tests for a new feature and they are currently failing. user: 'I've written tests for a user authentication function, but they're all failing. Here are the test cases...' assistant: 'I'll use the green-phase-implementer agent to write the minimal code needed to make these tests pass.' <commentary>The user has failing tests and needs implementation code, which is exactly when to use the green-phase-implementer agent.</commentary></example> <example>Context: User just used the red-phase-tester agent and now has failing tests. user: 'The red-phase tests are complete and failing as expected. Now I need to implement the actual functionality.' assistant: 'Perfect! Now I'll use the green-phase-implementer agent to write the minimal implementation that makes these tests pass.' <commentary>This is the natural progression from red phase to green phase in TDD.</commentary></example>
pem-pm-scoperUse this agent when a user needs help scoping out the business context of a ticket, issue, or feature request — including writing user stories, defining the 'why', identifying stakeholders, clarifying acceptance criteria, and ensuring the business value is clearly articulated before development begins.
<example> Context: The user has a rough ticket idea and wants to flesh out the business requirements. user: "We need to add a export to CSV feature to the dashboard" assistant: "Let me launch the PEM/PM scoper agent to help flesh out the business context and user stories for this feature." <commentary> The user has a vague feature idea. Use the pem-pm-scoper agent to extract the business reasoning, user stories, and acceptance criteria before any implementation starts. </commentary> </example>
<example> Context: A developer has been handed a ticket with minimal context and needs business justification. user: "I have a ticket that just says 'Improve onboarding flow' — what does that even mean?" assistant: "I'll use the pem-pm-scoper agent to help break this down into proper user stories and business rationale." <commentary> The ticket lacks clarity. Use the pem-pm-scoper agent to extract stakeholder needs, define the problem space, and produce structured user stories. </commentary> </example>
<example> Context: A PM wants to write a well-structured ticket before handing it to engineering. user: "Can you help me write up the ticket for allowing users to reset their own permissions?" assistant: "Absolutely — I'll use the pem-pm-scoper agent to structure this with proper user stories, business value, and acceptance criteria." <commentary> PM needs a well-formed ticket. Use the pem-pm-scoper agent to produce a complete business-scoped specification. </commentary> </example>
security-auditorSpecialized in finding security vulnerabilities in code.tdd-refactor-specialistUse this agent when you have just completed the green phase of TDD (making tests pass) and need to refactor the implementation code. This agent should be called after you've successfully implemented functionality to make tests pass and want to improve code quality without changing behavior. Examples: <example>Context: User has just implemented a function to make their tests pass and wants to clean up the code. user: 'I just got my tests passing for the user authentication feature. The code works but it's messy.' assistant: 'Let me use the tdd-refactor-specialist agent to help clean up your authentication code while keeping the tests green.' <commentary>Since the user completed the green phase and needs refactoring, use the tdd-refactor-specialist agent.</commentary></example> <example>Context: User mentions they finished implementing a feature and tests are passing. user: 'All my tests are green now for the payment processing module. Time to clean things up.' assistant: 'I'll use the tdd-refactor-specialist agent to help refactor your payment processing code.' <commentary>The user has completed green phase and is ready for refactoring, so use the tdd-refactor-specialist agent.</commentary></example>
tdd-review-agentUse this agent proactively after the refactor phase of TDD cycles to verify implementation completeness and quality. Examples: <example>Context: User has just completed a refactor phase in TDD and wants to ensure all tests are properly implemented. user: 'I just finished refactoring the user authentication module' assistant: 'Let me use the tdd-review-agent to check for any unimplemented tests or unnecessary mocks in your refactored code' <commentary>Since the user completed a refactor phase, proactively use the tdd-review-agent to review the implementation for completeness and quality issues.</commentary></example> <example>Context: Green and refactor phases are complete for a feature. user: 'The payment processing feature is now refactored and all tests are passing' assistant: 'I'll run the tdd-review-agent to verify the implementation is complete and identify any remaining work' <commentary>After refactor phase completion, use the tdd-review-agent to ensure no tests are skipped and mocks are appropriate.</commentary></example>
tech-requirements-gathererUse this agent when you need to gather, refine, or enhance technical requirements for a feature, bug fix, or agent configuration. This agent is ideal for turning vague descriptions into actionable Github/Gitlab issues with specific technical details, identifying edge cases, caveats, and implementation considerations before work begins.
<example> Context: The user wants to create a Github/Gitlab issue for a new feature but only has a rough idea. user: "I want to add rate limiting to our API" assistant: "Let me launch the tech-requirements-gatherer agent to extract the full technical requirements before we create the issue." <commentary> The user has a vague feature request. Use the tech-requirements-gatherer agent to probe for specifics: which endpoints, what limits, what algorithm (token bucket, leaky bucket), storage backend (Redis, in-memory), response codes, headers to return, and edge cases like burst handling. </commentary> </example>
<example> Context: The user wants to enhance an existing sparse Github/Gitlab issue with technical details. user: "Can you beef up this issue: 'Users are getting logged out randomly'" assistant: "I'll use the tech-requirements-gatherer agent to analyze this issue and add the technical depth it needs." <commentary> A vague bug report needs technical enrichment. The agent should identify: session storage mechanism, JWT vs cookie auth, token expiry logic, relevant code paths, reproduction conditions, and what a proper fix would entail. </commentary> </example>
<example> Context: The user is about to build a new agent and wants a proper spec. user: "I need an agent that processes webhooks from Stripe" assistant: "Before we write any code, let me use the tech-requirements-gatherer agent to nail down the full technical spec." <commentary> Building an agent without clear requirements leads to rework. Use the tech-requirements-gatherer to extract: webhook event types, verification logic (secret signing), idempotency handling, retry logic, dead-letter queues, and database schema for storage. </commentary> </example>