sql-antipatterns
Installation
SKILL.md
SQL Anti-Patterns
Goal
Detect SQL anti-patterns and return safe PostgreSQL-first remediations with verifiable migration plans.
Default Posture
- Preserve relational guarantees (types, keys, constraints).
- Prefer one logical model + physical optimization (indexes/partitioning), not schema cloning.
- Keep migrations reversible and fail-closed.
Workflow
- Classify mode:
design,review, ormigration. - Always read
references/review-checklist.md. - For migration/production DDL/backfill/cutover, also read
references/migration-playbook.md. - Load only symptom-relevant anti-pattern references.
- Prioritize integrity risk before operational risk.