API Contract Reviewer

Review Supabase RPC/PostgREST API contracts for DTO correctness, response consistency, validation quality, and backward-compatibility risk. Use when changing libs/api/*, shared response types, or API-facing behavior.

conectlens c477649 3 files · 1.7 KB Updated

File contents

Run API contract review for $ARGUMENTS.

Purpose Review request/response contracts in the requested scope.

Focus

  • DTO / type validation (libs/api/*)
  • RPC response shape and nullability
  • pagination and filtering
  • error contract consistency
  • backward-compatibility risk
  • OpenAPI alignment (supabase/functions/)

Workflow

  • Resolve scope from $ARGUMENTS
  • Inspect libs/api/, libs/domain/, Supabase RPC definitions, and shared types (@lenserfight/types)
  • Check request validation and response exposure
  • Flag contract drift, unsafe changes, and inconsistent patterns
  • Report findings and compatibility risks

Load only when needed

  • Review method: reference guide
  • DTO and response checks: contracts guide

conectlens/lenserfight/tree/main/.agents/skills/api-contract-reviewer commit c4776495ca

Frequently asked questions

npx skillmds@latest add conectlens/api-contract-reviewer