Volver al catálogo
Curado por modeloDatos y análisis

Dosier de la skill

database-optimizer

Declaración de origen

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.

La descripción original del autor, conservada en inglés. Describe la intención, no un rendimiento verificado.

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

El contenido de investigación de este sitio está publicado en inglés y chino, y aquí se muestra en inglés.

Resumen de la investigación

Curado por modelo

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.

Alcance de la revisión

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.

Capacidades observables

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

Limitaciones y alcance

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

Relevante para

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

Qué incluye la skill

El inventario de archivos procede del código fuente recopilado en el commit registrado. Las rutas y los tamaños son observaciones estructurales, no una medida de calidad.

archivos
6
Archivos Markdown
6
scripts
0
referencias
5
Tamaño
54,7 KB
Complejidad estructural
Baja

Inventario de archivos

RutaTipoBytes
skills/database-optimizer/references/index-strategies.mdReferencia7,9 KB
skills/database-optimizer/references/monitoring-analysis.mdReferencia14,3 KB
skills/database-optimizer/references/mysql-tuning.mdReferencia10,8 KB
skills/database-optimizer/references/postgresql-tuning.mdReferencia10 KB
skills/database-optimizer/references/query-optimization.mdReferencia5,7 KB
skills/database-optimizer/SKILL.mdInstrucción6,1 KB

Frontmatter de SKILL.md

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

Una lectura de la secuencia de funcionamiento

Este flujo de trabajo reconstruye la secuencia aparente a partir del material de origen. A menos que se registre explícitamente una evaluación controlada, es provisional y no un seguimiento observado.

  1. 01
    Entrada

    Capture baseline

    Capture baseline metrics and run EXPLAIN ANALYZE before any changes.

  2. 02
    Acción

    Implement incrementally

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

  3. 03
    Decisión

    Revert on regression

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

  4. 04
    Salida

    Deliver analysis and SQL

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

Posibles superficies de riesgo

Los hallazgos estáticos señalan puntos que conviene revisar antes de instalar. No establecen que una skill sea segura, maliciosa ni eficaz.

Elementos que requieren revisión

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.

Acceso a la redObservado
Escrituras de archivosObservado
Uso de credencialesNo observado
Nota

File modification is described or implemented

63 ocurrencias

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.

Media

Network access is mentioned

5 ocurrencias

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.

Evidencia en el código fuenteskills/database-optimizer/SKILL.md:L6
Evidencia en el código fuenteskills/database-optimizer/SKILL.md:L7
Evidencia en el código fuenteskills/database-optimizer/SKILL.md:L91
Nota de seguridad editorial

Run its SQL and index changes in non-production first and review them before touching a production database.

Dónde puede consumirse el contexto

Las capas de descubrimiento, activación y recursos tienen significados distintos. Los valores exactos solo aparecen cuando el método oficial de recuento se ejecutó con un modelo identificado.

Recuento exacto de tokens no disponible

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

No se registró ninguna medición de tokens con el método oficial requerido. Este dosier no la sustituye por recuentos de caracteres, tamaños de archivo ni estimaciones.

Evaluación controlada

Sin evaluación controlada

Esta skill solo cuenta con las evidencias indicadas arriba. No se afirma ninguna tasa de éxito, eficiencia de tokens, latencia ni ventaja de calidad.

Sin probar

Úsala con el código fuente a la vista

Comando de instalación
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.
Verificar la instalación

Confirm database-optimizer/SKILL.md exists at the destination, then ask Claude Code to use the database-optimizer skill on a small test task.

Requisitos previos

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

Prompts de ejemplo

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.

Una decisión, con sus límites

Fortalezas

  • Requires a measured baseline and one change at a time so impact can be attributed.
  • Explicitly warns about write amplification and replication lag.

Aspectos a considerar

  • Index creation and config changes can be costly on large production tables.
  • Statistics and vacuum maintenance are ongoing work beyond a single session.
Conclusión de la investigación

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

Trazable por construcción

El dosier es una lectura acotada en el tiempo de un artefacto público, no un respaldo. Usa el enlace al código fuente para inspeccionar el material original exacto.

Jeffallanclaude-skillsskills/database-optimizer
Tipo de origen
Comunidad
Commit
67c1961b180dc92cf08983344627109e983e8f51
Recopilado
20 nov 2026
Última comprobación
20 nov 2026
Licencia original
MIT
Estrellas del repositorio
12.469
Base del contenido

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.