Agent skill

Database Optimizer

by AratKruglik in AratKruglik/claude-laravel

A skill your agent uses when investigating slow queries, analyzing execution plans, or optimizing database performance.

No licenceAuto-check passedDatabases

Install Database Optimizer

skills CLI
$ npx skills add AratKruglik/claude-laravel --skill database-optimizer -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install AratKruglik/claude-laravel database-optimizer --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/AratKruglik/claude-laravel.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/database-optimizer .claude/skills/database-optimizer && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
database-optimizer
GitHub stars
155
Token cost
~1k tokens
SKILL.md length
341 words
Files
5 (incl. references)
Skills in repo
17
Repo updated
First seen
Licence
None found

At a glance

A skill your agent uses when investigating slow queries, analyzing execution plans, or optimizing database performance.

  • Works in 5 steps: Analyze Performance - Review slow… → Identify Bottlenecks - Find inefficient… → Design Solutions - Create index… → …
  • Investigating slow queries
  • SKILL.md covers Role Definition, When to Use This Skill, Core Workflow and Reference Guide, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Database Optimizer is an agent skill from AratKruglik/claude-laravel. 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. Українською: Оптимізуй базу, повільний запит, план виконання, індекси, N+1, кешування запитів, профілювання, блокування, партиціювання, перепиши запит, аналіз продуктивності.

Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `references/index-strategies.md`, `references/monitoring-analysis.md` and `references/postgresql-tuning.md`).

It sits in Databases, covering Query optimization. It works with MySQL and PostgreSQL.

When your agent uses it

  • Investigating slow queries
  • Analyzing execution plans
  • Optimizing database performance

Example prompts

  • “/database-optimizer”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Analyze Performance - Review slow queries, execution plans, system
  2. Identify Bottlenecks - Find inefficient queries, missing indexes, config
  3. Design Solutions - Create index strategies, query rewrites, schema
  4. Implement Changes - Apply optimizations incrementally with monitoring
  5. Validate Results - Measure improvements, ensure stability, document

What it can do on your machine

Read from SKILL.md and the folder at commit 00e8b99. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Database Optimizer loads about 1k tokens when it runs, and up to ~11k if it reads all its reference files. Until then it costs about 103 tokens; SKILL.md has 341 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~103
When it runs · the whole SKILL.md, loaded when a task matches
~1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~11k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 341 words (~1,042 tokens).

“Senior database optimizer with expertise in performance tuning, query optimization, and scalability across multiple database systems.”

— opening of SKILL.md by AratKruglik
name
database-optimizer
triggers
database optimization, slow query, query performance, database tuning, index optimization, execution plan, EXPLAIN ANALYZE, database performance, PostgreSQL…
role
specialist
scope
optimization
output-format
analysis-and-code

Read the full SKILL.md on GitHub

Files

SKILL.md and 4 other files (references) in .claude/skills/database-optimizer of AratKruglik/claude-laravel.

  • SKILL.md
  • references/index-strategies.md
  • references/monitoring-analysis.md
  • references/postgresql-tuning.md
  • references/query-optimization.md

Open the folder on GitHubat commit 00e8b99

Compare with similar skills

Database Optimizer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Database Optimizer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Database Optimizer this skillAratKruglik/claude-laravel155—~1kAutomated safety check: PassNone
DB Ops SopOpenDCAI/DataMind449—~388Automated safety check: PassApache-2.0
Altimate Data Warehouse DelegateAltimateAI/data-engineering-skills128—~1.4kAutomated safety check: PassMIT
Database OptimizerJeffallan/claude-skills12k—~1.6kAutomated safety check: PassMIT
SQL ProJeffallan/claude-skills12k—~1.3kAutomated safety check: PassMIT
Analyzing Database Indexesjeremylongshore/tons-of-skills-marketplace2.8k—~2kAutomated safety check: PassMIT

Similar skills

  • DB Ops Sop

    OpenDCAI/DataMind

    Database operations runbook — backup, recovery, performance tuning, troubleshooting.

    449 GitHub stars~388 tokensUpdated 19 days ago
    DatabasesAuto-check passed
  • Altimate Data Warehouse Delegate

    AltimateAI/data-engineering-skills

    Delegates dbt and warehouse tasks such as lineage, migrations and cost attribution to the altimate-code CLI agent and relays its answer back.

    128 GitHub stars~1.4k tokensUpdated yesterday
    DatabasesAuto-check passed
  • Database Optimizer

    Jeffallan/claude-skills

    Tunes PostgreSQL and MySQL performance by analyzing slow queries and execution plans, designing indexes, rewriting queries and adjusting configuration, one validated change at a time.

    12k GitHub stars~1.6k tokensUpdated 5 days ago
    DatabasesAuto-check passed
  • SQL Pro

    Jeffallan/claude-skills

    Optimizes SQL queries and designs schemas using CTEs, window functions, covering indexes and EXPLAIN ANALYZE, with notes on dialect differences between major databases.

    12k GitHub stars~1.3k tokensUpdated 5 days ago
    DatabasesAuto-check passed
  • Analyzing Database Indexes

    jeremylongshore/tons-of-skills-marketplace

    Process use when you need to work with database indexing. An agent skill from jeremylongshore/tons-of-skills-marketplace.

    2.8k GitHub stars~2k tokensUpdated today
    DatabasesAuto-check passed
  • Database Optimizer

    zebbern/claude-code-guide

    A skill your agent uses when investigating slow queries, analyzing execution plans, or optimizing database performance.

    4.7k GitHub stars~967 tokensUpdated today
    DatabasesAuto-check passed

More from AratKruglik/claude-laravel

All 17 skills in this repo
  • Laravel Actions Patterns

    AratKruglik/claude-laravel

    A skill your agent uses when working with lorisleiva/laravel-actions package - AsController, AsJob, AsObject, AsListener patterns, handle() signatures, and deciding which trait combination to use…

    155 GitHub stars~1.3k tokensUpdated 5 mo ago
    Auto-check passed
  • Architecture Designer

    AratKruglik/claude-laravel

    A skill your agent uses when designing new system architecture, reviewing existing designs, or making architectural decisions.

    155 GitHub starsUsed in 1 repo~895 tokens
    Auto-check passed
  • Octane Frankenphp Gotchas

    AratKruglik/claude-laravel

    A skill your agent uses when debugging unexpected behavior in Laravel Octane with FrankenPHP - stale data between requests, memory leaks, singleton contamination, static property state, or anything…

    155 GitHub stars~732 tokensUpdated 5 mo ago
    Auto-check passed
  • Pest Testing

    AratKruglik/claude-laravel

    Tests applications using the Pest 4 PHP framework. An agent skill from AratKruglik/claude-laravel.

    155 GitHub stars~1.6k tokensUpdated 5 mo ago
    Auto-check passed
  • Security Reviewer

    AratKruglik/claude-laravel

    A skill your agent uses when conducting security audits, reviewing code for vulnerabilities, or analyzing infrastructure security.

    155 GitHub starsUsed in 1 repo~1.1k tokens
    Auto-check: notes
  • Playwright Skill

    AratKruglik/claude-laravel

    Complete browser automation with Playwright. An agent skill from AratKruglik/claude-laravel.

    155 GitHub starsUsed in 10 repos~3.5k tokens
    Auto-check passed

Works with

Categories

Questions about Database Optimizer

What does Database Optimizer do?

A skill your agent uses when investigating slow queries, analyzing execution plans, or optimizing database performance. Database Optimizer is an agent skill from AratKruglik/claude-laravel. Use when investigating slow queries, analyzing execution plans, or optimizing database performance.

When should I use Database Optimizer?

Database Optimizer fits situations like: investigating slow queries; analyzing execution plans; optimizing database performance.

How do I install Database Optimizer in Claude Code?

Run `npx skills add AratKruglik/claude-laravel --skill database-optimizer -a claude-code`. Or copy the skill folder (.claude/skills/database-optimizer in AratKruglik/claude-laravel) into .claude/skills/database-optimizer in your project. Claude Code loads it when a task matches its description.

How do I install Database Optimizer in Codex?

Run `npx skills add AratKruglik/claude-laravel --skill database-optimizer -a codex`. Or copy the skill folder (.claude/skills/database-optimizer in AratKruglik/claude-laravel) into .agents/skills/database-optimizer in your project. Codex loads it when a task matches its description.

Can I use Database Optimizer in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add AratKruglik/claude-laravel --skill database-optimizer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/database-optimizer, .gemini/skills/database-optimizer, .github/skills/database-optimizer and .opencode/skills/database-optimizer in your project.

What does Database Optimizer need to run?

SKILL.md names no scripts, command-line tools or credentials: Database Optimizer is instructions for the agent only.

Does Database Optimizer access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Database Optimizer safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Database Optimizer use?

No licence was found for Database Optimizer or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Database Optimizer use?

About 1k tokens (SKILL.md is roughly 4.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 10k tokens, read only when the agent opens those files.

What are the alternatives to Database Optimizer?

Skills that share tags, products or a category with Database Optimizer: DB Ops Sop (OpenDCAI/DataMind, 449 stars), Altimate Data Warehouse Delegate (AltimateAI/data-engineering-skills, 128 stars), Database Optimizer (Jeffallan/claude-skills, 12k stars) and SQL Pro (Jeffallan/claude-skills, 12k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Database Optimizer?

AratKruglik (a GitHub user) maintains it in AratKruglik/claude-laravel, which has 155 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on April 20, 2026.

Source: AratKruglik/claude-laravel on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.