gladius

Enforce a red-green-refactor cycle with failing tests before production code.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Milovan-Crowley/Consilium --skill gladius
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gladius
Source: https://github.com/Milovan-Crowley/Consilium/tree/main/generated/claude/skills/gladius
Command: npx skills add https://github.com/Milovan-Crowley/Consilium --skill gladius

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Test-Driven Development (TDD) approach helps teams build features with confidence by requiring a failing test before any production code, guiding implementation and preventing regressions.

Core Features & Use Cases

  • Enforces a red-green-refactor cycle to drive small, testable increments.
  • Supports new features, bug fixes, and refactors by ensuring tests exist first.
  • Helps validate behavior and guard against regressions across codebases.

Quick Start

Write a failing test first, then implement the minimal code to pass it.

Frequently Asked Questions about gladius

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

FAQPage Schema
What is test-driven development and how does the red-green-refactor cycle work?

Test-driven development requires writing a failing test before any production code to guide implementation and prevent regressions. It enforces a red-green-refactor cycle, driving small, testable increments by validating behavior first, then writing minimal code to pass.

How do I use test-driven development for fixing bugs and refactoring existing code?

Use test-driven development for bug fixes and refactoring by writing a failing test that reproduces the bug or validates the desired behavior change first. This ensures tests exist before modifying production code, guarding against regressions across the codebase.

Can I apply test-driven development when creating new features across a large codebase?

Yes, test-driven development is applicable to creating new features and changing behavior across a codebase. It guides feature work by requiring a failing test before production code, validating behavior through small, testable increments.

What's the difference between test-driven development and writing tests after coding?

Test-driven development discourages test-after coding by requiring a failing test before any production code is written. This approach validates behavior upfront and guides implementation, whereas writing tests afterward does not drive the design or enforce the red-green-refactor cycle.

When should I not use test-driven development for my software engineering tasks?

Test-driven development may not suit tasks where behavior is difficult to validate through tests or where immediate, exploratory coding is required. It enforces a strict red-green-refactor cycle and discourages test-after coding, requiring a failing test before any production code.