implement-feature-tdd

Implement new features through red-green-refactor cycles with failing tests first.

30|3|Updated Mar 8, 2020
One-click install
npx skills add https://github.com/uxname/liteend --skill implement-feature-tdd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: implement-feature-tdd
Source: https://github.com/uxname/liteend/tree/main/.agents/skills/implement-feature-tdd
Command: npx skills add https://github.com/uxname/liteend --skill implement-feature-tdd

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This workflow enforces test-driven development to ensure new features are implemented only after failing tests are written, reducing defects and guiding incremental, well-tested code.

Core Features & Use Cases

  • Red-Green-Refactor cycle: Write failing tests first, implement minimal code to pass, then refactor while maintaining tests.
  • Comprehensive validation: Include unit and integration tests across controllers/services, with support for end-to-end tests.
  • Quality gates: Enforce linting and test coverage thresholds to prevent regressions.

Quick Start

Write a failing test for the new feature, then implement the minimum code to pass it.

Frequently Asked Questions about implement-feature-tdd

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

FAQPage Schema
How do I implement new features using test-driven development?

Test-driven development implements features by writing failing tests first, then creating minimal production code to pass them, and finally refactoring while maintaining coverage. This enforces red-green-refactor cycles.

What is the red-green-refactor cycle in TDD?

The red-green-refactor cycle writes failing tests first, implements the minimum code required to turn them green, and then refactors the code while ensuring tests stay passing to guarantee reliable changes.

How do I enforce test coverage thresholds and prevent regressions during feature development?

To enforce test coverage thresholds and prevent regressions, use a centralized workflow that runs unit and end-to-end tests, lints code, and reports coverage against quality gates before integrating new features.

Can I use TDD workflows with controllers, resolvers, and services?

Yes, TDD workflows apply to software projects with controllers, resolvers, and services by guiding teams to write comprehensive unit and integration tests across these layers before implementation.

What's the best way to start shipping features with strict TDD?

The best way to start shipping features with strict TDD is to write a failing test for the specific feature requirement, then implement the minimum production code needed to make that test pass.

When should I not use a strict test-driven development workflow?

Strict test-driven development workflows may not suit projects lacking a centralized system to run unit and end-to-end tests, lint code, and report coverage, as these quality gates are required for reliable refactoring.