test-discipline

Detect stale assertions in CI and enforce updating tests with API changes.

66|41|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/olivomarco/vbd-copilot --skill test-discipline-olivomarco
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-discipline
Source: https://github.com/olivomarco/vbd-copilot/tree/main/.copilot/skills/test-discipline
Command: npx skills add https://github.com/olivomarco/vbd-copilot --skill test-discipline-olivomarco

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

When APIs or public interfaces change, tests must be updated in the same commit to avoid CI failures.

Core Features & Use Cases

  • Update tests in the same commit whenever a public interface changes, to keep tests aligned with the code.
  • Sync test assertions with disk reality by updating expected file counts, lists, or arrays when the repository state changes.
  • CI guardrails detect stale assertions and guide developers to maintain consistency across releases.

Quick Start

Update tests in the same commit whenever you change APIs to keep tests aligned with the updated codebase.

Frequently Asked Questions about test-discipline

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

FAQPage Schema
How do I keep test assertions in sync when APIs change?

To keep test assertions in sync when APIs change, you should update tests in the same commit as the API modification. This prevents stale assertions and avoids CI failures by ensuring disk reality matches expected values.

Why do CI pipelines fail after updating public interfaces?

CI pipelines fail after updating public interfaces because test assertions become stale if they are not updated in the same commit. Synchronizing tests with the evolving API contract ensures disk reality matches expected values across releases.

What are CI guardrails for detecting stale test assertions?

CI guardrails for detecting stale test assertions are mechanisms that identify when expected file counts, lists, or arrays no longer match disk reality. They guide developers to maintain consistency by updating tests alongside code changes.

How do I update expected file counts and arrays in test suites?

To update expected file counts and arrays in test suites, you must sync test assertions with disk reality by modifying the expected values in the same commit that changes the repository state or API contract.

When do I need to update tests for API changes?

You need to update tests for API changes whenever a public interface evolves to avoid CI failures. Keeping tests aligned with the updated codebase requires modifying file counts, lists, and API contracts in the same commit.

Does syncing tests with disk reality work for file count assertions?

Syncing tests with disk reality works for file count assertions by detecting when expected values no longer match the repository state. This applies to test suites relying on file counts, arrays, and API contracts across CI environments.