Optimize Query — Data skill for Claude Code
Optimize a slow query or endpoint — capture, EXPLAIN, diagnose, produce a fix plan, hand to database/backend developer.
How to install Optimize Query
Installs to ~/.claude/skills/hamzaalayed-laravel-claude-agents-optimize-query/SKILL.md
mkdir -p ~/.claude/skills/hamzaalayed-laravel-claude-agents-optimize-query && curl -fsSL https://raw.githubusercontent.com/HamzaAlayed/laravel-claude-agents/HEAD/commands/optimize-query.md -o ~/.claude/skills/hamzaalayed-laravel-claude-agents-optimize-query/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Optimize Query does
description: Optimize a slow query or endpoint — capture, EXPLAIN, diagnose, produce a fix plan, hand to database/backend developer. argument-hint: [--adaptive] allowed-tools: Agent, Read, Write, Edit, Bash, Grep, Glob, AskUserQuestion
Optimize query — `{{args}}`
**Delegation:** Spawn each specialist by its registered agent type as it appears in your available-agents list — prefixed when installed as a plugin (e.g. `laravel-team:backend-developer`),
Alternatives in Data
- Build Failure — Diagnose elasticsearch-js CI and local build failures 5.3k ★
- LLM Redteam — LLM red-team corpus runner — fires categorized prompt-injection / jailbreak / system-prompt-leak / data-exfil 4.5k ★
- Portaljs Architect — Recommend a data-portal architecture (storage, compute, catalog, access, hosting, metadata) from your needs, t 2.3k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
DB Profile
Profile database queries with EXPLAIN ANALYZE, diagnose slow scans, and recommend indexes.
Ssms Claude Chat
SSMS Claude Chat: free Claude AI assistant for SQL Server Management Studio (SSMS 21/22). Ask about your datab
Database Optimizer
Optimize SQL queries, design efficient indexes, and handle database migrations. Solves N+1 problems, slow quer
CI Debug
Diagnose CI pipeline failures by reading logs, identifying root cause, and suggesting or applying a fix
Index Fix
Diagnose and fix non-indexed pages using GSC and Bing data
Fk Doctor
Diagnose any FrameWeaver error and prescribe a fix. Knows the full error taxonomy across Google Flow, the Chro
Related Agents
General Backend Developer
Use this agent proactively when you need to design, implement, or optimize backend API systems, including REST
Bk Query Optimizer
Diagnoses a slow query from its EXPLAIN plan (logical reads, plan shape), read-only, never printing credential
Timps API Perf Profiler
Profile an API from access logs / traces — p50/p95/p99 by endpoint, slow query, N+1 detection, and concrete op