Agent skill
supabase-index-creator
Crea índices para foreign keys sin cobertura en Supabase. Usa cuando veas warnings de FK sin índice, performance de JOINs, o tarea 1.2 del PLAN_MEJORAS.md.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/supabase-index-creator
SKILL.md
Supabase Index Creator
Skill para crear índices de cobertura para foreign keys en Supabase.
Problema Detectado
FK email_logs_quote_id_fkey sin índice de cobertura.
Instrucciones
- Verificar que el índice no existe con MCP Supabase
- Crear migración en
database/migrations/YYYYMMDD_add_<tabla>_<columna>_index.sql - Aplicar migración
- Verificar con advisor de Supabase
Template de Migración
-- Añadir índice para FK <fk_name>
-- Mejora performance de consultas que usen esta relación
CREATE INDEX IF NOT EXISTS idx_<tabla>_<columna>
ON public.<tabla>(<columna>);
Caso Específico: email_logs
-- Añadir índice para FK email_logs_quote_id_fkey
CREATE INDEX IF NOT EXISTS idx_email_logs_quote_id
ON public.email_logs(quote_id);
Verificación
Ejecutar mcp_supabase_get_advisors con type="performance" y confirmar que el warning de FK sin índice desaparece.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?