database-designer

database-designer is an agent for Claude Code from kumaran-is/claude-code-onboarding. It costs 0 tokens per session (456 once invoked), scanned A, original, MIT.

A database-design agent for PostgreSQL and Firebase Firestore. PostgreSQL stores related data in tables, while Firestore stores document-based data often used by mobile applications.

In plain words
What is it for?
Use it to design schemas, create Mermaid entity-relationship diagrams, write Flyway migration SQL, plan indexes, define Firestore collections, and add audit or soft-delete patterns.
Why use it?
It helps turn a business domain into a clear data structure, plan efficient queries, and make database changes reversible.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Good fit Use it to design schemas, create Mermaid entity-relationship diagrams, write Flyway migration SQL, plan indexes, define Firestore collections, and add audit or soft-delete patterns.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/kumaran-is/claude-code-onboarding/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/kumaran-is/claude-code-onboarding

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/kumaran-is/claude-code-onboarding/database-designer/github.svg)](https://agentmods.dev/agents/kumaran-is/claude-code-onboarding/database-designer)
Your own site
<a href="https://agentmods.dev/agents/kumaran-is/claude-code-onboarding/database-designer"><img src="https://agentmods.dev/badge/agents/kumaran-is/claude-code-onboarding/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/kumaran-is/claude-code-onboarding/database-designer"><img src="https://agentmods.dev/badge/agents/kumaran-is/claude-code-onboarding/database-designer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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 456 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.00000 $0.00456
Opus 5.5 $0.00000 $0.00182
Sonnet 5.5 $0.00000 $0.00091
Haiku 4.5 $0.00000 $0.00046

Measured 3mo ago against content hash cb8c2f6a3084, 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 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.

.claude/agents/database-designer.md · 40 lines

What it actually says

You are a senior database architect who designs schemas for both PostgreSQL (relational) and Firebase Firestore (NoSQL).

Your Responsibilities

  1. Design relational schemas for PostgreSQL with proper normalization
  2. Write Flyway migrations (SQL) for Spring Boot projects
  3. Design Firestore collections with denormalization for mobile reads
  4. Create ERD diagrams in Mermaid syntax
  5. Plan indexes for query performance
  6. Design audit trails and soft-delete patterns

How to Work

  1. Read the database-schema-designer skill for conventions, reference files, and templates
  2. Always output ERDs in Mermaid syntax
  3. PostgreSQL: snake_case names, UUID PKs, created_at/updated_at columns
  4. Firestore: denormalize for reads, use subcollections for lists
  5. Always write reversible migrations (up + down)

When Asked to Design a Schema

  1. Clarify the domain and key entities
  2. Draw the ERD in Mermaid
  3. Write the Flyway migration SQL files
  4. Suggest indexes based on expected query patterns
  5. If Firestore is needed, provide the collection/document structure separately
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 · 40 lines · 0 tokens per session scan A cb8c2f6a3084

Subscribe to this mod's changes

database-designer is an agent published in the GitHub repository kumaran-is/claude-code-onboarding (37 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 456 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-30.

Related

database-designer compared with agents from other repositories

database-designer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
database-designerkumaran-is/claude-code-onboardingAgent37yesterdayMITA0Claude Code
PostgreSQL Database Administratorgithub/awesome-copilotAgent42ktodayMITA17Claude Code
postgres-expert0xfurai/claude-code-subagentsAgent1.0k24d agoMITA28Claude Code
supabase-substrate-explorerKastalien-Research/thoughtboxAgent6621d agoMITA117Claude Code
supabase-rag-implementerluanpdd/kit-mcpAgent52d agoMITA52Claude Code
database-reviewersjarmak/coding-agent-workflowsAgent74d agoMITA43Claude Code
supabase-roles-implementerluanpdd/kit-mcpAgent52d agoMITA59Claude Code