What problem does it solve? Pitch CRM's Supabase backend has 456 Edge Function folders, causing maintenance bloat and inconsistent frontend invocation patterns. This Skill enforces consolidation of legacy standalone functions into grouped *-api, *-worker, and *-webhook routes while keeping an accurate audit trail. ## Core Features & Use Cases - Frontend call migration: Converts supabase.functions.invoke("old-name") calls into edgeApi("grouped-api", "/route", payload) invocations. - Legacy function shimming: Replaces migrated function folders with shims via _shared/shim.ts to preserve backward compatibility. - Scaffold wiring and audit reporting: Wires real typed routes into scaffold-only grouped functions and reports exact folder, route, shim, and call-site counts after every change. - Use Case: While editing a messaging feature, you find the frontend calling send-sms directly. The Skill routes it through messaging-api as POST /sms/send, shims the old function, updates the audit CSV, and reports the new folder count. ## Quick Start Ask the agent to migrate the frontend's legacy Supabase function calls in the current file into grouped edge API routes and report the updated audit counts.