dot-files: Agent for Claude Code

.claude/agents/database-administrator.md

database-administrator is an agent for Claude Code from 2SSK/dot-files. It costs 87 tokens per session (1,502 once invoked), scanned A, original, MIT.

A database administration specialist for PostgreSQL, MySQL, MongoDB, and Redis. It covers the setup, operation, protection, and recovery of databases and caching systems.

In plain words
What is it for?
Use it to configure databases, tune performance, set up replication and failover, harden access, test backups, plan disaster recovery, and perform zero-downtime migrations.
Why use it?
It helps prevent outages, data loss, weak database security, and performance problems. It also supports high availability, backups, replication, and safer migrations.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is 2SSK/dot-files's own configuration. It tells Claude Code how to work on dot-files itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything dot-files configures →

Reuse

Borrowing it

Nothing to install: this file belongs to 2SSK/dot-files. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/2SSK/dot-files/main/.claude/agents/database-administrator.md
Clone the repo
git clone --depth 1 https://github.com/2SSK/dot-files

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for database-administrator

README.md
[![agentmods](https://agentmods.dev/badge/agents/2ssk/dot-files/database-administrator/github.svg)](https://agentmods.dev/agents/2ssk/dot-files/database-administrator)
Your own site
<a href="https://agentmods.dev/agents/2ssk/dot-files/database-administrator"><img src="https://agentmods.dev/badge/agents/2ssk/dot-files/database-administrator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for database-administrator

Your own site · 80×15
<a href="https://agentmods.dev/agents/2ssk/dot-files/database-administrator"><img src="https://agentmods.dev/badge/agents/2ssk/dot-files/database-administrator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,502 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00087 $0.01502
Opus 5.5 $0.00035 $0.00601
Sonnet 5.5 $0.00017 $0.00300
Haiku 4.5 $0.00009 $0.00150

Measured 14d ago against content hash b02cbbdb4429, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

database-administrator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 14d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/database-administrator.md · 310 lines

How it starts

The opening of the file, as written. The whole thing — 310 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a senior database administrator with mastery across major database systems (PostgreSQL, MySQL, MongoDB, Redis), specializing in high-availability architectures, performance tuning, and disaster recovery. Your expertise spans installation, configuration, monitoring, and automation with focus on achieving 99.99% uptime and sub-second query performance.

When invoked:

1. Query context manager for database inventory and performance requirements

2. Review existing database configurations, schemas, and access patterns

3. Analyze performance metrics, replication status, and backup strategies

4. Implement solutions ensuring reliability, performance, and data integrity

Database administration checklist:

  • High availability configured (99.99%)
  • RTO < 1 hour, RPO < 5 minutes
  • Automated backup testing enabled
  • Performance baselines established
  • Security hardening completed
  • Monitoring and alerting active
  • Documentation up to date
  • Disaster recovery tested quarterly

Installation and configuration:

  • Production-grade installations
  • Performance-optimized settings
  • Security hardening procedures
  • Network configuration
  • Storage optimization
  • Memory tuning
  • Connection pooling setup
  • Extension management

Performance optimization:

  • Query performance analysis
  • Index strategy design
  • Query plan optimization
  • Cache configuration
  • Buffer pool tuning
  • Vacuum optimization
  • Statistics management
  • Resource allocation

High availability patterns:

  • Master-slave replication
  • Multi-master setups
  • Streaming replication
  • Logical replication
  • Automatic failover
  • Load balancing
  • Read replica routing
  • Split-brain prevention

Backup and recovery:

  • Automated backup strategies
  • Point-in-time recovery
  • Incremental backups
  • Backup verification
  • Offsite replication
  • Recovery testing
  • RTO/RPO compliance
  • Backup retention policies

Monitoring and alerting:

  • Performance metrics collection
  • Custom metric creation
  • Alert threshold tuning
  • Dashboard development
  • Slow query tracking
  • Lock monitoring
  • Replication lag alerts
  • Capacity forecasting

Read the full file on GitHub · 310 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 14d ago First seen · 310 lines · 87 tokens per session scan A b02cbbdb4429

Subscribe to this mod's changes

database-administrator is an agent published in the GitHub repository 2SSK/dot-files (250 stars, last pushed yesterday), licensed MIT. It adds 87 tokens to every session and 1,502 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-02.

Related

Other agents, from other repositories

MS-SQL Database Administrator

Work with Microsoft SQL Server databases using the MS SQL extension.

github/awesome-copilot · 18 tokens

database-architect

Use this agent for database design and change work: schema design, indexing strategy, query optimization, migration safety, and engine selection. Trigger on "design a schema for", "this query is slow", "is this migration safe", "add an index", "Postgres or Mongo for this", or N+1 complaints. Returns schema/DDL with…

aayushostwal/nexus · 96 tokens

django-migrations-specialist

Database specialist for Django, runs in the "database" extra phase after development. Finalizes model field types and Meta indexes/constraints, runs makemigrations, reviews generated SQL with sqlmigrate, runs migrate, verifies with migrate --check. Do NOT use for: application logic (django-architect), tests…

AratKruglik/claude-sdlc · 85 tokens

db-migration-engineer

Use when planning or executing a destructive change against a production database — schema migrations with backfills, periodic data imports, one-shot RPCs, drop-constraint operations, anything that mutates prod tables and cannot be trivially undone. Sister agent to db-schema-architect (schemas) and…

nonlinear-xyz/factory-kit · 155 tokens

db-performance-auditor

Audits a .NET data-access layer end to end for performance — EF Core query patterns (N+1, projections, tracking), indexing gaps, DbContext configuration, connection resiliency, and bulk-operation opportunities — and produces a ranked report with fixes. Use when the user wants a database/EF performance review of a…

StefanTheCode/dotnet-ai-toolkit · 88 tokens

database-migration

Database migration and modernization specialist. USE FOR: planning database migrations, designing migration strategies, validating data integrity. DO NOT USE FOR: operational database management, routine backups.

ivegamsft/basecoat · 37 tokens