Manage Apple Reminders via the `remindctl` CLI on macOS (list, add, edit, complete, delete)....
npx skills add 404kidwiz/claude-supercode-skills --skill "database-administrator"
Install specific skill from multi-skill repository
# Description
Senior Database Administrator with expertise in PostgreSQL, MySQL, MongoDB, and enterprise database systems. Specializes in high availability architectures, performance tuning, backup strategies, and database security for production environments.
# SKILL.md
name: database-administrator
description: "Senior Database Administrator with expertise in PostgreSQL, MySQL, MongoDB, and enterprise database systems. Specializes in high availability architectures, performance tuning, backup strategies, and database security for production environments."
Database Administrator
Purpose
Provides senior-level database administration expertise for production database systems including PostgreSQL, MySQL, MongoDB, and enterprise databases. Specializes in high availability architectures, performance tuning, backup strategies, disaster recovery, and database security for mission-critical environments.
When to Use
- Setting up production databases with high availability and disaster recovery
- Optimizing database performance (slow queries, indexing, configuration tuning)
- Implementing backup and recovery strategies (PITR, cross-region backups)
- Migrating databases (PostgreSQL, MySQL, MongoDB) to cloud or between versions
- Hardening database security (encryption, access control, audit logging)
- Troubleshooting database issues (locks, replication lag, corruption)
- Designing database architectures for scalability and reliability
Quick Start
Invoke this skill when:
- Setting up production databases with high availability and disaster recovery
- Optimizing database performance (slow queries, indexing, configuration tuning)
- Implementing backup and recovery strategies (PITR, cross-region backups)
- Migrating databases (PostgreSQL, MySQL, MongoDB) to cloud or between versions
- Hardening database security (encryption, access control, audit logging)
- Troubleshooting database issues (locks, replication lag, corruption)
Do NOT invoke when:
- Only application-level ORM queries need optimization (use backend-developer)
- Data pipeline development (use data-engineer for ETL/ELT)
- Data modeling and schema design for analytics (use data-engineer)
- Database selection for new projects (use cloud-architect for strategy)
- Simple SQL queries or data analysis (use data-analyst)
Decision Framework
Database Selection
| Use Case | Database | Why |
|---|---|---|
| Transactional (OLTP) | PostgreSQL | ACID, extensions, JSON support |
| High-read web apps | MySQL/MariaDB | Fast reads, mature replication |
| Flexible schema | MongoDB | Document model, horizontal scale |
| Key-value cache | Redis | Sub-ms latency, data structures |
| Time-series data | TimescaleDB/InfluxDB | Optimized for time-based queries |
| Analytics (OLAP) | Snowflake/BigQuery | Columnar, massive scale |
High Availability Architecture
ββ Single Region HA?
β ββ Managed service β RDS Multi-AZ / Cloud SQL HA
β β Pros: Automatic failover, managed backups
β β Cost: 2x compute (standby instance)
β β
β ββ Self-managed β Patroni + etcd (PostgreSQL)
β Pros: Full control, no vendor lock-in
β Cost: Operational overhead
β
ββ Multi-Region HA?
β ββ Active-Passive β Cross-region read replicas
β β Pros: Simple, low cost
β β Cons: Manual failover, data lag
β β
β ββ Active-Active β CockroachDB / Spanner
β Pros: True global distribution
β Cons: Complexity, cost
β
ββ Horizontal Scaling?
ββ Read scaling β Read replicas
ββ Write scaling β Sharding (MongoDB, Vitess)
ββ Both β Distributed SQL (CockroachDB, TiDB)
Backup Strategy Matrix
| RPO Requirement | Strategy | Implementation |
|---|---|---|
| < 1 minute | Synchronous replication | Patroni sync mode |
| < 5 minutes | Continuous WAL archiving | pg_basebackup + WAL-G |
| < 1 hour | Automated snapshots | RDS automated backups |
| < 24 hours | Daily backups | pg_dump + S3 |
Performance Tuning Priorities
- Query optimization (biggest impact, lowest cost)
- Indexing strategy (moderate effort, high impact)
- Configuration tuning (one-time, moderate impact)
- Hardware upgrades (high cost, last resort)
Quality Checklist
Production Readiness
- [ ] High availability configured (multi-AZ or multi-region)
- [ ] Automated backups enabled (daily + continuous WAL)
- [ ] Backup restoration tested (monthly disaster recovery drill)
- [ ] Connection pooling configured (PgBouncer/ProxySQL)
- [ ] Monitoring and alerting active (slow queries, replication lag)
Performance
- [ ] Indexes created for all query patterns
- [ ] Table statistics up-to-date (autovacuum tuned)
- [ ] Query plans reviewed (no full table scans on large tables)
- [ ] Connection pooling optimized (min/max pool size)
- [ ] Database configuration tuned (shared_buffers, work_mem)
Security
- [ ] Encryption at rest enabled
- [ ] Encryption in transit (SSL/TLS) enforced
- [ ] Least privilege access (no superuser for applications)
- [ ] Audit logging enabled (failed logins, DDL changes)
- [ ] Regular security patching scheduled
Disaster Recovery
- [ ] RTO/RPO documented and tested
- [ ] Cross-region backups enabled
- [ ] Failover procedure documented and tested
- [ ] Data retention policy enforced
- [ ] Point-in-time recovery validated
Additional Resources
- Detailed Technical Reference: See REFERENCE.md
- Code Examples & Patterns: See EXAMPLES.md
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.