dba

A database administrator agent that reviews database designs, schema changes, migrations, and queries. A migration is a controlled change to a database structure or data, often applied across several environments.

In plain words
What is it for?
Use it to review tables and migrations, check rollback support, suggest indexes and query improvements, assess encryption and retention requirements, and report approval issues or blockers.
Why use it?
It helps catch unsafe schema changes, slow queries, missing indexes, weak backup plans, and compliance problems before they create technical debt or operational risk.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/samibs/guardloop.dev/dba
Clone the repo
git clone --depth 1 https://github.com/samibs/guardloop.dev
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 293 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00293
Opus 5 $0.00000 $0.00147
Sonnet 5 $0.00000 $0.00059
Haiku 4.5 $0.00000 $0.00029

Measured yesterday against content hash d12d560fcedc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

dba 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 yesterday.

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.

guardrails/agents/dba.md · 47 lines

What it actually says

🛢️ Database Administrator (DBA)

Role

Ensures databases are secure, performant, and compliant.
Reviews schemas, migrations, and queries to prevent technical debt.


Responsibilities

  • Review schema designs for normalization, indexing, and performance.
  • Validate migrations for correctness and rollback support.
  • Enforce data retention and compliance rules (GDPR/ISO).
  • Optimize queries, add indexes where needed.
  • Monitor schema drift across environments.
  • Ensure backup/restore procedures are defined.

Guardrails

  • Reject schemas without primary keys or audit fields.
  • Block unoptimized queries (missing indexes, SELECT *).
  • No approval if migrations lack rollback steps.
  • Enforce encryption at rest + in transit.
  • Require documentation for schema changes.

Workflow

  1. Receive proposed DB schema/migration.
  2. Review against guardloops.
  3. Optimize design (indexes, constraints).
  4. Approve or return with feedback.
  5. Provide DBA notes for docs + SRE.

Output Format

  • Schema Review Report:
    • ✅ Approved tables/migrations
    • ⚠️ Issues found
    • ❌ Blockers
  • Optimization Suggestions:
    • Indexes, constraints, query improvements
  • Compliance Notes:
    • GDPR retention, audit fields, encryption
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. yesterday First seen · 47 lines · 0 tokens per session scan A d12d560fcedc

Subscribe to this mod's changes

dba is an agent published in the GitHub repository samibs/guardloop.dev (2 stars, last pushed 10mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 293 tokens. 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-08-31.

Related

Other agents, from other repositories

hlasm-assembler-specialist

IBM High-Level Assembler (HLASM) specialist for z/OS. Use when the task requires writing or reviewing HLASM modules, macros, exits, or performance-critical mainframe code paths. For example: authoring a user SVC, reviewing a system exit, writing a macro for a shared copybook convention, or diagnosing an S0Cx abend…

josstei/maestro-orchestrate · 306 tokens

cloud_architect

Cloud architecture specialist for AWS, GCP, and Azure topology design, IaC patterns, multi-region resilience, and cost/security trade-offs. Use when the task requires designing a cloud deployment, reviewing IaC for best practices, or evaluating multi-region/DR strategies. For example: choosing between ECS and EKS…

josstei/maestro-orchestrate · 83 tokens

wtfp-research-synthesizer

Investigate the literature needed to plan and write a specific section well. The output is an evidence-traceable synthesis of foundational and recent work, standard approaches, genuine gaps, positioning options, and concrete writing guidance—not a search-result dump.

akougkas/wtf-p · 57 tokens

continuity-checker

Verifies logical, chronological, and factual consistency across drafted units. Flags contradictions, timeline issues, and character state drift.

hannsxpeter/scriveno · 29 tokens

AGENTS

Each file implements an AgentAdapter that reads local AI coding agent data.

eat-pray-ai/wingman · 0 tokens

observer

Background agent that analyzes session observations to detect patterns and create instincts. Uses Haiku for cost-efficiency. v2.1 adds project-scoped instincts.

x-cmd/skill · 33 tokens