minimal-impl-generator

Implement minimal code to make failing tests pass in a TDD workflow.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/yuridefranca/ai-prompts --skill minimal-impl-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: minimal-impl-generator
Source: https://github.com/yuridefranca/ai-prompts/tree/main/src/skills/minimal-impl-generator
Command: npx skills add https://github.com/yuridefranca/ai-prompts --skill minimal-impl-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prevents premature optimization and over-engineering by guiding engineers to implement the minimal, correct code required to satisfy tests during the TDD implementation phase.

Core Features & Use Cases

  • Green-phase focus: Directs implementation to the smallest change that makes failing tests pass.
  • Agent-safe file creation: Requires explicit use of workspace file creation tools so implementations are testable and persistent.
  • Use Case: When a feature's tests are written, follow these steps to implement only the behavior the tests require, run the tests, and then move to refactoring later.

Quick Start

Read the failing tests, create the minimal implementation files in the repository using engineer agent tools, and run the test suite to confirm they pass.

Frequently Asked Questions about minimal-impl-generator

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

FAQPage Schema
How do I make failing tests pass in TDD without over-engineering the implementation?

To make failing tests pass in TDD, implement the simplest working code that satisfies test expectations without premature optimization. This green-phase approach directs engineers to create minimal runnable files using repository tools, focusing only on tested behavior before moving to refactoring later.

What is the minimal implementation approach for the TDD green phase?

The minimal implementation approach for the TDD green phase is writing the smallest code change required to satisfy failing tests. It prevents over-engineering by directing engineers to create only the behavior tests require, producing runnable files in the repository for verification.

How do I implement code to pass tests using an engineer agent?

To implement code to pass tests using an engineer agent, create minimal implementation files in the repository using create_file or replace_string_in_file tools. This ensures implementations are testable and persistent, then run the test suite to confirm they pass.

When should I use YAGNI principles in test-driven development?

Use YAGNI principles in test-driven development during the implementation phase when tests exist and code must satisfy test expectations. Apply YAGNI when feature tests are written, implementing only the behavior tests require before moving to later refactoring.

Do I need existing tests before generating a minimal implementation?

Yes, existing tests are required before generating a minimal implementation. This Skill is applicable during implementation phases and feature workflows where tests already exist and code must satisfy test expectations, producing runnable files for verification.

Why does my test-driven development implementation keep failing tests?

Test-driven development implementations may keep failing if code exceeds minimal requirements or misses tested behavior. Focus on the smallest change that makes failing tests pass, create files using workspace tools, and run the test suite to confirm they pass before refactoring.