Database Manager
by @ivangdavila
Plan, operate, and recover relational databases with schema governance, safe migrations, backup drills, and incident response playbooks.
clawhub install database-managerπ About This Skill
name: Database Manager slug: database-manager version: 1.0.0 homepage: https://clawic.com/skills/database-manager description: Plan, operate, and recover relational databases with schema governance, safe migrations, backup drills, and incident response playbooks. changelog: Initial release with schema governance rules, migration safety checks, backup recovery workflows, and on-call response templates. metadata: {"clawdbot":{"emoji":"ποΈ","requires":{"bins":[],"config":["~/database-manager/"]},"os":["linux","darwin","win32"],"configPaths":["~/database-manager/"]}}
Setup
On first use, read setup.md for local initialization, activation preferences, and operating defaults.
When to Use
User needs a reliable database operating system for schema design, query hygiene, migration rollout, and recovery readiness. Agent keeps data work safe by enforcing preflight checks, explicit rollback plans, and incident-ready runbooks.
Use this skill when database changes can affect production reliability, latency, or data integrity.
Architecture
Memory lives in ~/database-manager/. See memory-template.md for the base structure.
~/database-manager/
βββ memory.md # Durable context and operating preferences
βββ inventory.md # Systems, engines, owners, and critical datasets
βββ standards.md # Naming, indexing, and schema conventions
βββ migrations.md # Planned and executed migration records
βββ backups.md # Backup schedule, retention, and restore drills
βββ incidents.md # Incident timeline, mitigations, and follow-up
βββ archive/
βββ migrations-YYYY-MM.md # Closed migrations by month
βββ incidents-YYYY-MM.md # Closed incidents by month
Quick Reference
| Topic | File |
|-------|------|
| Setup flow | setup.md |
| Memory template | memory-template.md |
| Inventory and ownership model | inventory-and-governance.md |
| Query operations and change windows | query-operations.md |
| Migration and release controls | migration-and-release.md |
| Backup and recovery workflows | backup-and-recovery.md |
| Incident response sequence | incident-playbook.md |
| Reusable templates | templates.md |
Core Rules
1. Never Change Production Without a Preflight Packet
Every schema or data change must include:Skipping preflight creates unbounded operational risk.
2. Separate Read Validation from Write Execution
Validate assumptions with read-only checks first, then run writes in explicit, audited steps.This prevents accidental broad updates caused by stale predicates or wrong join keys.
3. Treat Migrations as Product Releases
Each migration requires:Schema changes without release discipline are a primary source of prolonged incidents.
4. Make Index and Query Trade-offs Explicit
When changing indexes or query plans, state expected impact on:Invisible trade-offs create hidden cost and unpredictable performance regressions.
5. Backup Is Not Real Until Restore Is Proven
Do not trust backup status alone. Run restore drills, validate recovered row counts, and document measured recovery time.Unverified backups are operationally equivalent to no backups.
6. Encode Safety Gates for Destructive Operations
BeforeDROP, TRUNCATE, broad DELETE, or bulk UPDATE:
Destructive steps without safety gates can permanently corrupt business data.
7. Close Every Incident with Durable Learning
After mitigation:Without closure rules, the same incident class repeats.
Common Traps
Security & Privacy
Data that leaves your machine:
Data that stays local:
~/database-manager/.This skill does NOT:
Related Skills
Install withclawhub install if user confirms:
sql - SQL query authoring and analysismysql - MySQL-specific workflows and troubleshootingprisma - Prisma schema and migration toolingsqlite - local database workflows and prototypingbackend - backend architecture and service deliveryFeedback
clawhub star database-managerclawhub syncβ‘ When to Use
βοΈ Configuration
On first use, read setup.md for local initialization, activation preferences, and operating defaults.