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.

Tune a T-SQL query from evidence v1.0.0

Use this resource to diagnose and fix a slow T-SQL query

New

  • 486 downloads
  • 115 likes
  • 180 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install tsql-query-tuning-workflow

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 validates the schema, finds the bottleneck from the plan and statistics, then proposes a rewrite or change before any index or hint. You get a diagnosis backed by evidence.

Mostly picked by

Updated November 2, 2026

Card for the “Tune a T-SQL query from evidence” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • SKILL.md: step-by-step workflow, sargability rules and output format
  • references/dmv-diagnostic-queries.md: DMV diagnostic queries
  • references/rewrite-proof-harnesses.md: rewrite proof harnesses

Good fit for

  • A slow query scans instead of seeking
  • You want to verify a rewrite before adding an index or hint

Not for

    Tags

    • sql server
    • tuning
    • execution plan
    • sargability
    • queries

    About

    You say

    “This orders query takes 40 seconds: diagnose it from the execution plan.”

    Card for the “Tune a T-SQL query from evidence” skill

    Skill published by josiahsiegel 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 diagnose and fix a slow T-SQL query
    3. Review and adjust the result

    Content preview

    Files

    • LICENSE1.1 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • references/dmv-diagnostic-queries.md10.2 KB
    • references/rewrite-proof-harnesses.md6.1 KB
    • SKILL.md8.4 KB

    Origin and licence

    Listed unmodified

    Author
    josiahsiegel
    Source
    github.com/josiahsiegel/claude-plugin-marketplace/tree/5a1b1123b9e50aa9a66a61005ca6fe012cc7442d/plugins/tsql-master/skills/query-optimization
    Licence
    MIT

    Notice

    « query-optimization » (josiahsiegel, 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.