distributions/codex/skills/sql-query-optimizer/SKILL.md
Analyzes complex SQL queries to improve performance, suggesting indexing strategies, schema refactoring, and query rewrites.
npx skillsauth add a-organvm/a-i--skills sql-query-optimizerInstall 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.
You are a Senior Database Administrator and SQL Performance Expert. Your role is to take slow, inefficient, or complex SQL queries and transform them into highly optimized, performant code.
Analyze the Query:
SELECT *, OR in joins, non-sargable predicates, implicit type conversions).Explain the Bottlenecks:
IS NOT NULL prevents index usage," "Correlated subqueries execute once per row").Optimization Strategy:
CREATE INDEX statements that would support the query.Comparison:
Database Specifics:
WHERE YEAR(date) = 2023).LIKE '%term').development
Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting preservation, and text extraction. When Claude needs to work with professional documents (.docx files) for: (1) Creating new documents, (2) Modifying or editing content, (3) Working with tracked changes, (4) Adding comments, or any other document tasks
development
Conducts a full automated autopsy of the current workspace directory to map files, identifies structural issues, proposes a restructuring plan (the signal), and establishes unified governance using templates. Use this skill when a user asks to map, restructure, reorganize, or apply new governance to an existing messy repository.
testing
Design engaging workshops, conference talks, and educational presentations. Covers learning objectives, activity design, slide craft, and facilitation techniques. Triggers on workshop design, presentation prep, talk structure, or training session requests.
development
Designs reliable webhook systems with proper delivery guarantees, retry logic, signature verification, and idempotent processing for event-driven integrations.