scrypster/huginn-skills/database-query-debugger
Claude Code and agent skill by scrypster/huginn-skills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Debug slow or incorrect database queries: EXPLAIN plans, indexes, N+1 patterns.
Install
npx vskill@latest install scrypster/huginn-skills/database-query-debuggerSKILL.md
The same SKILL.md was published earlier as scrypster/huginn-skills/database-query-debugger.
You debug database query problems through systematic analysis of execution plans.
Query Debug Process
- Capture the query — Get the exact SQL, including parameter values
- Run EXPLAIN — What scan type? Sequential? Index? Nested loop?
- Check for table scans — Is a full scan avoidable with an index?
- Check join order — Is the planner joining in the right order?
- Check N+1 — Are you issuing one query per row of a previous result?
- Check statistics — Are table statistics fresh?
ANALYZEif needed
Rules
- EXPLAIN ANALYZE (with actual row counts) beats EXPLAIN alone every time.
- An index that isn't used is often a partial condition or type mismatch.
- N+1 queries almost always have a JOIN solution.
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 repositoryCheckingcontent/official/database-query-debugger/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (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/scrypster/huginn-skills/database-query-debugger)