Test discipline

From bradygaster/squad · View interactive version

Test discipline is an AI agent skill from the GitHub repository bradygaster/squad. Design assertions that prove the actual contract and fail on realistic regressions

How to use this skill

Skill file

Context

Use this skill whenever a change affects an API, public interface, workflow contract, generated

artifact, or user-observable behavior. A passing status-only test is not evidence that the

intended artifact or contract is correct.

Patterns

an exit code or broad success status.

assertion turns red.

can miss the integration path that invokes it differently.

line-ending, or generated-output state.

Examples

A workflow-compilation test mutates the source workflow, compiles it, and inspects the emitted

safe-output contract. A repair-script test constructs the actual index/blob/worktree state that

the repair routine must handle instead of a simplified fixture.

Anti-Patterns

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.