From rolepod-dblab
Run EXPLAIN [ANALYZE] on a query and return the parsed plan with flags for sequential scans and probable missing indexes — performance evidence, not a guess. Read-only. Use when a query is slow or before shipping a query-heavy path.
How this skill is triggered — by the user, by Claude, or both
Slash command
/rolepod-dblab:db-explainThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Single-backend skill. Calls **`rolepod_db_explain`** on the rolepod-dblab MCP server and surfaces the structured result. No fallback (D-001).
Single-backend skill. Calls rolepod_db_explain on the rolepod-dblab MCP server and surfaces the structured result. No fallback (D-001).
Is this query going to scan a whole table? Where is an index missing?
Phase: Perf / Review. Read-only — EXPLAIN runs inside a READ ONLY transaction, so even ANALYZE (which executes the query) cannot mutate.
rolepod-wplab for WP query concerns./db-query. You want to mutate → /db-write.conn — connection string (secret; never logged).sql — the query to analyze.analyze (optional, default false) — use EXPLAIN ANALYZE (executes the query to get real timings; still read-only).Call rolepod_db_explain:
{ "conn": "postgresql://…/db", "sql": "SELECT * FROM events WHERE kind = 'a'", "analyze": false }
has_concerns — true if any probable-missing-index flag fired.flags[] — each: kind (seq_scan | possible_missing_index), relation, plan_rows, filter?, detail.plan — the raw parsed JSON plan; manifest_path (phase review, status warn when concerns, else pass).{ "conn": "postgresql://…/db", "sql": "SELECT * FROM events WHERE kind = 'signup'" }
A possible_missing_index flag on events with the filter on kind → consider CREATE INDEX … ON events(kind).
.rolepod-dblab/artifacts/db-explain_<ts>_<uuid>/rolepod parent (marker <git-root>/.rolepod/parent-active): <git-root>/.rolepod/evidence/<ts>-rolepod-dblab-db-explain/The run directory holds plan.json + a manifest.json (Extension Protocol v1), so review-code can read the plan as performance evidence.
The
/db-explainskill needs the rolepod-dblab MCP server, which is not currently available. Confirm the plugin is installed and try again, or check thatnpx -y @rolepod/dblabis reachable.
npx claudepluginhub nuttaruj/rolepod-dblab --plugin rolepod-dblabGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.