test-first-enforcer

Block production edits until related tests exist for the same task.

Updated May 5, 2026
One-click install
npx skills add https://github.com/shakhovskiya-create/shakhoff-claude-marketplace --skill test-first-enforcer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-first-enforcer
Source: https://github.com/shakhovskiya-create/shakhoff-claude-marketplace/tree/main/plugins/ai-scrum/skills/test-first-enforcer
Command: npx skills add https://github.com/shakhovskiya-create/shakhoff-claude-marketplace --skill test-first-enforcer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Production code changes often happen before tests are written, leading to fragile releases and skipped verification. This Skill enforces test-first discipline to ensure tests accompany production edits within the same task, improving reliability and traceability.

Core Features & Use Cases

  • Enforces that a test file change precedes any production file change within a sprint task.
  • Supports exemptions via /sprint:test-exempt with documented reasons and logs for compliance review.
  • Integrates with dod-validator for DoD-compliant verification of test-first discipline across tasks.

Quick Start

Configure your pre-tool hook and compliance checks to start enforcing test-first discipline in active tasks.

Frequently Asked Questions about test-first-enforcer

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

FAQPage Schema
How do I enforce test-first discipline during active sprints?

To enforce test-first discipline, configure a pre-tool hook that blocks production code edits unless related test files exist for the same sprint task, ensuring tests always accompany production changes for improved release reliability.

What is test-first enforcement and how does it prevent fragile releases?

Test-first enforcement prevents fragile releases by blocking production code changes until corresponding tests are written within the same task. This mechanism ensures verification happens before implementation, improving traceability and reliability.

Can I bypass test-first rules for specific production code changes?

Yes, you can bypass test-first rules by using the /sprint:test-exempt command. This exemption requires documented reasons and generates logs for compliance review, ensuring traceability even when skipping tests.

How do I set up pre-tool hooks for test-first compliance checks?

To set up test-first compliance checks, integrate the pre-tool-use-test-first.sh hook with the dod-validator. This configuration inspects your production_paths and exemption rules to enforce discipline across active tasks.

Does the test-first enforcer integrate with definition of done validators?

Yes, test-first enforcement integrates with the dod-validator to verify test-first discipline across tasks. This integration ensures all production edits meet Definition of Done compliance through automated verification during active sprints.

When should I use a test-first exemption in my sprint workflow?

Use a test-first exemption when a specific production code change legitimately bypasses test requirements. The /sprint:test-exempt command documents the reasons and logs them for compliance review during active sprint tasks.