test-discipline
Design assertions that prove the actual contract and fail on realistic regressions
- License 许可
- MIT
- 所属仓库
- github/squad
- 最近更新
- 2026-11-15
- Stars
- ★ 3.4k
- Forks
- 520
01 前言 Front Matter
- name
- test-discipline
- domain
- quality
- source
- current regression tests and retained quality incident lessons
- confidence
- high
- description
- Design assertions that prove the actual contract and fail on realistic regressions
03 SKILL.md 正文
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
- Update tests in the same change as an API, signature, export, or public-interface change.
- Make assertions name and inspect the offending artifact, output, or configuration field—not just an exit code or broad success status.
- Mutation-test critical gates by changing the real source or emitted artifact and proving the assertion turns red.
- Exercise every caller path for a changed parser, normalizer, or helper; isolated unit coverage can miss the integration path that invokes it differently.
- Reproduce working-tree-only failures locally when the contract depends on index, filesystem, line-ending, or generated-output state.
- Keep expected inventory arrays synchronized with the files they enumerate.
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
- Calling a test sufficient because it observes only a successful process exit
- Mutating a hand-built fixture instead of the source or artifact protected by the gate
- Testing a helper while omitting production callers
- Treating a local checkout defect as something CI alone can validate
04 同仓库更多 Skills
squad-coordinator-init-mode
Squad coordinator only: Init Mode, proposing and casting a new team. Load when team.md is missing or has an empty roster, or when asked to set up or cast a team.
retro-enforcement
Keep retrospectives on schedule and track their action items as GitHub Issues, not markdown checklists
cli-wiring
Checklist for wiring a new Squad CLI command: route it in cli-entry.ts, add help text, and test that it is reachable
gh-aw-enlistment
Enlist a repository into Squad by installing the supported GitHub Agentic Workflows (gh-aw) bootstrap — with strict compilation, an explicit safe-update allowlist, and a human-reviewed bootstrap PR. Never auto-merges.
My Skill
暂无简介
bad-skill
暂无简介