database-architect

database-architect is a skill for Claude Code from wyattowalsh/agents. It costs 41 tokens per session (2,189 once invoked), scanned A, original, MIT.

A database architecture guide for designing tables and relationships, planning schema changes, improving queries, and evolving a database safely. A schema is the structure of a database, and a migration is a versioned change to that structure.

In plain words
What is it for?
Designing schemas, writing migrations with rollback plans, reviewing database changes, optimizing queries and indexes, and planning zero-downtime evolution.
Why use it?
It helps make database changes deliberate and reversible while avoiding unnecessary downtime or slow queries. It also keeps architecture decisions separate from operational tasks such as backups and deployment.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: model in frontmatter.

Part of the agents plugin — 71 skills, 20 agents, 5 hooks, 3 MCP servers shipped together

Good fit Designing schemas, writing migrations with rollback plans, reviewing database changes, optimizing queries and indexes, and planning zero-downtime evolution.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wyattowalsh/agents/database-architect
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 wyattowalsh/agents --skill database-architect
Clone the repo
git clone --depth 1 https://github.com/wyattowalsh/agents

Made for: Claude Code.

Or install agents, the plugin that ships this one along with the rest of its 71 skills, 20 agents, 5 hooks, 3 MCP servers.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/wyattowalsh/agents/database-architect"><img src="https://agentmods.dev/badge/skills/wyattowalsh/agents/database-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,189 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.00041 $0.02189
Opus 5.5 $0.00016 $0.00876
Sonnet 5.5 $0.00008 $0.00438
Haiku 4.5 $0.00004 $0.00219

Measured 3mo ago against content hash ce3218524dca, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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

The scan reads SKILL.md. This mod also ships 11 executable files (scripts/asset_toolkit/__init__.py, scripts/asset_toolkit/_shared.py, scripts/asset_toolkit/common.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/database-architect/SKILL.md · 266 lines

How it starts

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

Database Architect

Schema design, migration planning, query optimization, and zero-downtime schema evolution.

Scope: Database architecture decisions only. NOT for DBA operations, backup management, deployment strategies (use devops-engineer), or vector DB patterns (use data-wizard).

Dispatch

$ARGUMENTS Mode
design <requirements> Design: generate schema DDL from requirements
migrate <description> Migrate: migration SQL with rollback plan
review <schema or migration path> Review: audit existing schema or migration files
optimize <query or table> Optimize: index and query optimization
evolve Evolve: codebase-wide schema evolution analysis
Empty Show mode menu with examples

Canonical Vocabulary

Term Definition
schema Complete DDL definition: tables, columns, constraints, indexes
migration A versioned, reversible schema change with up/down operations
zero-downtime Schema change that requires no application downtime (expand-contract)
expand-contract Two-phase migration: expand (add new), contract (remove old)
normalization level 1NF through 5NF classification of table structure
index coverage Percentage of query patterns served by existing indexes
data loss risk Whether a migration operation can destroy existing data
backwards compatible Migration that works with both old and new application code
hot path Query pattern executed at high frequency requiring optimization
covering index Index containing all columns needed to satisfy a query
partial index Index with a WHERE clause filtering indexed rows
cardinality Number of distinct values in a column relative to total rows

Mode 1: Design

Generate schema DDL from natural language requirements.

Design Step 1: Gather Requirements

Parse requirements from $ARGUMENTS. Identify:

  • Entities and their relationships (1:1, 1:N, M:N)
  • Required constraints (unique, not null, check, foreign key)
  • Expected query patterns and access paths
  • Target database engine (default: PostgreSQL)

Read the full file on GitHub · 266 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 · 266 lines · 41 tokens per session scan A ce3218524dca

Subscribe to this mod's changes

database-architect is a skill published in the GitHub repository wyattowalsh/agents (6 stars, last pushed 10d ago), licensed MIT. It adds 41 tokens to every session and 2,189 once invoked, about $0.0002 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-31.

Related

database-architect compared with skills from other repositories

database-architect next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
database-architectwyattowalsh/agentsSkill610d agoMITA41Claude Code
create-prprisma/ormSkill48ktodayApache-2.0A47Claude Code, Codex
schema-explorationlangchain-ai/deepagentsSkill32ktodayMITA57Claude Code, Codex
atlas-mssqlariga/atlasSkill8.9k5d agoApache-2.0A163Claude Code
ha-data-storesshiwenwen/hope-agentSkill1.9ktodayMITA115Claude Code, Codex
pentesting-mysqlxalgorix/xalgorixSkill1.5k2d agoApache-2.0A65Claude Code, Codex
nornicdb-cypher-queriesorneryd/NornicDBSkill937todayMITA79Claude Code, Codex