What problem does it solve?
Many API specifications lack consistent routes, clear request/response schemas, and proper security controls; this Skill provides a structured template to design endpoints that are secure, predictable, and RLS-aware for Supabase edge functions and traditional REST services.
Core Features & Use Cases
- Route and Method Definition: Specify HTTP methods and precise paths for each endpoint.
- Schema Design: Define required and optional request fields and clear success and error response shapes.
- Authentication & RLS Guidance: Recommend JWT, API key, or service role usage and outline row-level security policies for Supabase edge functions.
- Operational Concerns: Include error handling conventions and rate-limiting guidance.
- Use Case: Create a Supabase edge function endpoint for a chat feature that enforces per-user RLS, JWT auth, standard error responses, and a defined rate limit.
Quick Start
Design a POST /functions/v1/chat endpoint that accepts a JSON message string, returns a JSON reply, enforces JWT authentication with RLS policies restricting rows to the authenticated user, and defines standard error responses and rate limits.