Zurück zum Katalog
ModellkuratiertDaten & Analyse

Skill-Dossier

sql-pro

Quellenangabe

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).

Die ursprüngliche Beschreibung der Autorinnen und Autoren, unverändert auf Englisch. Sie beschreibt die Absicht, nicht die geprüfte Leistung.

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

Die Forschungsinhalte dieser Website sind auf Englisch und Chinesisch veröffentlicht und werden hier auf Englisch angezeigt.

Forschungszusammenfassung

Modellkuratiert

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.

Prüfungsumfang

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.

Beobachtbare Fähigkeiten

  • 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.

Grenzen & Umfang

  • 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.

Relevant für

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

Was der Skill enthält

Die Dateiübersicht stammt aus der erfassten Quelle beim protokollierten Commit. Pfade und Größen sind strukturelle Beobachtungen, kein Qualitätsmaß.

Dateien
6
Markdown-Dateien
6
Skripte
0
Verweise
5
Größe
55,7 KB
Strukturelle Komplexität
Niedrig

Dateiübersicht

PfadArtBytes
skills/sql-pro/references/database-design.mdVerweis12,2 KB
skills/sql-pro/references/dialect-differences.mdVerweis11,7 KB
skills/sql-pro/references/optimization.mdVerweis10,6 KB
skills/sql-pro/references/query-patterns.mdVerweis7,3 KB
skills/sql-pro/references/window-functions.mdVerweis8,7 KB
skills/sql-pro/SKILL.mdAnweisung5,3 KB

SKILL.md-Frontmatter

{
  "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"
  }
}

Eine Lesart des Ablaufs

Dieser Workflow rekonstruiert die offensichtliche Reihenfolge aus dem Quellmaterial. Sofern nicht ausdrücklich eine kontrollierte Evaluation protokolliert ist, ist er vorläufig und keine beobachtete Ausführung.

  1. 01
    Eingabe

    Match the request

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

  2. 02
    Aktion

    Design set-based queries

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

  3. 03
    Entscheidung

    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
    Ausgabe

    Deliver query and rationale

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

Mögliche Risikoflächen

Statische Befunde zeigen Stellen, die vor der Installation zu prüfen sind. Sie belegen nicht, dass ein Skill sicher, bösartig oder wirksam ist.

Punkte, die eine Prüfung erfordern

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.

NetzwerkzugriffBeobachtet
DateischreibzugriffeBeobachtet
Verwendung von ZugangsdatenNicht beobachtet
Hinweis

File modification is described or implemented

50 Vorkommen

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.

Mittel

Network access is mentioned

6 Vorkommen

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.

Redaktioneller Sicherheitshinweis

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

Wo Kontext verbraucht werden kann

Discovery-, Aktivierungs- und Ressourcenschichten haben unterschiedliche Bedeutung. Exakte Werte erscheinen nur, wenn die offizielle Zählmethode mit einem benannten Modell lief.

Keine exakten Token-Zählwerte verfügbar

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

Es wurde keine Token-Messung mit der vorgeschriebenen offiziellen Methode erfasst. Dieses Dossier ersetzt sie nicht durch Zeichenanzahl, Dateigröße oder Schätzwerte.

Kontrollierte Evaluation

Keine kontrollierte Evaluation

Für diesen Skill liegen nur die oben genannten Belege vor. Es wird keine Aufgabenerfolgsquote, Token-Effizienz, Latenz oder kein Qualitätsvorteil behauptet.

Nicht getestet

Verwendung mit der Quelle im Blick

Installationsbefehl
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.
Installation prüfen

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

Voraussetzungen

  • 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.

Beispiel-Prompts

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.

Ein Urteil, mit seinen Grenzen

Stärken

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

Abwägungen

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

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

Konstruktiv nachvollziehbar

Das Dossier ist eine zeitlich begrenzte Lesart eines öffentlichen Artefakts, keine Empfehlung. Über den Quelllink können Sie das exakte Upstream-Material prüfen.

Jeffallanclaude-skillsskills/sql-pro
Quellenart
Community
Commit
67c1961b180dc92cf08983344627109e983e8f51
Erfasst
20. Nov. 2026
Zuletzt geprüft
20. Nov. 2026
Upstream-Lizenz
MIT
Repository-Sterne
12.469
Inhaltsgrundlage

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.