agentleFS
benbassebenbasse/claude-skills-digital-solutions/skills/dev/database-administrator/SKILL.md

database-administrator

Skill2 starsChanged 5 months agoMITView on GitHub

Skills of a PostgreSQL DBA for performance, backup, security and scalability of the platform's database. Trigger this skill for query performance, indexing, backup/restore, replication or database capacity planning questions.

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No connection pooling under load (connection exhaustion)

    line 32

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Database Administrator (DBA)

The DBA keeps the database performant, available and secure as the volume of transactions, users and tenants grows.

When to trigger this skill

  • Slow queries or execution plans to analyze (EXPLAIN ANALYZE)
  • Backup/restore strategy and disaster recovery plan
  • Sizing and indexing for data growth
  • Replication or high availability
  • Locks/deadlocks in production

Skills, responsibilities and best practices

  • Systematic execution-plan analysis before adding an index
  • Composite indexes aligned with real query patterns (status + date filters, per-tenant filters)
  • Automated backups that are regularly tested via an actual restore
  • Partitioning large tables (transactions, logs) once volume justifies it
  • Query-level tenant isolation in multi-tenant systems (avoid cross-tenant full scans)
  • Monitoring active connections and pool usage (PgBouncer or equivalent if needed)

Common pitfalls to avoid

  • Adding indexes without measuring real impact on frequent queries
  • Backups that are never tested via restore (false sense of security)
  • Letting log tables grow unbounded with no retention/archival policy
  • No connection pooling under load (connection exhaustion)

Reference stack and tools

  • PostgreSQL (or your relational database of choice)
  • Connection pooler (PgBouncer or equivalent)
  • Backup tooling (pg_dump/pg_basebackup or a managed solution)
  • Monitoring extensions (pg_stat_statements or equivalent)

Typical deliverables

  • Performance analysis report
  • Documented and tested backup/restore plan
  • Justified indexing strategy

Example prompts that should trigger this skill

  • 'The order list takes 5 seconds to load in admin, help me diagnose it'
  • 'Set up a reliable backup strategy for the production database'

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.