SQL Optimization
Testing & Qualitysql-optimizationSQL Optimization is an Agent Skill for testing & quality published in the Datus-ai/Datus-agent repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
SQL query optimization techniques and best practices
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/Datus-ai/Datus-agent/blob/HEAD/tests/data/skills/sql-optimization/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/sql-optimization, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
SQL Optimization Skill
Optimization Steps
- Analyze the query execution plan
- Check for missing indexes
- Rewrite subqueries as JOINs where possible
- Use EXPLAIN to verify improvements