test-discipline

Guide TDD red-green-refactor cycles and detect testing anti-patterns in code.

3|1|Updated Oct 9, 2025
One-click install
npx skills add https://github.com/OmniNode-ai/omniclaude --skill test-discipline
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-discipline
Source: https://github.com/OmniNode-ai/omniclaude/tree/main/plugins/onex/skills/test-discipline
Command: npx skills add https://github.com/OmniNode-ai/omniclaude --skill test-discipline

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enforces rigorous software development practices by guiding users through the Test-Driven Development (TDD) cycle and identifying common testing anti-patterns, ensuring higher code quality and maintainability.

Core Features & Use Cases

  • TDD Workflow Guidance: Provides step-by-step instructions for the Red-Green-Refactor cycle.
  • Anti-Pattern Detection: Identifies and explains common testing pitfalls like testing mocks or incomplete mocks.
  • Use Case: A developer starting a new feature can use this Skill to ensure they are writing tests before implementation, leading to more robust and well-designed code.

Quick Start

Use the test-discipline skill in TDD mode to write a new test for the user authentication module.

Frequently Asked Questions about test-discipline

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

FAQPage Schema
How do I implement the red-green-refactor cycle in test-driven development?

The red-green-refactor cycle in TDD is implemented by writing a failing test first, writing the minimum code to pass it, and refactoring. This Skill enforces this step-by-step workflow guidance.

What are common testing anti-patterns and how can I detect them in my code?

Common testing anti-patterns include testing mocks or using incomplete mocks. This Skill detects these pitfalls in your code and explains them to ensure higher code quality and maintainability.

How do I audit existing tests for quality and maintainability?

Auditing existing tests for quality is done by switching this Skill to audit mode. It analyzes your test suite to identify common testing anti-patterns, ensuring your code remains maintainable and verifiable.

Can I use a comprehensive mode that combines both TDD guidance and anti-pattern detection?

Yes, a comprehensive full mode combines both TDD workflow guidance and anti-pattern detection. This mode addresses the need for disciplined software development and verifiable code quality simultaneously.

When should I not use test-driven development for new software features?

You should reconsider TDD if your goal is rapid prototyping without verifiable code quality. This Skill enforces rigorous software development practices, requiring disciplined test creation before implementation.