pattern-reviewer-contractlisted
Install: claude install-skill MartinKChen/harness-claude-code
# pattern-reviewer-contract
Contract-conformance audit. The api contract (`docs/api-contract/<entity>.yaml`), data-model contract (`docs/data-model/<entity>.yaml`), and UI contract (`docs/ui-contract/<screen>.yaml`) are the source of truth for endpoint shape, model shape, and UI-interaction surface; this skill verifies the implementation matches the contract verbatim. Implementation best practices that aren't in the contract are out of scope here.
## When to activate
- The dispatched caller is reviewing a `type:backend` task whose touched paths include API route handlers OR ORM model files.
- The dispatched caller is reviewing a `type:frontend` task whose touched paths include routed pages / components, OR a `type:e2e` task whose touched paths include Playwright specs.
- The corresponding contract file(s) exist in the worktree under `docs/api-contract/`, `docs/data-model/`, and/or `docs/ui-contract/`.
- A user says "review the endpoints against the contract", "did we honor the api spec", "does the model match the data contract", "does the page match the UI contract".
Do NOT activate when:
- The diff has no API routes, no ORM model changes, no routed pages/components, and no E2E specs.
- The project has no `docs/api-contract/`, `docs/data-model/`, or `docs/ui-contract/` directory (no contracts to compare against — surface the absence to the user rather than inventing a verdict).
## Project memory overlay
After loading this skill, also check `$MAIN_ROOT/.claude/memory/pa