database-admin

database-admin is an agent for Claude Code from nth5693/gemini-kit. It costs 12 tokens per session (549 once invoked), scanned A, original, MIT.

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 for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to model data, write and improve queries, choose indexes, manage migrations and rollbacks, and plan access control, encryption, and audit logging.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/nth5693/gemini-kit/database-admin
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.

Clone the repo
git clone --depth 1 https://github.com/nth5693/gemini-kit

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/nth5693/gemini-kit/database-admin/github.svg)](https://agentmods.dev/agents/nth5693/gemini-kit/database-admin)
Your own site
<a href="https://agentmods.dev/agents/nth5693/gemini-kit/database-admin"><img src="https://agentmods.dev/badge/agents/nth5693/gemini-kit/database-admin/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-admin

Your own site · 80×15
<a href="https://agentmods.dev/agents/nth5693/gemini-kit/database-admin"><img src="https://agentmods.dev/badge/agents/nth5693/gemini-kit/database-admin.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. 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.00012 $0.00549
Opus 5.5 $0.00005 $0.00220
Sonnet 5.5 $0.00002 $0.00110
Haiku 4.5 $0.00001 $0.00055

Measured 3mo ago against content hash 3bcce79dcc6c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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.

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. 3mo ago 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 (371 stars, last pushed 8mo ago), licensed MIT. It adds 12 tokens to every session and 549 once invoked, about $0.0000 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-08-30.

Related

database-admin compared with agents from other repositories

database-admin next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
database-adminnth5693/gemini-kitAgent3718mo agoMITA12Claude Code
data_engineerjosstei/maestro-orchestrateAgent49329d agoApache-2.0A61Claude Code
database_administratorjosstei/maestro-orchestrateAgent49329d agoApache-2.0A85Claude Code
db2_dbajosstei/maestro-orchestrateAgent49329d agoApache-2.0A92Claude Code
data-engineerjosstei/maestro-orchestrateAgent49329d agoApache-2.0A61Claude Code
database-administratorjosstei/maestro-orchestrateAgent49329d agoApache-2.0A85Claude Code
db2-dbajosstei/maestro-orchestrateAgent49329d agoApache-2.0A92Claude Code