--- name: supabase-schema-from-requirements description: | Execute Supabase primary workflow: Schema from Requirements. Use when Starting a new project with defined data requirements, Refactoring an existing schema based on new features, or Creating migrations from specification documents. Trigger with phrases like "supabase schema from requirements", "generate database schema with supabase". allowed-tools: Read, Write, Edit, Bash(npm:*), Grep version: 1.0.0 license: MIT author: Jeremy Longshore --- # Supabase Schema from Requirements ## Overview Generate Supabase database schema from natural language requirements. This is the primary workflow for starting new Supabase projects. ## Prerequisites - Completed `supabase-install-auth` setup - Understanding of Supabase core concepts - Valid API credentials configured ## Instructions ### Step 1: Initialize ```typescript // Step 1 implementation ``` ### Step 2: Execute ```typescript // Step 2 implementation ``` ### Step 3: Finalize ```typescript // Step 3 implementation ``` ## Output - Completed Schema from Requirements execution - Expected results from Supabase API - Success confirmation or error details ## Error Handling | Error | Cause | Solution | |-------|-------|----------| | Error 1 | Cause | Solution | | Error 2 | Cause | Solution | ## Examples ### Complete Workflow ```typescript // Complete workflow example ``` ### Common Variations - Variation 1: Description - Variation 2: Description ## Resources - [Supabase Documentation](https://supabase.com/docs) - [Supabase API Reference](https://supabase.com/docs/api) ## Next Steps For secondary workflow, see `supabase-auth-storage-realtime-core`.