eliyce/paqad-ai/index-optimization
Claude Code and agent skill by eliyce/paqad-ai
- community
Checking that the SKILL.md file is still in the repository.
Reviews and improves indexing for changed data paths. Use when a request adds filters, sorts, joins, uniqueness rules or query-heavy flows that depend on index coverage.
Install
npx vskill@latest install eliyce/paqad-ai/index-optimizationSKILL.md
The same SKILL.md was published earlier as eliyce/paqad-ai/index-optimization.
What It Does
Evaluates whether changed query paths have the right supporting indexes and explains tradeoffs without drifting into speculative indexing unrelated to the current request.
Use This When
When a request introduces new filters, sorts, joins, uniqueness rules, or query-heavy flows that depend on index coverage.
Inputs
- Read the changed query paths, migrations, and existing index docs first.
- Read
runtime/capabilities/coding/checklists/database-review-20pt.mdandreferences/index-review-guide.mdbefore evaluating changes. - Read any query inventory or performance notes tied to the affected module.
Procedure
- Run
scripts/scan-query-shapes.sh <files...>to surface query patterns implying index requirements. - Cross-reference each shape with
assets/index-rules.txtto know which index shape actually serves it. - Audit existing index docs for redundancy and ordering against those shapes.
- Bucket findings into Correctness / Migration Safety / Performance per
assets/output.template.md. - Validate with
scripts/lint-output.sh. Recommend only indexes that serve the changed behavior or a directly adjacent hot path, no speculative.
Output Contract
- Return sections named
Correctness Risks,Migration Safety Risks, andPerformance Risks. - For each item, name the query path or index and the reason it is risky or recommended.
- If no changes are needed, state
Performance Risks: noneand keep the other buckets explicit.
Escalate / Stop Conditions
- Ask when workload shape, row volume, or hot-path expectations are missing and materially change the recommendation.
- Warn when an index recommendation would meaningfully increase write cost or migration risk.
- Do not suggest speculative indexes without a concrete changed access pattern.
Resources
references/index-review-guide.mdscripts/scan-query-shapes.shscripts/lint-output.shassets/output.template.mdassets/index-rules.txtruntime/capabilities/coding/checklists/database-review-20pt.mdagents/openai.yaml
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingruntime/capabilities/coding/skills/index-optimization/SKILL.md
Popularity
- Repository stars
- 8
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/eliyce/paqad-ai/index-optimization)