TD

tdd-workflows-tdd-green

Enforces the TDD 'Green' phase by implementing the minimum required code to satisfy failing tests.

Install

mkdir -p .claude/skills/tdd-workflows-tdd-green && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/2637" && unzip -o skill.zip -d .claude/skills/tdd-workflows-tdd-green && rm skill.zip

Installs to .claude/skills/tdd-workflows-tdd-green

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Implement the minimal code needed to make failing tests pass in the TDD green phase.
84 charsno explicit “when” trigger
Beginner

Key capabilities

  • Maps failing tests to the smallest code change
  • Applies minimal implementation to pass green-phase tests
  • Tracks technical debt during implementation cycles
  • Enforces scoped changes to prevent over-engineering

How it works

Executes a iterative loop identifying the smallest modification required to transition a test status from fail to pass.

Inputs & outputs

You give it
Failing test output/logs
You get back
Minimal code snippet to pass tests

When to use tdd-workflows-tdd-green

  • Pass failing tests in TDD
  • Implement minimal feature logic
  • Follow TDD green phase cycles
  • Maintain simple implementation code

About this skill

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'


### Express Patterns

**Inline → Middleware → Service Layer:**
```javascript
// 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)
);

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.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.

When not to use it

  • Refactoring existing architecture
  • Implementing non-testable feature requirements
  • Complex performance optimization tasks

Prerequisites

Existing test suite

Limitations

  • Scope is limited to immediate test failures
  • Does not address overall code design patterns
  • Requires well-maintained test coverage to be effective

How it compares

Focuses exclusively on the 'green' phase of TDD rather than general coding assistance or refactoring.

Compared to similar skills

tdd-workflows-tdd-green side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
tdd-workflows-tdd-green (this skill)24moNo flagsBeginner
tdd-workflow64moReviewIntermediate
qlty-check57moReviewBeginner
superpowers-tdd56moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

mobile-design

sickn33

Mobile-first design and engineering doctrine for iOS and Android apps. Covers touch interaction, performance, platform conventions, offline behavior, and mobile-specific decision-making. Teaches principles and constraints, not fixed layouts. Use for React Native, Flutter, or native mobile apps.

149231

unity-developer

sickn33

Build Unity games with optimized C# scripts, efficient rendering, and proper asset management. Masters Unity 6 LTS, URP/HDRP pipelines, and cross-platform deployment. Handles gameplay systems, UI implementation, and platform optimization. Use PROACTIVELY for Unity performance issues, game mechanics, or cross-platform builds.

142357

architect-review

sickn33

Master software architect specializing in modern architecture patterns, clean architecture, microservices, event-driven systems, and DDD. Reviews system designs and code changes for architectural integrity, scalability, and maintainability. Use PROACTIVELY for architectural decisions.

109320

angular

sickn33

Modern Angular (v20+) expert with deep knowledge of Signals, Standalone Components, Zoneless applications, SSR/Hydration, and reactive patterns. Use PROACTIVELY for Angular development, component architecture, state management, performance optimization, and migration to modern patterns.

100129

frontend-slides

sickn33

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.

95195

minecraft-bukkit-pro

sickn33

Master Minecraft server plugin development with Bukkit, Spigot, and Paper APIs. Specializes in event-driven architecture, command systems, world manipulation, player management, and performance optimization. Use PROACTIVELY for plugin architecture, gameplay mechanics, server-side features, or cross-version compatibility.

9078

Search skills

Search the agent skills registry