/supabase-performance-optimizer
Optimize Supabase database performance with intelligent analysis and recommendations
$ npx -y skills add davila7/claude-code-templates --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/supabase-performance-optimizer
Context preview
What this command does when you run it.
Optimize Supabase database performance with intelligent analysis and recommendations
Command definition
supabase-performance-optimizer.mdallowed-tools: Read, Write, Edit, Bash
argument-hint: [optimization-type] | --queries | --indexes | --storage | --rls | --functions
description: Optimize Supabase database performance with intelligent analysis and recommendations
Supabase Performance Optimizer
Optimize Supabase database performance with intelligent analysis and automated improvements: **$ARGUMENTS**
Current Performance Context
- Supabase metrics: Database performance data via MCP integration
- Query patterns: !`find . -name "*.sql" -o -name "*.ts" -o -name "*.js" | xargs grep -l "from\|select\|insert\|update" 2>/dev/null | head -5` application queries
- Schema analysis: Current table structures and relationship complexity
- Performance logs: Recent query execution times and resource usage patterns
Task
Execute comprehensive performance optimization with intelligent analysis and automated improvements:
**Optimization Focus**: Use $ARGUMENTS to focus on query optimization, index management, storage optimization, RLS policies, or database functions
**Performance Optimization Framework**: 1. **Performance Analysis** - Analyze query execution times, identify slow operations, assess resource utilization, evaluate bottlenecks 2. **Index Optimization** - Analyze index usage, recommend new indexes, identify redundant indexes, optimize index strategies 3. **Query Optimization** - Review application queries, suggest query improvements, implement query caching, optimize join operations 4. **Storage Optimization** - Analyze storage patterns, recommend archival strategies, optimize data types, implement compression 5. **RLS Policy Review** - Analyze Row Level Security policies, optimize policy performance, reduce policy complexity, improve security efficiency 6. **Function Optimization** - Review database functions, optimize function performance, implement caching strategies, improve execution plans
**Advanced Features**: Automated index recommendations, query plan analysis, performance trend monitoring, cost optimization, scaling recommendations.
**Monitoring Integration**: Real-time performance tracking, alert configuration, performance regression detection, optimization impact measurement.
**Output**: Comprehensive optimization plan with performance improvements, index recommendations, query optimizations, and monitoring setup.
Read more
allowed-tools: Read, Write, Edit, Bash argument-hint: [optimization-type] | --queries | --indexes | --storage | --rls | --functions description: Optimize Supabase database performance with intelligent analysis and recommendations
Supabase Performance Optimizer
Optimize Supabase database performance with intelligent analysis and automated improvements: **$ARGUMENTS**
Current Performance Context
- Supabase metrics: Database performance data via MCP integration
- Query patterns: !`find . -name "*.sql" -o -name "*.ts" -o -name "*.js" | xargs grep -l "from\|select\|insert\|update" 2>/dev/null | head -5` application queries
- Schema analysis: Current table structures and relationship complexity
- Performance logs: Recent query execution times and resource usage patterns
Task
Execute comprehensive performance optimization with intelligent analysis and automated improvements:
**Optimization Focus**: Use $ARGUMENTS to focus on query optimization, index management, storage optimization, RLS policies, or database functions
**Performance Optimization Framework**: 1. **Performance Analysis** - Analyze query execution times, identify slow operations, assess resource utilization, evaluate bottlenecks 2. **Index Optimization** - Analyze index usage, recommend new indexes, identify redundant indexes, optimize index strategies 3. **Query Optimization** - Review application queries, suggest query improvements, implement query caching, optimize join operations 4. **Storage Optimization** - Analyze storage patterns, recommend archival strategies, optimize data types, implement compression 5. **RLS Policy Review** - Analyze Row Level Security policies, optimize policy performance, reduce policy complexity, improve security efficiency 6. **Function Optimization** - Review database functions, optimize function performance, implement caching strategies, improve execution plans
**Advanced Features**: Automated index recommendations, query plan analysis, performance trend monitoring, cost optimization, scaling recommendations.
**Monitoring Integration**: Real-time performance tracking, alert configuration, performance regression detection, optimization impact measurement.
**Output**: Comprehensive optimization plan with performance improvements, index recommendations, query optimizations, and monitoring setup.
Ready-to-use configurations for Anthropic's Claude Code. A comprehensive collection of AI agents, custom commands, settings, hooks, external integrations (MCPs), and project templates to enhance your development workflow.
Repo: davila7/claude-code-templates
Other commands on claude-code-templates.
- /cleanup-cache
Clean system caches (npm, Homebrew, Yarn, browsers, Python/ML) to free disk space
Open command - /create-blog-article
Create an SEO-optimized blog article for a Claude Code component with AI-generated cover image
Open command - /lint
Run Python code linting and formatting tools.
Open command - /test
Run Python tests with pytest, unittest, or other testing frameworks.
Open command - /worktree-check
Check current worktree status, branch, and assigned task
Open command - /worktree-cleanup
Clean up merged worktrees and their branches
Open command

