Skip to content
TrustedSkillsbeta
Back to all skills

Sql Optimization Patterns

Listed
sickn33·vlatest·database·MIT

Helps 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. 1

    Run this in your project

    terminal
    $ npx skills add sickn33/agentic-awesome-skills --skill sql-optimization-patterns -a claude-code
  2. Uses the open-source skills CLI and needs Node.js. Add -g to install it for your user instead of this project.

What we know about this skill

Publisher

sickn33

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.

No human has reviewed this code. The checks below are a static scan of the files at one commit — nobody has run this skill or judged whether it works. A skill runs with whatever access you give your agent, so read the source before you install it.

Automated safety checks

scanned

This skill failed 1 of 6 checks. A failure is not proof of bad intent; it means something in the code needs a human to look at it before you run it.

  • Declares what it does: failed

    No SKILL.md was found in the skill's directory.

    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 sickn33/agentic-awesome-skills at c808e6e480.

    The exact upstream commit SHA that was scanned is recorded, so the result refers to specific bytes.

Scanned
0 files
Copies in repo
3 — all of them scanned
This is a static scan, not a review. It reads the skill's files; it does not run them, and it cannot tell you whether the skill is any good or whether the code does what its description says. A skill runs with whatever access you give your agent.
What each check looks for →

About this skill

What it does

This skill equips AI agents with advanced SQL query optimization techniques to improve database performance and reduce execution time. It enables agents to automatically analyze, rewrite, and tune complex queries for efficiency across various relational database systems.

When to use it

  • Diagnosing slow-running reports or dashboards caused by inefficient joins or subqueries.
  • Preparing large-scale data exports where query execution time impacts operational costs.
  • Refactoring legacy SQL codebases that lack proper indexing strategies or partitioning.
  • Optimizing real-time analytics pipelines requiring low-latency data retrieval.

Key capabilities

  • Identifying full table scans and suggesting appropriate index creation.
  • Rewriting nested queries into more efficient CTEs or JOIN structures.
  • Analyzing execution plans to pinpoint bottlenecks in query logic.
  • Applying best practices for parameterization to prevent SQL injection risks.

Example prompts

  • "Optimize this slow-running SELECT statement that joins five tables with no indexes."
  • "Analyze the execution plan of my daily aggregation query and suggest performance improvements."
  • "Rewrite this complex subquery using Common Table Expressions (CTEs) for better readability and speed."

Tips & gotchas

Ensure your database schema includes proper indexing before relying solely on query rewriting, as structural changes often yield greater gains. Always test optimized queries in a staging environment to verify correctness before deploying to production systems.