.cursor/skills/supabase-expert/SKILL.md
Expert in Supabase database management, querying patterns, and migration workflows specific to this project.
npx skillsauth add ripgraphics/authorsinfo supabase-expertInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill provides comprehensive knowledge for interacting with Supabase in this project, using the Supabase CLI (npx supabase) and the supabaseAdmin client.
nmrohtlcfqujtfgcyqhwtypes/database.tssupabase/migrations/npx supabase db push # Apply pending migrations
npx supabase db push --include-all # Apply ALL migrations (use for new ones)
npx supabase db push --dry-run # Preview without applying
npx supabase db reset # Reset local DB with migrations
npx supabase status # Show service status
npx supabase start # Start local services
npx supabase stop # Stop local services
npx supabase migration list # Show migration status
npx supabase migration repair --status reverted YYYYMMDD # Fix history
npx supabase migration repair --status applied YYYYMMDD # Mark as applied
npx supabase migration new [name] # Create new migration
npm run types:generate # Generate TS types from schema
npm run db:types # Alias for types:generate
npm run schema:download # Download schema + generate types
PostgreSQL is installed at: C:\Program Files\PostgreSQL\17\bin\psql.exe
To query the live database:
# Set password from .env.local and run query
$env:PGPASSWORD = "<password_from_env>";
& "C:\Program Files\PostgreSQL\17\bin\psql.exe" -h db.nmrohtlcfqujtfgcyqhw.supabase.co -p 5432 -U postgres -d postgres -c "SELECT count(*) FROM table_name;"
supabase [command] # Not installed globally (use npx!)
./node_modules/.bin/supabase # Path issues on Windows
--include-all: Required for new migrationsmigration repair for mismatched statesUse supabaseAdmin from @/lib/supabase/server:
import { supabaseAdmin } from '@/lib/supabase/server'
const { data, error } = await supabaseAdmin
.from('table_name')
.select('id, column_a, related_data(id, name)')
.eq('status', 'active')
.limit(10)
if (error) {
console.error('Error:', error)
return []
}
return data
docs/public-docs/CLI_USAGE_GUIDE.md: Complete CLI referencedocs/public-docs/CLI_CONFIG_FIX_AND_MIGRATION.md: Config troubleshootingdocs/HOW_TO_READ_FROM_SUPABASE.md: Query patternsdocs/scripts/HOW_TO_RUN_MIGRATIONS.md: Migration workflowtools
Webpack build optimization expert with deep knowledge of configuration patterns, bundle analysis, code splitting, module federation, performance optimization, and plugin/loader ecosystem. Use PROACTIVELY for any Webpack bundling issues including complex optimizations, build performance, custom plugins/loaders, and modern architecture patterns. If a specialized expert is a better fit, I will recommend switching and stop.
development
Web application security expert. OWASP Top 10, XSS, SQLi, CSRF, SSRF, authentication bypass, IDOR. Use for web app security testing.
testing
Vitest testing framework expert for Vite integration, Jest migration, browser mode testing, and performance optimization
tools
Vite build optimization expert with deep knowledge of ESM-first development, HMR optimization, plugin ecosystem, production builds, library mode, and SSR configuration. Use PROACTIVELY for any Vite bundling issues including dev server performance, build optimization, plugin development, and modern ESM patterns. If a specialized expert is a better fit, I will recommend switching and stop.