Torna al catalogo
Curato dal modelloDati e analisi

Dossier della skill

sql-pro

Dichiarazione di fonte

Optimizes SQL queries, designs database schemas, and troubleshoots performance issues. Use when a user asks why their query is slow, needs help writing complex joins or aggregations, mentions database performance issues, or wants to design or migrate a schema. Invoke for complex queries, window functions, CTEs, indexing strategies, query plan analysis, covering index creation, recursive queries, EXPLAIN/ANALYZE interpretation, before/after query benchmarking, or migrating queries between database dialects (PostgreSQL, MySQL, SQL Server, Oracle).

La descrizione originale dell'autore, conservata in inglese. Descrive l'intento, non prestazioni verificate.

Optimizes SQL queries, designs database schemas, and troubleshoots performance issues. Use when a user asks why their query is slow, needs help writing complex joins or aggregations, mentions database performance issues, or wants to design or migrate a schema. Invoke for complex queries, window functions, CTEs, indexing strategies, query plan analysis, covering index creation, recursive queries, EXPLAIN/ANALYZE interpretation, before/after query benchmarking, or migrating queries between database dialects (PostgreSQL, MySQL, SQL Server, Oracle).

datareferences

I contenuti di ricerca di questo sito sono pubblicati in inglese e cinese e qui sono mostrati in inglese.

Sintesi della ricerca

Curato dal modello

Skill Atlas model curation · model-curated-1.0.0

Guides SQL query optimization and schema design: analyze the schema, write set-based queries with CTEs and window functions, then check execution plans with EXPLAIN ANALYZE.

Ambito della revisione

Deterministic static analysis of collected SKILL.md and supporting text/code. Machine-assisted candidates and findings are static-analysis candidates; no dynamic behavior or effect is assessed.

Capacità osservabili

  • Reviews schema, indexes and query patterns to find bottlenecks.
  • Designs set-based queries using CTEs, window functions and appropriate joins.
  • Interprets EXPLAIN ANALYZE output and proposes covering indexes.
  • Provides query explanations, index rationale and before/after metrics.

Limiti e ambito

  • The skill's own examples lean toward PostgreSQL; other dialects rely on a separate reference file.
  • Plan analysis needs access to a real database and representative data volumes.
  • The sub-100ms target in the workflow is a stated goal; results are not verified here.

Utile per

  • Developers debugging slow queries
  • Engineers designing or migrating schemas
  • Teams moving queries between database dialects

Cosa contiene la skill

L'inventario dei file proviene dal sorgente raccolto al commit registrato. Percorsi e dimensioni sono osservazioni strutturali, non una misura di qualità.

file
6
File Markdown
6
script
0
riferimenti
5
Dimensione
55,7 KB
Complessità strutturale
Bassa

Inventario dei file

PercorsoTipoByte
skills/sql-pro/references/database-design.mdRiferimento12,2 KB
skills/sql-pro/references/dialect-differences.mdRiferimento11,7 KB
skills/sql-pro/references/optimization.mdRiferimento10,6 KB
skills/sql-pro/references/query-patterns.mdRiferimento7,3 KB
skills/sql-pro/references/window-functions.mdRiferimento8,7 KB
skills/sql-pro/SKILL.mdIstruzione5,3 KB

Frontmatter di SKILL.md

{
  "name": "sql-pro",
  "description": "Optimizes SQL queries, designs database schemas, and troubleshoots performance issues. Use when a user asks why their query is slow, needs help writing complex joins or aggregations, mentions database performance issues, or wants to design or migrate a schema. Invoke for complex queries, window functions, CTEs, indexing strategies, query plan analysis, covering index creation, recursive queries, EXPLAIN/ANALYZE interpretation, before/after query benchmarking, or migrating queries between database dialects (PostgreSQL, MySQL, SQL Server, Oracle).",
  "license": "MIT",
  "metadata": {
    "author": "https://github.com/Jeffallan",
    "company": "https://synergetic.solutions",
    "version": "1.1.0",
    "domain": "language",
    "triggers": "SQL optimization, query performance, database design, PostgreSQL, MySQL, SQL Server, window functions, CTEs, query tuning, EXPLAIN plan, database indexing",
    "role": "specialist",
    "scope": "implementation",
    "output-format": "code",
    "related-skills": "devops-engineer"
  }
}

Una lettura della sequenza operativa

Questo workflow ricostruisce la sequenza apparente a partire dal materiale sorgente. A meno che sia registrata esplicitamente una valutazione controllata, è provvisorio e non una traccia osservata.

  1. 01
    Input

    Match the request

    Check the description triggers: slow queries, complex joins, window functions, schema design or dialect migration.

  2. 02
    Azione

    Design set-based queries

    Create set-based operations using CTEs, window functions and appropriate joins.

  3. 03
    Decisione

    Verify with EXPLAIN ANALYZE

    Confirm no sequential scans on large tables; if the sub-100ms target is missed, iterate on indexes or rewrite.

  4. 04
    Output

    Deliver query and rationale

    Provide the optimized query, required indexes, plan analysis and performance metrics.

Possibili superfici di rischio

I rilievi statici indicano i punti da esaminare prima dell'installazione. Non stabiliscono che una skill sia sicura, dannosa o efficace.

Elementi da rivedere

56 deterministic lexical finding(s) require review across the collected text. Findings can occur in documentation and do not prove execution or exploitability; binary-only files were not scanned.

Accesso alla reteOsservato
Scritture su fileOsservato
Uso di credenzialiNon osservato
Nota

File modification is described or implemented

50 occorrenze

This line contains a possible file-write or redirection operation. Check destination paths and overwrite behavior; the static review did not write any file. This rule matched 50 location(s) in the collected text; 3 representative location(s) are cited. Matching text may be documentation, and the analyzer did not execute it.

Medio

Network access is mentioned

6 occorrenze

A URL or network client appears in this source line. Review destinations, data sent, and trust boundaries; static text cannot establish actual network activity. This rule matched 6 location(s) in the collected text; 3 representative location(s) are cited. Matching text may be documentation, and the analyzer did not execute it.

Nota di sicurezza editoriale

Run EXPLAIN ANALYZE and any generated DDL against a non-production copy first, since it executes queries and creates indexes.

Dove può essere consumato il contesto

I livelli di individuazione, attivazione e risorse hanno significati diversi. I valori esatti compaiono solo quando il metodo ufficiale di conteggio è stato eseguito con un modello indicato.

Conteggio esatto dei token non disponibile

All token values, including per-file inventory, are null until the pipeline performs an official exact count with an explicit model.

Non è stata registrata alcuna misura dei token con il metodo ufficiale richiesto. Questo dossier non la sostituisce con conteggi di caratteri, dimensioni dei file o stime.

Valutazione controllata

Nessuna valutazione controllata

Questa skill dispone solo delle evidenze indicate sopra. Non si afferma alcun tasso di successo, efficienza in token, latenza o vantaggio di qualità.

Non testato

Usare tenendo il sorgente in vista

Comando di installazione
git clone https://github.com/Jeffallan/claude-skills.git cd claude-skills # Copy this skill directory into one of: # ~/.claude/skills/sql-pro # .claude/skills/sql-pro
  1. Open the pinned source at https://github.com/Jeffallan/claude-skills/blob/67c1961b180dc92cf08983344627109e983e8f51/skills/sql-pro/SKILL.md.
  2. Review the license, prerequisites and all bundled reference files.
  3. Copy the skill directory into a personal or project-level Claude Code skills directory.
  4. Restart or refresh Claude Code so the skill can be discovered.
Verifica dell'installazione

Confirm SKILL.md is discoverable at the destination, then ask Claude Code to use sql-pro on a small task.

Prerequisiti

  • The skill's own examples lean toward PostgreSQL; other dialects rely on a separate reference file.
  • Plan analysis needs access to a real database and representative data volumes.
  • The sub-100ms target in the workflow is a stated goal; results are not verified here.

Prompt di esempio

Representative task

Use the sql-pro skill to speed up a slow query that joins orders and customers filtered on created_at in the last 30 days. Analyze the EXPLAIN ANALYZE output, propose a covering index and show the before and after query.

Inspect before use

Read the sql-pro skill at https://github.com/Jeffallan/claude-skills/blob/67c1961b180dc92cf08983344627109e983e8f51/skills/sql-pro/SKILL.md. Explain its workflow, required tools, permissions and the main risks before I decide whether to install it.

Un giudizio, con i suoi limiti

Punti di forza

  • Requires reading execution plans before recommending optimizations.
  • Explicit MUST DO and MUST NOT DO lists, such as avoiding SELECT * and cursors.

Aspetti da valutare

  • Running EXPLAIN ANALYZE executes the query, which matters on production databases.
  • Index recommendations need validation against real workloads.
Conclusione della ricerca

A practical checklist-driven skill for query tuning when you can inspect real execution plans.

Tracciabile per costruzione

Il dossier è una lettura circoscritta nel tempo di un artefatto pubblico, non un'approvazione. Usa il link al sorgente per esaminare il materiale upstream esatto.

Jeffallanclaude-skillsskills/sql-pro
Tipo di fonte
Community
Commit
67c1961b180dc92cf08983344627109e983e8f51
Raccolta
20 nov 2026
Ultimo controllo
20 nov 2026
Licenza upstream
MIT
Stelle del repository
12.469
Base dei contenuti

Deterministic lexical parsing, YAML frontmatter validation, file inventory, source-described workflow extraction, and heuristic provisional classification of the supplied files only. Generated by machine; no LLM, execution, or dynamic testing.