GitHub Actions · SARIF 2.1.0 · VS Code · Vitest / Jest

危険なマイグレーションと遅いクエリをPull Requestで食い止める。

本番スナップショットの実テーブル規模や書き込み負荷に対してオフラインでSQLを検証し、GitHub PRへのSARIF注釈とVS Codeクイックフィックスを提供します。

@culpritsql/ciSARIF 2.1.0

Offline Pull Request Migration Gates

Checks Flyway, Prisma, Rails, Django, Alembic, and raw SQL migrations against a saved catalog snapshot—catching missing CONCURRENTLY, volatile defaults, wide lock queues, and unindexed foreign keys without connecting CI runners to production.

VS CodeQuick Fixes

Culprit SQL for VS Code

Inline squiggles on unsafe DDL and slow SQL patterns as you type, one-click CONCURRENTLY / lock-timeout rewrites, and integrated execution plan previews.

@culpritsql/testVitest · Jest

Deterministic Query Regression Assertions

Wrap integration endpoints in expectQueries() to fail CI automatically when an ORM upgrade introduces N+1 query loops or sequential table scans.

@culpritsql/devtoolsLocal HUD

In-App SQL Telemetry HUD

Drop-in development overlay showing per-request query counts, slow statements, duplicate calls, and 1-click plan inspection during local feature work.

GitHub Actions + Vitest Guardrails
# 1. Lint SQL migrations in GitHub Actions with SARIF annotations:
$ npx @culpritsql/ci lint --snapshot .culprit/prod.json --files "migrations/**/*.sql" --sarif culprit.sarif

# 2. Assert query count and index usage in integration tests:
$ npm install -D @culpritsql/test