programming-workflow

Enforce a TDD red-green-refactor workflow across preparation, design, test, implementation, and review stages.

8|2|Updated Oct 29, 2025
One-click install
npx skills add https://github.com/cuipengfei/prompts --skill programming-workflow-cuipengfei
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: programming-workflow
Source: https://github.com/cuipengfei/prompts/tree/main/plugins/programming-workflow/skills/programming-workflow
Command: npx skills add https://github.com/cuipengfei/prompts --skill programming-workflow-cuipengfei

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents AI from producing “good enough” but brittle code by forcing a disciplined test-driven development workflow with clear stages and quality checks.

Core Features & Use Cases

  • Structured TDD workflow: Converts ambiguous programming tasks into a consistent flow: preparation → design → failing tests → minimal implementation → review and completion.
  • MECE-oriented decomposition: Encourages splitting complex requirements into independent, fully covered sub-tasks before design.
  • Design-first verification: Requires conceptual design of classes/methods and test cases before writing any executable code.
  • Quality-preserving iteration: Implements the red-green-refactor loop while keeping tests passing and eliminating code smells.

Quick Start

Ask your AI assistant to implement the new feature strictly using the programming-workflow TDD stages, starting with MECE task decomposition and failing tests before writing production code.

Frequently Asked Questions about programming-workflow

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

FAQPage Schema
How do I enforce a TDD workflow when using AI for code generation?

To enforce a TDD workflow with AI, you need a structured process of preparation, design, failing tests, minimal implementation, and review. This approach uses red-green-refactor iteration to ensure maintainable code and predictable behavior.

What is the best way to prevent AI from generating brittle code?

The best way to prevent brittle AI code is to apply stage-gated outputs, requiring explicit conceptual test case design and MECE-oriented task decomposition before writing any executable production code.

How do I start TDD red-green-refactor iteration for a new feature?

Start TDD red-green-refactor iteration by decomposing requirements into independent sub-tasks, designing classes and test cases conceptually, writing failing tests, and then implementing minimal code to satisfy them.

Can I use TDD stages for bug fixes and code changes?

Yes, you can use TDD stages for bug fixes and code changes where maintainability is required. The workflow requires designing failing tests that capture the bug before writing minimal implementation code.

When should I not use design-first test case design?

You should not use design-first test case design when a task bypasses the need for maintainability and predictable behavior, as this workflow strictly prohibits writing any implementation during the design stage.