test-discipline

Update test assertions and build checks when public interfaces change.

3|3|Updated Apr 13, 2026
One-click install
npx skills add https://github.com/quaid-app/quaid --skill test-discipline-quaid-app
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-discipline
Source: https://github.com/quaid-app/quaid/tree/main/.copilot/skills/test-discipline
Command: npx skills add https://github.com/quaid-app/quaid --skill test-discipline-quaid-app

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

When public interfaces change, tests must be updated in the same commit to prevent CI failures and misaligned expectations.

Core Features & Use Cases

  • Consistent test updates: automatically align test assertions with the current codebase after API changes.
  • Disk reality alignment: ensure file counts and expected data reflect the repository's actual state.
  • CI safety gate: prevents regressions by keeping tests and documentation in sync during development.

Quick Start

Update tests immediately after you modify an API to keep CI green.

Frequently Asked Questions about test-discipline

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

FAQPage Schema
How do I update test assertions when API changes break CI builds?

Update test assertions by identifying modified public interfaces and synchronizing test files and assertion arrays in the same commit. This keeps CI builds green by preventing regressions caused by mismatched expectations.

Why do CI regressions happen after public interface changes?

CI regressions occur because test assertions and expected data no longer match the modified API. Synchronizing test files, disk counts, and documentation pages within the same commit prevents these failures.

How do I keep documentation pages and test files in sync during code changes?

Keep documentation and tests in sync by updating relevant test files, assertion arrays, and build checks alongside code changes. This ensures alignment between disk reality and expected data.

What is the best way to prevent test failures when modifying public interfaces?

The best way to prevent failures is enforcing alignment by updating test assertions and relevant test files immediately after modifying an API. This maintains green CI by catching regressions in the same commit.

Does this approach work for aligning disk counts and expected data in test arrays?

Yes, aligning disk counts and expected data is handled by updating assertion arrays to reflect the repository's actual state. This ensures test expectations match disk reality during build checks.

When should I not delay updating tests after an API modification?

You should never delay, as separating API changes from test updates causes CI regressions and misaligned expectations. Tests must be updated in the same commit to maintain green CI.