test-provenance-guardlisted
Install: claude install-skill mthines/agent-skills
# Test Provenance Guard
Catches the failure mode where a new test file *re-implements* the function it claims to test, then asserts against its own copy.
The tests pass.
The CI is green.
The tests provide zero regression protection.
This skill detects that pattern and, when invoked autonomously, fixes it without user intervention.
> **This `SKILL.md` is a thin index.**
> Detailed procedures live in `rules/*.md` and load on demand.
> The case-study post-mortem and failure-mode taxonomy live in `references/*.md`.
---
## Contents
- [Inputs](#inputs)
- [Workflow](#workflow)
- [Quick Decision Flow](#quick-decision-flow)
- [Required Reading by Phase](#required-reading-by-phase)
- [Output Contract](#output-contract)
- [Core Principles](#core-principles)
- [Anti-patterns](#anti-patterns)
- [Definition of Done](#definition-of-done)
- [Related Skills](#related-skills)
---
## Inputs
Parse `$ARGUMENTS`:
| Argument | Default | Meaning |
| ---------------------------- | ------------------------------------------ | -------------------------------------------------------------------------------------- |
| `--diff` | off | Discover changed test files via `git diff --name-only <base>...HEAD`. |
| `--base <ref>` | `main` | Base r