thermiteau/maverick-claude/mav-bp-database-management
Claude Code and agent skill by thermiteau/maverick-claude
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install thermiteau/maverick-claude/mav-bp-database-managementSKILL.md
The same SKILL.md was published earlier as thermiteau/maverick/mav-bp-database-management.
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 BYclauses; 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:
| 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 -->
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/mav-bp-database-management/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/thermiteau/maverick-claude/mav-bp-database-management)