MR
Mayur Rathi
@mayurrathi
⭐ 40.7k GitHub stars

Tdd Workflows Tdd Green

Tdd Workflows Tdd Green is an code AI skill with a core value of Implement the minimal code needed to make failing tests pass in the TDD green phase. It helps developers solve real-world problems in the code domain, boosting efficiency, automating repetitive tasks, and optimizing workflows.

Implement the minimal code needed to make failing tests pass in the TDD green phase.

Last verified on: 2026-07-07

Quick Facts

Category code
Works With Claude
Source sickn33/antigravity-awesome-skills
Stars ⭐ 40.7k
Last Verified 2026-07-07
Risk Level Low
mkdir -p ./skills/tdd-workflows-tdd-green && curl -sfL https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/main/skills/tdd-workflows-tdd-green/SKILL.md -o ./skills/tdd-workflows-tdd-green/SKILL.md

Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).

Skill Content

# Green Phase: Simple function

def product_list(request):

products = Product.objects.all()

return JsonResponse({'products': list(products.values())})


# Refactor: Class-based view

class ProductListView(View):

def get(self, request):

products = Product.objects.all()

return JsonResponse({'products': list(products.values())})


# Refactor: Generic view

class ProductListView(ListView):

model = Product

context_object_name = 'products'

text

### Express Patterns

**Inline → Middleware → Service Layer:**

// Green Phase: Inline logic

app.post('/api/users', (req, res) => {

const user = { id: Date.now(), ...req.body };

users.push(user);

res.json(user);

});


// Refactor: Extract middleware

app.post('/api/users', validateUser, (req, res) => {

const user = userService.create(req.body);

res.json(user);

});


// Refactor: Full layering

app.post('/api/users',

validateUser,

asyncHandler(userController.create)

);

text

## Use this skill when

- Moving from red to green in a TDD cycle
- Implementing minimal behavior to satisfy tests
- You want to keep implementation intentionally simple

## Do not use this skill when

- You are refactoring for design or performance
- Tests are already passing and you need new requirements
- You need a full architectural redesign

## Instructions

1. Review failing tests and identify the smallest fix.
2. Implement the minimal change to pass the next test.
3. Run tests after each change to confirm progress.
4. Record shortcuts or debt for the refactor phase.

## Safety

- Avoid bypassing tests to make them pass.
- Keep changes scoped to the failing behavior only.

## Resources

- `resources/implementation-playbook.md` for detailed patterns and examples.

🎯 Best For

  • QA engineers
  • Developers writing unit tests
  • Claude users
  • Software engineers
  • Development teams

💡 Use Cases

  • Generating test cases for edge conditions
  • Writing integration test suites
  • Code quality improvement
  • Best practice enforcement

📖 How to Use This Skill

  1. 1

    Install the Skill

    Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.

  2. 2

    Load into Your AI Assistant

    Open Claude and reference the skill. Paste the SKILL.md content or use the system prompt tab.

  3. 3

    Apply Tdd Workflows Tdd Green to Your Work

    Open your project in the AI assistant and ask it to apply the skill. Start with a small module to verify the output quality.

  4. 4

    Review and Refine

    Review AI suggestions before committing. Run tests, check for regressions, and iterate on the skill output.

❓ Frequently Asked Questions

Does this generate test mocks?

Many testing skills include mock generation. Check the install command and skill content for details.

Is Tdd Workflows Tdd Green compatible with Cursor and VS Code?

Yes — this skill works with any AI coding assistant including Cursor, VS Code with Copilot, and JetBrains IDEs.

Do I need specific dependencies for Tdd Workflows Tdd Green?

Check the install command and Works With section. Most code skills only require the AI assistant and your codebase.

How do I install Tdd Workflows Tdd Green?

Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/tdd-workflows-tdd-green/SKILL.md, ready to use.

Can I customize this skill for my team?

Absolutely. Edit the SKILL.md file to add team-specific instructions, examples, or workflows.

⚠️ Common Mistakes to Avoid

Not testing edge cases

AI tends to generate happy-path tests. Manually review for boundary conditions.

Skipping validation

Always test AI-generated code changes, even for simple refactors.

Missing dependency updates

Check if the skill requires updated dependencies or new packages.

🔗 Related Skills