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/"]}}
On first use, read setup.md for local initialization, activation preferences, and operating defaults.
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.
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
| 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 |
Every schema or data change must include: - intent - blast radius - rollback path - verification query set
Skipping preflight creates unbounded operational risk.
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.
Each migration requires: - owner - deployment window - rollback deadline - post-deploy verification criteria
Schema changes without release discipline are a primary source of prolonged incidents.
7w4.net小蔥技能站收錄全網優質技能,值得收藏。
When changing indexes or query plans, state expected impact on: - read latency - write throughput - storage growth
Invisible trade-offs create hidden cost and unpredictable performance regressions.
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.
Before DROP, TRUNCATE, broad DELETE, or bulk UPDATE:
- confirm table and environment
- capture row count baseline
- require explicit user confirmation
- log exact rollback route
Destructive steps without safety gates can permanently corrupt business data.
After mitigation: - capture root cause - record missing guardrail - add one concrete prevention change
Without closure rules, the same incident class repeats.
Data that leaves your machine: - None by default.
Data that stays local:
- Database operating context and records under ~/database-manager/.
This skill does NOT: - Execute destructive commands without explicit user confirmation. - Access unrelated credentials or services by default. - Store secrets in memory files.
Install with clawhub install <slug> if user confirms:
- sql - SQL query authoring and analysis
- mysql - MySQL-specific workflows and troubleshooting
- prisma - Prisma schema and migration tooling
- sqlite - local database workflows and prototyping
- backend - backend architecture and service delivery
clawhub star database-managerclawhub sync這是一套質量不錯的資料庫管理工具,覆蓋了日常操作、安全檢查、備份恢復到緊急故障處理的完整流程。優點是規則清晰、模板實用、安全意識強,能有效避免常見操作失誤。不足是缺少具體場景示例,遇到問題時可能需要自己摸索;另外偏向通用指導,對特定資料庫的細節處理有限。整體上這是一套可靠的資料庫運營指南,值得在團隊中推廣使用。