Zurück zum Katalog
ModellkuratiertDaten & Analyse

Skill-Dossier

database-optimizer

Quellenangabe

Optimizes database queries and improves performance across PostgreSQL and MySQL systems. Use when investigating slow queries, analyzing execution plans, or optimizing database performance. Invoke for index design, query rewrites, configuration tuning, partitioning strategies, lock contention resolution.

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

Optimizes database queries and improves performance across PostgreSQL and MySQL systems. Use when investigating slow queries, analyzing execution plans, or optimizing database performance. Invoke for index design, query rewrites, configuration tuning, partitioning strategies, lock contention resolution.

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

Optimizes slow PostgreSQL and MySQL queries by capturing a baseline with EXPLAIN ANALYZE, changing one thing at a time, and comparing before and after.

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

  • Captures baseline metrics and execution plans before any change.
  • Identifies inefficient queries, missing indexes and configuration issues.
  • Designs index strategies, including CREATE INDEX CONCURRENTLY on PostgreSQL, and query rewrites.
  • Validates results by re-running EXPLAIN ANALYZE and documenting before and after metrics.

Grenzen & Umfang

  • Covers PostgreSQL and MySQL only; other engines are out of scope.
  • Needs access to a database and extensions such as pg_stat_statements, which this review did not test.
  • Index and config suggestions depend on your data and workload; none are verified here.

Relevant für

  • Developers investigating slow queries
  • DBAs tuning indexes and configuration
  • Teams addressing lock contention

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
54,7 KB
Strukturelle Komplexität
Niedrig

Dateiübersicht

PfadArtBytes
skills/database-optimizer/references/index-strategies.mdVerweis7,9 KB
skills/database-optimizer/references/monitoring-analysis.mdVerweis14,3 KB
skills/database-optimizer/references/mysql-tuning.mdVerweis10,8 KB
skills/database-optimizer/references/postgresql-tuning.mdVerweis10 KB
skills/database-optimizer/references/query-optimization.mdVerweis5,7 KB
skills/database-optimizer/SKILL.mdAnweisung6,1 KB

SKILL.md-Frontmatter

{
  "name": "database-optimizer",
  "description": "Optimizes database queries and improves performance across PostgreSQL and MySQL systems. Use when investigating slow queries, analyzing execution plans, or optimizing database performance. Invoke for index design, query rewrites, configuration tuning, partitioning strategies, lock contention resolution.",
  "license": "MIT",
  "metadata": {
    "author": "https://github.com/Jeffallan",
    "company": "https://synergetic.solutions",
    "version": "1.1.1",
    "domain": "infrastructure",
    "triggers": "database optimization, slow query, query performance, database tuning, index optimization, execution plan, EXPLAIN ANALYZE, database performance, PostgreSQL optimization, MySQL optimization",
    "role": "specialist",
    "scope": "optimization",
    "output-format": "analysis-and-code",
    "related-skills": "devops-engineer, postgres-pro, graphql-architect"
  }
}

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

    Capture baseline

    Capture baseline metrics and run EXPLAIN ANALYZE before any changes.

  2. 02
    Aktion

    Implement incrementally

    Apply optimizations incrementally with monitoring, validating each change before the next.

  3. 03
    Entscheidung

    Revert on regression

    Test in non-production first and revert if write performance degrades or replication lag increases.

  4. 04
    Ausgabe

    Deliver analysis and SQL

    Provide baseline analysis, root causes with EXPLAIN evidence, implementation SQL and validation queries.

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

68 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

63 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 63 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

5 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 5 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 its SQL and index changes in non-production first and review them before touching a production database.

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/database-optimizer # .claude/skills/database-optimizer
  1. Open the pinned source at https://github.com/Jeffallan/claude-skills/blob/67c1961b180dc92cf08983344627109e983e8f51/skills/database-optimizer/SKILL.md.
  2. Review the license, prerequisites and all bundled reference files.
  3. Install the skill 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 database-optimizer/SKILL.md exists at the destination, then ask Claude Code to use the database-optimizer skill on a small test task.

Voraussetzungen

  • Covers PostgreSQL and MySQL only; other engines are out of scope.
  • Needs access to a database and extensions such as pg_stat_statements, which this review did not test.
  • Index and config suggestions depend on your data and workload; none are verified here.

Beispiel-Prompts

Representative task

Use the database-optimizer skill to analyze this slow PostgreSQL query on orders and customers, capture EXPLAIN (ANALYZE, BUFFERS) as a baseline, propose one index change and show how to validate it.

Inspect before use

Read the database-optimizer skill at https://github.com/Jeffallan/claude-skills/blob/67c1961b180dc92cf08983344627109e983e8f51/skills/database-optimizer/SKILL.md and its referenced files. 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 a measured baseline and one change at a time so impact can be attributed.
  • Explicitly warns about write amplification and replication lag.

Abwägungen

  • Index creation and config changes can be costly on large production tables.
  • Statistics and vacuum maintenance are ongoing work beyond a single session.
Forschungsfazit

A measurement-first tuning guide that is only as safe as the non-production testing you do with it.

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/database-optimizer
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.