shameless-green

Guide developers through the GREEN phase of TDD to make failing tests pass.

Updated Mar 12, 2019
One-click install
npx skills add https://github.com/gustavofsantos/dot-files --skill shameless-green
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shameless-green
Source: https://github.com/gustavofsantos/dot-files/tree/main/skills/shameless-green
Command: npx skills add https://github.com/gustavofsantos/dot-files --skill shameless-green

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Shameless Green helps developers focus on making tests pass quickly, avoiding premature optimization or architecture decisions, and uses the GREEN phase of TDD to move from red to green with a simple, demonstrable solution.

Core Features & Use Cases

  • Provides a simple, readable implementation that makes tests pass as quickly as possible.
  • Encourages postponing refactor and cleanup until the code is green.
  • Use Case: when you're stuck designing structure before any tests pass, apply Shameless Green to get a working baseline you can iterate on.

Quick Start

Explain the simplest implementation that makes the failing tests pass.

Frequently Asked Questions about shameless-green

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is shameless green in TDD and when should I use it?

Apply shameless green when you have a failing test in TDD and need a fast, verifiable result without premature design decisions. It provides a minimal, working implementation to establish a baseline you can iterate on.

How do I write the simplest implementation to make a failing test pass?

To make a failing test pass, write a simple, readable implementation that prioritizes clarity over cleverness. You can allow temporary duplication and should defer any refactoring or cleanup until after the code is green.

Should I refactor code during the TDD green phase or wait until tests pass?

You should wait to refactor until after tests pass. The green phase prioritizes getting a working, demonstrable solution quickly, deliberately postponing cleanup and structural optimization until the code is green.

Can I use shameless green if I am stuck designing code structure before tests pass?

Yes, if you are stuck designing structure before tests pass, shameless green helps you move from red to green with a simple solution. It establishes a working baseline you can safely iterate and refactor on later.

Does the minimal implementation approach allow temporary code duplication?

Yes, the minimal implementation approach explicitly allows temporary duplication to make tests pass quickly. It enforces clarity over cleverness so you can defer refactoring until after the code is green.