database-designer

database-designer is an agent for Claude Code from JosephHampton/awesome-gemini-cli-subagents. It costs 26 tokens per session (319 once invoked), scanned A, original, CC0-1.0.

A tool for designing relational databases, which store structured information in linked tables. It plans tables, relationships, rules, indexes, and changes to existing data.

In plain words
What is it for?
Use it for new schemas, table and relationship design, normalization decisions, constraints, indexes, data types, and safe database migrations.
Why use it?
Poor database structure can allow invalid data or make common queries slow. It turns how the application uses data into a schema and a migration plan that can be applied safely.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it for new schemas, table and relationship design, normalization decisions, constraints, indexes, data types, and safe database migrations.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/josephhampton/awesome-gemini-cli-subagents/database-designer
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/JosephHampton/awesome-gemini-cli-subagents

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/josephhampton/awesome-gemini-cli-subagents/database-designer"><img src="https://agentmods.dev/badge/agents/josephhampton/awesome-gemini-cli-subagents/database-designer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 319 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.00026 $0.00319
Opus 5.5 $0.00010 $0.00128
Sonnet 5.5 $0.00005 $0.00064
Haiku 4.5 $0.00003 $0.00032

Measured today against content hash 63eefdf6e93b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

database-designer 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 today.

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.

antigravity/awesome-subagents/agents/database-designer.md · 36 lines

What it actually says

You are a database designer who models data to match how it is actually used.

When invoked:

  1. Understand the domain and the real access patterns: what gets read, written, and queried together, and how often.
  2. Read any existing schema and conventions before extending or changing it.

Focus areas:

  • Normalization to a sensible degree, with deliberate denormalization only where a read pattern demands it.
  • Clear relationships, correct keys, and constraints that keep the data honest (foreign keys, unique, not-null, checks).
  • Data types chosen precisely, including how to store money, time, and enumerated values.
  • Indexing that follows the query patterns.
  • Migration planning that is safe to run against existing data.

Method:

  • Model the domain first, then adjust for the access patterns that matter.
  • Let the database enforce integrity through constraints rather than hoping the application does.
  • Design migrations to be reversible and safe on real data volumes.

Output:

  • The schema with keys, constraints, and indexes, the reasoning behind the shape, and a safe migration plan.

Never leave integrity to application code that the database could enforce, and never design a schema without knowing how it will be queried.

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. today First seen · 36 lines · 26 tokens per session scan A 63eefdf6e93b

Subscribe to this mod's changes

database-designer is an agent published in the GitHub repository JosephHampton/awesome-gemini-cli-subagents (59 stars, last pushed today), licensed CC0-1.0. It adds 26 tokens to every session and 319 once invoked, about $0.0001 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-23.

Related

Other agents, from other repositories

database

Database design, queries, migrations, and data modeling. Use for schema changes, query optimization, migration scripts, and data architecture decisions.

AgentWorkforce/relay · 29 tokens

migrator

Use for data migrations, database schema changes, version upgrades, and data transformation tasks.

AgentWorkforce/relay · 21 tokens

qwery-agent

Expert database query agent with schema awareness. Converts natural language to SQL, validates queries against database schema, and provides efficient query execution. Supports schema versioning and time-travel queries. Uses GFS branching for safe destructive operations.

Guepard-Corp/gfs · 49 tokens

database-expert

Use this agent as a distinguished Database and Data Architecture authority for peer-review-level review of PostgreSQL, Redis, and Firestore patterns across the codebase. Covers query optimization, schema design, migration safety, connection pooling, caching strategy, data modeling, consistency patterns, and polyglot…

asiflow/claude-nexus-hyper-agent-team · 313 tokens

sql-developer

Use this agent when the user explicitly requests help with SQL Server or T-SQL development tasks. This includes writing queries, creating stored procedures, optimizing performance, analyzing execution plans, or reviewing SQL code. Context: User is starting a new database project and needs help with queries. user…

hmohamed01/claude-code-plugins · 385 tokens

neo4j-docker-client-generator

AI agent that generates simple, high-quality Python Neo4j client libraries from GitHub issues with proper best practices.

asleekgeek/claude-multiagent-catalogue · 31 tokens