database-admin

A coding assistant for designing and maintaining databases, including their tables, relationships, queries, security rules, and change history. A migration is a recorded change that updates a database structure or its data.

In plain words
What is it for?
Use it to model data, write and improve queries, choose indexes, manage migrations and rollbacks, and plan access control, encryption, and audit logging.
Why use it?
It helps prevent poorly designed tables, slow queries, unsafe access, and database changes that are difficult to apply or undo.

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/nth5693/gemini-kit/database-admin
Clone the repo
git clone --depth 1 https://github.com/nth5693/gemini-kit
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 549 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.00012 $0.00549
Opus 5 $0.00006 $0.00275
Sonnet 5 $0.00002 $0.00110
Haiku 4.5 $0.00001 $0.00055

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

Security

Grade A, and why

database-admin 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.

agents/database-admin.md · 130 lines

How it starts

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

Database Admin Agent

Role

Manage database schema, queries, and migrations.

When to Use

  • Design schemas
  • Write queries
  • Optimize performance
  • Create migrations
  • Data modeling

Capabilities

1. Schema Design

  • Table structure
  • Relationships
  • Normalization
  • Indexes

2. Query Optimization

  • Query analysis
  • Index suggestions
  • Performance tuning

3. Migration Management

  • Version control
  • Rollback strategies
  • Data migrations

4. Security

  • Access control
  • Encryption
  • Audit logging

Schema Design

Naming Conventions

-- Tables: plural, snake_case
users, order_items, user_roles

-- Columns: singular, snake_case
user_id, created_at, is_active

-- Indexes: ix_table_column
ix_users_email

-- Foreign keys: fk_child_parent
fk_orders_user_id

Common Patterns

-- Timestamps
created_at TIMESTAMP DEFAULT NOW(),
updated_at TIMESTAMP DEFAULT NOW(),

-- Soft delete
deleted_at TIMESTAMP NULL,

-- UUID primary key
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),

Query Optimization

N+1 Problem

-- Bad: N+1 queries
SELECT * FROM users;
-- Then for each user:
SELECT * FROM orders WHERE user_id = ?;

-- Good: Single query with JOIN
SELECT u.*, o.*
FROM users u
LEFT JOIN orders o ON o.user_id = u.id;

Index Strategy

-- Single column
CREATE INDEX ix_users_email ON users(email);

-- Composite (order matters!)
CREATE INDEX ix_orders_user_status 
ON orders(user_id, status);

-- Partial
CREATE INDEX ix_orders_pending 
ON orders(created_at) 
WHERE status = 'pending';

Migration Template

-- Migration: 20241215_add_user_roles
-- Description: Add roles table for RBAC

-- Up
CREATE TABLE roles (
  id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
  name VARCHAR(50) NOT NULL UNIQUE,
  created_at TIMESTAMP DEFAULT NOW()
);

CREATE TABLE user_roles (
  user_id UUID REFERENCES users(id),
  role_id UUID REFERENCES roles(id),
  PRIMARY KEY (user_id, role_id)
);

-- Down
DROP TABLE user_roles;
DROP TABLE roles;

Read the full file on GitHub · 130 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. yesterday First seen · 130 lines · 12 tokens per session scan A 3bcce79dcc6c

Subscribe to this mod's changes

database-admin is an agent published in the GitHub repository nth5693/gemini-kit (374 stars, last pushed 5mo ago), licensed MIT. It adds 12 tokens to every session and 549 once invoked, about $0.0001 per session on Opus 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-08-30.

Related

Other agents, from other repositories

redteam-finding-verifier

Independent verification agent for red-team findings. Use this agent after an analyzer, recon, CMS, or exploit agent reports candidate vulnerabilities; it confirms, rejects, or downgrades claims using reproducible evidence so hallucinated findings do not reach the final report.

Baba01hacker666/gemini-redteam · 58 tokens

redteam-source-code-analyzer

Source code security analyzer for CMS and web applications. Use this agent when the task requires reading repository source code, identifying vulnerable routes/controllers/plugins/modules/themes, tracing data flow, or producing evidence-backed candidate findings before verification.

Baba01hacker666/gemini-redteam · 50 tokens

redteam-cms-fingerprint

CMS fingerprinting and component-inventory agent. Use this agent for WordPress, Drupal, Joomla, Magento/Adobe Commerce, Shopify, Ghost, Strapi, Umbraco, Sitecore, TYPO3, PrestaShop, OpenCart, or unknown CMS targets before deeper recon or exploit analysis.

Baba01hacker666/gemini-redteam · 67 tokens

redteam-report-writer

Final report writer for red-team workflows. Use this agent at the end of CMS, recon, source analysis, exploit, or verification work to create or update report.md with full steps performed, commands tried, results observed, verified findings, rejected claims, and remediation guidance.

Baba01hacker666/gemini-redteam · 60 tokens

code-reviewer

Reviews code for project guideline compliance, bugs, and quality issues. Use after writing code, before commits, or before PRs. Specify files to review or defaults to unstaged git changes. High-confidence issues only (80+) to minimize noise.

coleam00/Archon · 53 tokens

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