test-rigor-enforcement

Enforce constitutional testing requirements with AST dependency graph validation before code commits.

Updated Oct 9, 2025
One-click install
npx skills add https://github.com/Siamese001/Agentic-Workflow --skill test-rigor-enforcement
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-rigor-enforcement
Source: https://github.com/Siamese001/Agentic-Workflow/tree/main/.windsurf/skills/test-rigor-enforcement
Command: npx skills add https://github.com/Siamese001/Agentic-Workflow --skill test-rigor-enforcement

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill ensures that all code changes meet stringent testing and evidence requirements, preventing regressions and maintaining high code quality by enforcing test-first development and zero-tolerance for skipped tests.

Core Features & Use Cases

  • Test-First Enforcement: Mandates writing tests before implementing new logic.
  • Coverage Validation: Verifies that all code surfaces have adequate test coverage, including edge cases.
  • Determinism Checks: Ensures tests are deterministic and not reliant on external state or randomness.
  • Fail-Closed Gates: Blocks commits that do not meet defined testing standards.
  • Use Case: Before a developer commits code that modifies a critical scoring algorithm, this Skill automatically checks if comprehensive, deterministic tests covering edge cases (like null inputs, boundary values, and malformed data) have been written first. If not, the commit is blocked.

Quick Start

Use the test-rigor-enforcement skill to declare test requirements before writing any new code.

Frequently Asked Questions about test-rigor-enforcement

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

FAQPage Schema
How do I enforce test-first development before allowing code commits?

To enforce test-first development, use a skill that mandates writing tests before implementing new logic and blocks commits that skip tests. This ensures test-first discipline is applied automatically during code generation.

What is test-first enforcement in a CI/CD pipeline?

Test-first enforcement in CI/CD requires that comprehensive, deterministic tests covering edge cases are written before new code is committed. It acts as a fail-closed gate to prevent regressions and maintain high code quality.

How do I validate deterministic tests and edge case coverage for critical algorithms?

You validate deterministic tests and edge case coverage by applying enforcement checks that verify tests are not reliant on external state and confirm coverage for null inputs, boundary values, and malformed data before code commits.

Can I block code commits that skip tests or lack adequate coverage?

Yes, you can block code commits using fail-closed gates that enforce zero-tolerance for test skipping. The enforcement mechanism validates that all code surfaces have adequate test coverage before allowing a commit to proceed.

Does test rigor enforcement require an AST dependency graph for code generation?

Yes, test rigor enforcement mandates an AST dependency graph backing during code generation. This structural backing ensures that constitutional testing requirements are accurately validated against the codebase.

When should I use automated test discipline enforcement in software engineering?

You should use automated test discipline enforcement when modifying critical logic, such as scoring algorithms, to prevent regressions. It ensures all code changes meet stringent testing and evidence requirements before integration.