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 Updated 18 repo stars
Product tour: Discover, Lenses, Workflows, Agents, Lensers, LenserBoard

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 commit c4776495ca

Frequently asked questions

npx get-skill add conectlens/api-contract-reviewer