sql-plan-audit

Installation
SKILL.md

SQL Plan Audit

Use this when a project has a sqlc-style query catalog (or any file with -- name: X :type markers) and wants to keep query plans visible in code review.

Why

sqlc enforces SQL syntax at codegen, but it doesn't watch the execution plan. A column rename, a removed index, or a small WHERE-clause addition can flip a query from SEARCH USING INDEX to SCAN TABLE silently. On Cloudflare D1 / SQLite without EXPLAIN ANALYZE, the planner output is the only static signal. This skill freezes that output as a reviewable artifact.

When to invoke

  • Schema or query catalog changed in a PR.
  • A new index was added and you want to confirm queries pick it up.
  • Quarterly audit of an existing query catalog.

Workflow

Installs
47
Repository
mizchi/skills
GitHub Stars
325
First Seen
May 18, 2026
sql-plan-audit — mizchi/skills