mentor-wizard-webapp: Skill for Claude Code

.claude/skills/database-optimizer/SKILL.md

database-optimizer is a skill for Claude Code from Mentor-Wizard/mentor-wizard-webapp. It costs 102 tokens per session (854 once invoked), scanned A, original, no licence file.

A database performance helper for investigating slow queries, reading execution plans, and improving how a database handles requests.

In plain words
What is it for?
Use it to design indexes, rewrite queries, tune database settings, handle partitioning or lock contention, and investigate repeated-query problems.
Why use it?
It helps find causes of slow database access, such as unsuitable indexes, inefficient queries, lock conflicts, or poor configuration.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is Mentor-Wizard/mentor-wizard-webapp's own configuration. It tells Claude Code how to work on mentor-wizard-webapp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mentor-wizard-webapp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Mentor-Wizard/mentor-wizard-webapp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Mentor-Wizard/mentor-wizard-webapp/develop/.claude/skills/database-optimizer/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Mentor-Wizard/mentor-wizard-webapp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for database-optimizer

README.md
[![agentmods](https://agentmods.dev/badge/skills/mentor-wizard/mentor-wizard-webapp/database-optimizer/github.svg)](https://agentmods.dev/skills/mentor-wizard/mentor-wizard-webapp/database-optimizer)
Your own site
<a href="https://agentmods.dev/skills/mentor-wizard/mentor-wizard-webapp/database-optimizer"><img src="https://agentmods.dev/badge/skills/mentor-wizard/mentor-wizard-webapp/database-optimizer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for database-optimizer

Your own site · 80×15
<a href="https://agentmods.dev/skills/mentor-wizard/mentor-wizard-webapp/database-optimizer"><img src="https://agentmods.dev/badge/skills/mentor-wizard/mentor-wizard-webapp/database-optimizer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 854 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00102 $0.00854
Opus 5.5 $0.00041 $0.00342
Sonnet 5.5 $0.00020 $0.00171
Haiku 4.5 $0.00010 $0.00085

Measured 1mo ago against content hash 62ca691451e2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

database-optimizer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/database-optimizer/SKILL.md · 115 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 115 lines · 102 tokens per session scan A 62ca691451e2

Subscribe to this mod's changes

database-optimizer is a skill published in the GitHub repository Mentor-Wizard/mentor-wizard-webapp (10 stars, last pushed 3d ago), with no licence file. It adds 102 tokens to every session and 854 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

Other skills, from other repositories

mysql-patterns

Use when designing MySQL schema features or applying advanced MySQL patterns in Laravel — upserts, JSON columns, full-text search, partitioning, replication/read-write splitting, and deadlock handling — beyond the query tuning already in the SQL rules.

pekral/cursor-rules · 53 tokens

postgres-patterns

Use when designing PostgreSQL schema features or applying advanced Postgres patterns in Laravel — GIN/BRIN/partial/covering indexes, jsonb, ON CONFLICT upserts, SKIP LOCKED queue workers, cursor pagination, RLS, and timestamptz/numeric typing — beyond the query tuning already in the SQL rules.

pekral/cursor-rules · 73 tokens

redis-patterns

Use when using Redis in a Laravel app — caching strategies, atomic/distributed locks, rate limiting, stampede protection, pub/sub, pipelines, and key/TTL design beyond raw query tuning.

pekral/cursor-rules · 43 tokens

laravel-eloquent

Eloquent and query-layer engineering rules for Laravel — eliminating N+1, choosing a pagination strategy, short atomic transactions, casts and scopes on the model, where raw SQL is allowed, and how migrations declare the schema those queries depend on. Use when writing or reviewing Eloquent models, migrations, query…

Foysal50x/skills · 93 tokens

Laravel Eloquent N+1 and Query Efficiency Review

Detects N+1 query patterns (relation access inside loops without eager loading), full-table get()/all() loads, and unsafe chunk()/cursor() usage in Laravel Eloquent code.

s977043/river-review · 48 tokens

Laravel Migration Safety Review

Reviews Laravel migrations for destructive operations, change() dropping modifiers, locking index creation on large tables (PostgreSQL), and asymmetric down().

s977043/river-review · 32 tokens