dba-designer

dba-designer is a skill for Claude Code, Codex from nelson820125/iforgeai. It costs 61 tokens per session (2,367 once invoked), scanned A, original, MIT.

A database architect role for designing how application data is stored, linked, protected, and retrieved. A database schema is the formal structure of its tables, fields, relationships, rules, and indexes.

In plain words
What is it for?
Use it to design tables and relationships, indexes, performance approaches, data-security rules, integrity constraints, and database initialization or design documents.
Why use it?
It turns application requirements into a database design that engineers can implement consistently. It also makes clear whether the database starts from an SQL script or from code-based migrations.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to design tables and relationships, indexes, performance approaches, data-security rules, integrity constraints, and database initialization or design documents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nelson820125/iforgeai/dba-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.

Any agent
npx skills add nelson820125/iforgeai --skill dba-designer
Clone the repo
git clone --depth 1 https://github.com/nelson820125/iforgeai

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/nelson820125/iforgeai/dba-designer/github.svg)](https://agentmods.dev/skills/nelson820125/iforgeai/dba-designer)
Your own site
<a href="https://agentmods.dev/skills/nelson820125/iforgeai/dba-designer"><img src="https://agentmods.dev/badge/skills/nelson820125/iforgeai/dba-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 dba-designer

Your own site · 80×15
<a href="https://agentmods.dev/skills/nelson820125/iforgeai/dba-designer"><img src="https://agentmods.dev/badge/skills/nelson820125/iforgeai/dba-designer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,367 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.00061 $0.02367
Opus 5 $0.00030 $0.01184
Sonnet 5 $0.00012 $0.00473
Haiku 4.5 $0.00006 $0.00237

Measured 9d ago against content hash e0033abe7209, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

dba-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 9d 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.

copilot/skills/dba-designer/SKILL.md · 185 lines

How it starts

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

Output Language Rule

Read output_language from .ai/context/workflow-config.md. Write ALL deliverables in that language. If the file is absent or the field is unset, default to en-US.

DB Approach Rule

Read db_approach from .ai/context/workflow-config.md before producing any output:

  • database-first (default when unset): You are responsible for outputting the full DDL initialisation script db-init.sql. Engineers reference this as the authoritative schema to write ORM entities.
  • code-first: The schema is driven by engineer ORM migrations (e.g. EF Core). Do NOT output db-init.sql. Your deliverable is db-design.md only — a design document that engineers use as reference when writing their entity classes and migrations.

Role

You are a senior Database Architect (DBA / Database Designer), responsible for translating the logical system architecture and business requirements into a high-quality physical database design — satisfying correctness, query performance, and data security simultaneously.

You are not:

  • A business analyst (you do not decide business rules)
  • A backend engineer (you do not write ORM mapping code or Migration scripts)

You are: The quality gatekeeper for the data persistence layer — ensuring backend engineers receive a directly executable, performance-reviewed, and security-audited DB design

Working Directory Convention

All file paths are relative to the current project workspace root. The .ai/ directory is project-scoped — it is not shared across projects.

{project root}/
└── .ai/
    ├── context/     # Project-level constraints and context (long-lived, maintained manually)
    ├── temp/        # Iteration artefacts (written by each Agent, overwriteable)
    ├── records/     # Role work logs (append-only archive)
    └── reports/     # Review and test reports (versioned archive)

Path Resolution Rule

Read delivery_mode from .ai/context/workflow-config.md:

delivery_mode Temp path Reports path
standard or absent .ai/temp/ .ai/reports/
scrum .ai/{current_version}/{current_sprint}/temp/ .ai/{current_version}/{current_sprint}/reports/

Read the full file on GitHub · 185 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. 9d ago First seen · 185 lines · 0 tokens per session scan A e0033abe7209

Subscribe to this mod's changes

dba-designer is a skill published in the GitHub repository nelson820125/iforgeai (8 stars, last pushed 4mo ago), licensed MIT. It adds 61 tokens to every session and 2,367 once invoked, about $0.0003 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-31.

Related

Other skills, from other repositories

prisma-database

Prisma ORM schema design, migrations, client generation, and query patterns. Use when designing database schemas, writing migrations, querying data, or managing Prisma Client.

monkilabs/opencastle · 37 tokens

supabase-database

Generates Supabase database migrations, writes RLS policies with auth.uid(), configures auth integration, and generates TypeScript types. Use when creating tables, writing migrations, configuring RLS, or implementing Supabase auth.

monkilabs/opencastle · 49 tokens

convex-database

Convex reactive database patterns, schema design, real-time queries, mutations, actions, authentication, migrations, performance optimization, and component creation. Use when designing Convex schemas, writing queries/mutations, managing the Convex backend, setting up auth, migrating data, optimizing performance, or…

monkilabs/opencastle · 67 tokens

drizzle-orm

Drizzle ORM schema definition, type-safe queries, relational queries, CRUD operations, transactions, migrations with drizzle-kit, and database setup for PostgreSQL, MySQL, and SQLite. Use when defining database schemas, writing queries or joins, managing migrations, setting up a new Drizzle project, or working with…

monkilabs/opencastle · 69 tokens

security-hardening

Security architecture: authentication, authorization, RLS policies, CSP, input validation, API security. Use when implementing auth flows, writing RLS policies, configuring CSP/headers, validating inputs, or auditing security. Trigger terms: RLS, CSP, Server Actions, Zod, auth flow.

monkilabs/opencastle · 62 tokens

smb-data-ingestion

Parses and validates messy SMB data exports (CSV, Excel, Quickbooks PDFs, legacy SQL) into clean JSON-Schema & SQLite state for AI Digital Twins.

DDS-Solutions/AI-TadPole-OS · 39 tokens