← ClaudeAtlas

pattern-reviewer-contractlisted

Contract-conformance audit. Every API endpoint matches its api contract at `docs/api-contract/<entity>.yaml` — path, verb, request/response schema, status codes, error envelope, Idempotency-Key + rate-limit policy. Every ORM model matches its data-model contract at `docs/data-model/<entity>.yaml` — table name, columns, constraint names (`pk_*`, `fk_*`, `uq_*`, `idx_*`, `ck_*`), relationships. Every routed surface + E2E spec matches its UI contract at `docs/ui-contract/<screen>.yaml` — declared regions, role+accessible-name actions, outcome states; specs query only the declared surface. Activate when the diff includes API routes, ORM models, frontend pages/components, or E2E specs AND a sibling contract file exists.
MartinKChen/harness-claude-code · ★ 0 · AI & Automation · score 72
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