What problem does it solve?
Data-layer defects like N+1 queries, broken transaction boundaries, connection leaks, and unsafe isolation assumptions often hide until they cause corruption or outages in production. This Skill performs a read-only, evidence-driven audit of persistence and data-heavy runtime paths so risks are found and prioritized before they cause damage.
Core Features & Use Cases
- Query and Cache Efficiency Audit: Traces entrypoints to generated SQL to find N+1 patterns, over-fetching, missing pagination, redundant round trips, and cache design flaws.
- Transaction and Consistency Audit: Verifies atomicity, isolation assumptions, idempotency, retry safety, migration behavior, and trigger or event semantics against the actual database and framework versions.
- Resource Lifecycle Audit: Tracks sessions, connections, cursors, streams, and pools through success, error, cancellation, and abandonment paths, including DI scope mismatches and total connection budgets.
- Use Case: Before scaling a service, run the audit to get a prioritized P0-P3 findings table with call paths, evidence, and verified remediation links, plus a PASS/CONCERNS/FAIL/BLOCKED verdict.
Quick Start
Audit the persistence layer of this repository for query efficiency, transaction safety, and resource lifecycle issues, and report prioritized findings with a verdict.