Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

Optimise SQL queries and design schemas v1.0.0

Use this resource to optimise a SQL query or design a database schema

New

  • 343 downloads
  • 193 likes
  • 229 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install sql-query-optimization-3

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent analyses why a query is slow from its EXPLAIN or ANALYZE plan, rewrites joins, CTEs and window functions, proposes an indexing strategy and designs or migrates a schema. It can also adapt queries between PostgreSQL, MySQL, SQL Server and Oracle.

Mostly picked by

Updated November 2, 2026

Card for the “Optimise SQL queries and design schemas” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • references/optimization.md and query-patterns.md: query rewrites and indexing strategy
  • references/database-design.md, window-functions.md, dialect-differences.md: schemas, window functions and dialects

Good fit for

  • A reporting query takes minutes to run
  • You are moving an application from MySQL to PostgreSQL

Not for

    Tags

    • sql
    • queries
    • indexes
    • schema

    About

    You say

    “This three-table join takes 40 seconds: read the EXPLAIN ANALYZE plan and suggest indexes.”

    Card for the “Optimise SQL queries and design schemas” skill

    Skill published by jeffallan under the MIT license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to optimise a SQL query or design a database schema
    3. Review and adjust the result

    Content preview

    Files

    • LICENSE1.1 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • references/database-design.md12.6 KB
    • references/dialect-differences.md12.1 KB
    • references/optimization.md10.9 KB
    • references/query-patterns.md7.5 KB
    • references/window-functions.md9 KB
    • SKILL.md5.4 KB

    Origin and licence

    Listed unmodified

    Author
    jeffallan
    Source
    github.com/jeffallan/claude-skills/tree/b7f220d32a0925c9bbfd24995e208e76bb74507c/skills/sql-pro
    Licence
    MIT

    Notice

    « sql-pro » (jeffallan, MIT) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.