Sql Optimization Patterns
CheckedHelps with optimization, patterns as part of working with databases and data persistence workflows.
Install on your platform
Showing Claude Code. One command installs this skill into any of the agents below.
- 1
Run this in your project
terminal$ npx skills add herdiansah/antigravity-skills-master --skill sql-optimization-patterns -a claude-code Uses the open-source
skillsCLI and needs Node.js. Add-gto install it for your user instead of this project.
What we know about this skill
Publisher
herdiansah
Taken from the source listing. We haven't verified who controls this account.
Install target
Live repository
Not pinned. Installing fetches whatever the repository holds at the time you run the command.
Automated safety checks
This skill passed all 6 checks. We read its files at one commit and looked for the things that make a skill dangerous to run — not for whether it works.
Declares what it does: passed
SKILL.md parses and declares a name and a description.
SKILL.md exists, its frontmatter parses, and it declares a name and a description.
No undeclared network calls: passed
Makes no network calls.
Every host the skill dials — from its scripts, its config endpoints or the commands it tells the agent to run — is either well-known package and API infrastructure or declared in its own frontmatter. Links in documentation are not counted.
No obfuscated payloads: passed
No encoded or obfuscated payloads.
No base64, hex or compressed blob is decoded and then executed, and no encoded shell commands.
No credential access: passed
Reads no keys, tokens, keychains or credential files.
Neither the code nor the SKILL.md instructions read SSH keys, cloud credentials, keychains, token stores, browser cookie databases or dotfiles that hold secrets.
No pipe-to-shell installers: passed
No pipe-to-shell or download-and-run installers.
No `curl … | sh` pattern, in the code or in the instructions, that runs code fetched at run time.
Pinned to a commit: passed
Scanned herdiansah/antigravity-skills-master at f642a05f9c.
The exact upstream commit SHA that was scanned is recorded, so the result refers to specific bytes.
- Commit
- f642a05f9c
- Scanned
- 1 file, 466 lines
About this skill
What it does
This skill provides SQL query optimization patterns to improve database performance. It analyzes existing SQL queries and suggests modifications based on established best practices, such as index usage, avoiding full table scans, and rewriting complex joins. The goal is to reduce query execution time and overall database load.
When to use it
- Slow Query Identification: Use this skill when you have identified specific SQL queries that are taking an excessively long time to execute.
- Database Performance Tuning: Integrate the skill into a broader database performance tuning process to proactively identify optimization opportunities.
- Complex Join Analysis: Apply it to queries involving multiple tables and complex join conditions where performance bottlenecks are likely.
- Large Dataset Queries: Utilize this skill when working with large datasets, as query optimization becomes increasingly critical for acceptable response times.
Key capabilities
- SQL Query Analysis
- Index Usage Recommendations
- Join Optimization Suggestions
- Full Table Scan Avoidance Strategies
- Query Rewriting Techniques
Example prompts
- "Analyze this SQL query:
SELECT * FROM orders WHERE customer_id = 123;and suggest optimizations." - "How can I improve the performance of this join query between tables 'customers' and 'orders'?"
- "Suggest ways to avoid full table scans in my database queries."
Tips & gotchas
The skill requires access to the SQL query you want to optimize. Ensure the AI agent has appropriate permissions to analyze the query and understand the database schema for accurate recommendations.