Static, no-database-connection guardrails for schema and query work: rewrites unsafe migrations into zero-downtime expand-contract steps, hunts ORM N+1 queries in your diff, interprets pasted EXPLAIN plans, and flags schema anti-patterns
3 on GitHubby Sigistryv1.0.0MITupdated yesterdaydatabase
/
Plugin sql-safety-net from marketplace sigistry in sigistry/marketplace. Commands read from the repo's manifest — yesterday.
This plugin runs code on your machine — its hooks fire automatically on events like tool use. The exact commands are listed below; read them before installing.
What it installs
Skills (3)
explain-interpreter
This skill should be used when the user mentions "EXPLAIN", "explain analyze", "query plan", "slow query", "seq scan", "sequential scan", "nested loop", "index scan", "query optimization", "buffers", "why is this query slow", or pastes a query plan to interpret. It provides a methodology for reading
safe-migrations
This skill should be used when the user mentions "migration", "schema change", "zero downtime", "add column", "alter table", "add index", "lock", "expand contract", "backfill", "ALTER COLUMN", "NOT NULL", "CREATE INDEX", or rewriting a DDL change to avoid downtime. It provides the expand-contract (p
schema-antipatterns
This skill should be used when the user mentions "schema design", "database anti-pattern", "N+1", "foreign key index", "normalization", "data types", "constraints", "ORM performance", "missing primary key", "VARCHAR 255", "boolean as int", or reviewing DDL/models for design problems. It provides a r
Slash commands (5)
/sql-safety-net:explain-plan
Interpret a pasted EXPLAIN or EXPLAIN ANALYZE plan and recommend concrete indexes or rewrites
/sql-safety-net:index-advisor
Recommend indexes for a slow query given only the query and table DDL, with column-order reasoning
/sql-safety-net:migration-safety
Analyze a schema migration for locking/backfill hazards and rewrite it as safe zero-downtime steps
/sql-safety-net:n1-scan
Scan ORM/data-access code for N+1 query patterns and emit idiomatic eager-loading fixes
/sql-safety-net:schema-review
Review DDL/schema for relational anti-patterns and emit corrected DDL by severity
Subagents (2)
migration-rewriter
Use this agent when an unsafe schema migration needs to be rewritten into safe, reversible, zero-downtime steps, adding a NOT NULL column, changing a column type, renaming a column, adding an index or foreign key, or any DDL that would take a blocking table lock. Trigger phrases include "make this m
n1-hunter
Use this agent when you need to statically find N+1 query patterns in ORM or data-access code, loops that lazily load a relation per row, missing eager-loading (select_related/prefetch_related/joinedload/includes/with/Include/Preload), or serializer-triggered per-row queries. Trigger phrases include
Monitoring and evaluation jobs on your project folder: twelve job skills (evaluation questions, question-method alignment, evaluation TOR drafts, indicator reference sheets, measurement feasibility, M&E plan drafts, progress evidence, findings to actions, results chain alignment, sampling plans, data quality assessment plans, baseline planning), three workflow packs and nineteen commands that cross-reference logframes, M&E plans, proposals, reports and TORs and write editable Markdown with source traceability.
Builds up to a goal in a field you have no expertise in: splits it into the foundations that goal actually needs, mobilizes what you already hold, learns what is missing, and leaves every solved path behind for the next goal. Nothing is called done until a check passes.
Triages failing GitHub Actions runs, hardens Dockerfiles, pre-flights Kubernetes manifests before they reach the cluster, and drafts blameless postmortems from incident evidence
Goes past detecting accessibility and localization issues to fixing them: cross-element ARIA and keyboard-focus remediation, color-contrast rewrites, hardcoded-string extraction, ICU MessageFormat correctness, and RTL readiness
A repo-native toolchain for LLM apps: scaffolds eval suites, red-teams for prompt injection, hardens structured-output reliability, and audits token cost, riding promptfoo/DeepEval/Pydantic rather than replacing them
Editorial diagrams in your brand, as self-contained HTML and SVG. Architecture, flowcharts, sequence, state machines, ER and database schemas, timelines, swimlanes, org charts, Gantt, Wardley maps, user journeys, service blueprints, UML class, lifecycle phase maps, and charts from bar, line and scatter to Sankey, treemap and heatmap, plus many more. Redraws draw.io, Mermaid, Excalidraw and PlantUML files. Exports SVG and PNG.
Query Trackio projects, runs, and metrics using the `trackio` CLI. Use when the user needs to list projects/runs/metrics, get summaries, or retrieve metric values from local Trackio databases. Supports both human-readable and JSON output formats. Covers project discovery, run inspection, metric querying, and system metrics. Designed for LLM agents and automation scripts.
Connect Claude Code directly to your CockroachDB clusters for hands-on database work — explore schemas, write optimized SQL, debug queries, and manage distributed database clusters. This plugin provides 14 tools across two active MCP backends (self-hosted MCP Toolbox and managed CockroachDB Cloud MCP Server), three specialized agents (DBA, Developer, Operator), 32 skills across 6 operational domains, and built-in safety hooks.
Payload Development plugin - covers collections, fields, hooks, access control, plugins, and database adapters.
1 skill
payloadcms/payload 45,796
Maintain sql-safety-net?
This page updates itself from your repo. Add the badge to your README, or get it Featured to pin it above the organic results with a followed link to your site.