Retour au catalogue
Annoté par modèleDonnées et analyse

Dossier du skill

sql-pro

Déclaration de la source

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 description originale de l'auteur, conservée en anglais. Elle décrit l'intention, pas des performances vérifiées.

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

Le contenu de recherche de ce site est publié en anglais et en chinois ; il est affiché ici en anglais.

Résumé de la recherche

Annoté par modèle

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.

Portée de l'examen

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és observables

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

Limites et portée

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

Pertinent pour

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

Ce que contient le skill

L'inventaire des fichiers provient de la source collectée au commit consigné. Les chemins et les tailles sont des observations structurelles, pas une mesure de qualité.

fichiers
6
Fichiers Markdown
6
scripts
0
références
5
Taille
55,7 KB
Complexité structurelle
Faible

Inventaire des fichiers

CheminTypeOctets
skills/sql-pro/references/database-design.mdRéférence12,2 KB
skills/sql-pro/references/dialect-differences.mdRéférence11,7 KB
skills/sql-pro/references/optimization.mdRéférence10,6 KB
skills/sql-pro/references/query-patterns.mdRéférence7,3 KB
skills/sql-pro/references/window-functions.mdRéférence8,7 KB
skills/sql-pro/SKILL.mdInstruction5,3 KB

Frontmatter du 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"
  }
}

Une lecture de la séquence de fonctionnement

Ce workflow reconstitue la séquence apparente à partir du matériel source. Sauf si une évaluation contrôlée est explicitement consignée, il est provisoire et non une trace observée.

  1. 01
    Entrée

    Match the request

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

  2. 02
    Action

    Design set-based queries

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

  3. 03
    Décision

    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
    Sortie

    Deliver query and rationale

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

Surfaces de risque potentielles

Les constats statiques signalent les points à examiner avant l'installation. Ils n'établissent pas qu'un skill est sûr, malveillant ou efficace.

Éléments à examiner

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.

Accès réseauObservé
Écritures de fichiersObservé
Utilisation d'identifiantsNon observé
Note

File modification is described or implemented

50 occurrences

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.

Moyen

Network access is mentioned

6 occurrences

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.

Note de sécurité éditoriale

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

Où le contexte peut être consommé

Les couches de découverte, d'activation et de ressources n'ont pas la même signification. Les valeurs exactes n'apparaissent que si la méthode officielle de comptage a été exécutée avec un modèle nommé.

Comptage exact des tokens indisponible

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

Aucune mesure de tokens n'a été consignée selon la méthode officielle requise. Ce dossier ne la remplace ni par un nombre de caractères, ni par une taille de fichier, ni par une estimation.

Évaluation contrôlée

Aucune évaluation contrôlée

Ce skill ne dispose que des preuves identifiées ci-dessus. Aucun taux de réussite, gain d'efficience en tokens, latence ou avantage de qualité n'est affirmé.

Non testé

Utiliser en gardant la source en vue

Commande d'installation
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.
Vérifier l'installation

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

Prérequis

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

Exemples de 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.

Une conclusion, avec ses limites

Points forts

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

Points d'attention

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

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

Traçable par construction

Le dossier est une lecture datée d'un artefact public, pas une approbation. Utilisez le lien source pour examiner le contenu amont exact.

Jeffallanclaude-skillsskills/sql-pro
Type de source
Communauté
Commit
67c1961b180dc92cf08983344627109e983e8f51
Collecté
20 nov. 2026
Dernière vérification
20 nov. 2026
Licence amont
MIT
Étoiles du dépôt
12 469
Base du contenu

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.