home / skills / jeremylongshore / claude-code-plugins-plus-skills / supabase-schema-from-requirements
/plugins/saas-packs/supabase-pack/skills/supabase-schema-from-requirements
This skill generates a Supabase database schema from natural language requirements to accelerate project initialization and migrations.
npx playbooks add skill jeremylongshore/claude-code-plugins-plus-skills --skill supabase-schema-from-requirementsReview the files below or copy the command above to add this skill to your agents.
---
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 <[email protected]>
---
# 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`.This skill generates a Supabase database schema from natural-language requirements and drives the primary workflow for new projects. It converts product or feature specs into tables, columns, constraints, and migration-ready SQL tailored for Supabase. Use it to bootstrap schemas, refactor existing models, or produce migration artifacts from spec documents.
The skill parses user-provided requirements and maps entities, fields, relationships, and constraints to Supabase/Postgres constructs. It then constructs a schema model and produces SQL or migration scripts compatible with Supabase APIs and CLI tooling. It validates consistency, checks for common errors, and returns success confirmation or actionable error details.
What prerequisites are required?
You need an initialized Supabase project or valid API credentials, completed auth setup, and basic knowledge of Supabase concepts.
Can it modify an existing production database directly?
The skill produces migration scripts and API calls; applying them to production should be done manually or via CI after review.