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-debugger

SKILL.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

  1. Capture the query — Get the exact SQL, including parameter values
  2. Run EXPLAIN — What scan type? Sequential? Index? Nested loop?
  3. Check for table scans — Is a full scan avoidable with an index?
  4. Check join order — Is the planner joining in the right order?
  5. Check N+1 — Are you issuing one query per row of a previous result?
  6. Check statistics — Are table statistics fresh? ANALYZE if 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/scrypster/huginn-skills/database-query-debugger/badge)](https://verified-skill.com/skills/scrypster/huginn-skills/database-query-debugger)

Something wrong with this skill or its page? Tell us.