Tdd Red

🌐Community
by swiftyjunnos · vlatest · Repository

Tdd Red automatically generates test cases based on code changes, ensuring rapid regression testing and improved software quality.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add tdd-red npx -- -y @trustedskills/tdd-red
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "tdd-red": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/tdd-red"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

The tdd-red skill enables AI agents to generate failing test cases (red) as a first step in Test Driven Development (TDD). It focuses on defining the expected behavior through tests before any code is written. This allows for a more structured and deliberate approach to software development, ensuring that functionality meets requirements from the outset.

When to use it

  • New Feature Implementation: Use when starting work on a new feature where clear test cases are needed upfront.
  • Refactoring Existing Code: Generate failing tests before refactoring to ensure existing functionality isn't broken.
  • Behavior-Driven Development (BDD): Generate initial failing tests based on user stories or acceptance criteria.
  • Exploring Requirements: Use to clarify and solidify requirements by translating them into concrete testable assertions.

Key capabilities

  • Generates failing test cases ("red" phase of TDD)
  • Focuses on defining expected behavior through tests
  • Supports Test Driven Development (TDD) workflow

Example prompts

  • “Generate a failing test for a function that calculates the sum of two numbers.”
  • “Write a red test case for an API endpoint that returns user data.”
  • "Create a failing test based on this user story: 'As a user, I want to be able to log in with my email and password.'"

Tips & gotchas

  • The skill currently only generates the "red" phase of TDD. You'll need other skills or manual effort for the "green" (implementation) and "refactor" phases.
  • Provide clear and specific requirements or user stories to get the most effective test cases.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
swiftyjunnos
Installs
1

🌐 Community

Passed automated security scans.