Mav bp database management

From thermiteau/maverick · View interactive version

Mav bp database management is an AI agent skill from the GitHub repository thermiteau/maverick. Database and data management conventions for all projects using databases. Covers schema migrations, backup strategy, data lifecycle, index management, and connection pooling. Applied when designing, implementing, or reviewing database interactions.

How to use this skill

Skill file

Database & Data Management Standards

Maverick's hard rules for schema migrations, environment isolation, and data safety.

Maverick's Rules

Project Implementation Lookup

Check for docs/maverick/skills/database-management/SKILL.md. If present, read it — it wins on specifics (library, config, conventions). If missing, proceed with these standards and note the gap in your summary.

Detecting Database Issues in Code Review

When reviewing code, flag these patterns:

| Pattern | Issue | Fix |

| -------------------------------------------------- | ---------------------------------- | ------------------------------------------------------ |

| Raw SQL without parameterised queries | SQL injection risk | Use parameterised queries or ORM |

| Manual schema change (ad-hoc DDL) | Unreproducible, untracked change | Create a migration file |

| Editing an already-applied migration | Breaks migration history | Write a new migration |

| No index on columns used in WHERE/JOIN | Performance degradation at scale | Add appropriate index |

| Opening connection per request (no pooling) | Connection exhaustion | Use connection pool |

| Hardcoded connection string | Security risk, environment coupling| Use environment variables or secrets manager |

| Missing down migration | Cannot revert in development | Add reversible down operation |

| Production data in seed files | Data leak, privacy violation | Use synthetic data only |

| DROP TABLE or DROP COLUMN without staged rollout| Breaks running application | Stage the change: remove code references first |

| No transaction wrapping for multi-step migration | Partial application on failure | Wrap in transaction where the database supports it |

<!-- maverick-plugin-version: 5.3.1 -->

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.