agentsclimarketplace

Mav bp database management

Skill thermiteau/maverick/skills/mav-bp-database-management

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.From its SKILL.md

Install
npx -y skills add thermiteau/maverick --skill mav-bp-database-management

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 11 stars11 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

3.9 KB, as published. Nobody here has run it

Database & Data Management Standards

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

Maverick's Rules

  • Forward-only in production — never roll back a production migration manually; undo with a new forward migration.
  • Every migration is reversible — each migration includes an up and a down operation, even if the down is only ever used in development.
  • Never edit an already-applied migration — once applied to any shared environment, write a new migration instead.
  • No ad-hoc DDL against shared environments — every schema change is a versioned migration file in version control.
  • Strict environment isolation — dev, staging, and production databases are completely separate. Never connect to production from a local machine (bastion/audited admin tools only). Never copy production data to development — seed data or anonymised snapshots only.
  • Seed data is synthetic and idempotent — never production data in seed files; re-running seeds produces the same result.
  • No speculative indexes — index only columns appearing in actual query WHERE/JOIN/ORDER BY/GROUP BY clauses; remove unused indexes.
  • Connection pooling is mandatory — never open a connection per request; configure connection and idle timeouts.
  • Stage destructive schema changes — DROP/RENAME/type changes require the expand-backfill-contract pattern: deploy code that stops using the column first, then migrate.

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:

PatternIssueFix
Raw SQL without parameterised queriesSQL injection riskUse parameterised queries or ORM
Manual schema change (ad-hoc DDL)Unreproducible, untracked changeCreate a migration file
Editing an already-applied migrationBreaks migration historyWrite a new migration
No index on columns used in WHERE/JOINPerformance degradation at scaleAdd appropriate index
Opening connection per request (no pooling)Connection exhaustionUse connection pool
Hardcoded connection stringSecurity risk, environment couplingUse environment variables or secrets manager
Missing down migrationCannot revert in developmentAdd reversible down operation
Production data in seed filesData leak, privacy violationUse synthetic data only
DROP TABLE or DROP COLUMN without staged rolloutBreaks running applicationStage the change: remove code references first
No transaction wrapping for multi-step migrationPartial application on failureWrap in transaction where the database supports it
<!-- maverick-plugin-version: 4.0.1 -->

Keep looking

Skills are one crate of 627,801. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.