dqx-tdd-cycle

Coordinate a Test-Driven Development cycle for DQX features with Red-Green-Refactor phases.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/nampham2/dqx --skill dqx-tdd-cycle
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dqx-tdd-cycle
Source: https://github.com/nampham2/dqx/tree/main/.opencode/skills/dqx-tdd-cycle
Command: npx skills add https://github.com/nampham2/dqx --skill dqx-tdd-cycle

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This guide enables teams to perform a complete Test-Driven Development (TDD) cycle for DQX feature implementation, ensuring tests guide implementation decisions and reduce downstream defects.

Core Features & Use Cases

  • Red-Green-Refactor loop: write failing tests first, implement minimal code to pass, and iterate toward a clean, well-tested feature.
  • Phase guidance: structured steps for RED, GREEN, and REFACTOR, plus guidance on achieving adequate test coverage and aligning with quality gates.
  • Use Case: apply the workflow to a new DQX module to validate requirements with tests before coding.

Quick Start

Run the Red-Green-Refactor cycle by writing failing tests for your module, then implement minimal code to pass them, and repeat until you achieve full test coverage.

Frequently Asked Questions about dqx-tdd-cycle

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

FAQPage Schema
How do I start a test-driven development cycle for Python software engineering?

A test-driven development cycle follows the Red, Green, and Refactor phases: write failing tests first, implement minimal code to pass them, then refactor toward a clean, well-tested feature. This enforces a test-first workflow that reduces downstream defects.

How do I implement code using the Red-Green-Refactor TDD workflow?

Implement code using the Red-Green-Refactor workflow by writing a failing test for the new feature, coding the minimum logic required to make it pass, and refactoring the result while validating changes against quality gates. Iterate this cycle to reach high coverage targets.

What are quality gates in test-driven development and how do they validate code?

Quality gates in test-driven development are enforced checkpoints that validate code standards and test coverage alignment during the Refactor phase. They ensure the implemented feature meets high-coverage targets before the cycle completes, reducing downstream defects.

Can I use this TDD workflow to validate requirements for a new module before coding?

Yes, you can apply this TDD workflow to a new module to validate requirements with tests before writing the actual implementation. Writing tests first guides your implementation decisions and ensures the feature behaves as expected from the start.

When should I not use a test-first workflow for feature implementation?

You should avoid a test-first workflow when exploring experimental prototypes where requirements are highly volatile, as writing structured failing tests upfront may create unnecessary rework before the feature's core design is stable.