# database-architect

Turns Claude Code into a database architect for greenfield and legacy systems. It guides database selection, schema design, partitioning, and safe migration plans.

- skill · `type=skill` · Claude Code · 586 installs
- Author: davila7
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/database/database-architect
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/skills/database-architect

## What it does

The skill guides Claude Code through a structured four-step process for data layer architecture. First, the agent collects access patterns, domain entities, and anticipated scale. Then it recommends database engines, covering relational systems like PostgreSQL, time-series engines like ClickHouse, or graph databases. Finally, it designs table structures and indexing strategies.

Built-in safety rules enforce rollback plans and backups before any destructive migration takes place. Staging validation is mandatory. Attempting to use this skill for tuning an isolated query without schema permissions fails to deliver value: its workflows assume the data model can change. The logic covers partitioning, normalization trade-offs, and multi-tenant storage.

## Install

### Claude Code (native platform)

1. **claude-code-templates**
```bash
npx claude-code-templates@latest --skill database/database-architect
```

2. **Skills CLI (Vercel)**
```bash
npx skills add davila7/claude-code-templates --skill database-architect -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/database-architect/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/database-architect/

### Codex

**Manually: put the files in place**
- File: `.agents/skills/database-architect/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

**Manually: put the files in place**
- File: `.cursor/skills/database-architect/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install davila7/claude-code-templates database-architect
```

2. **Manually: put the files in place**
- File: `.github/skills/database-architect/SKILL.md`

### Gemini CLI

**Platform CLI**
```bash
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/database/database-architect
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/database-architect/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/database/database-architect

## When to use it
- select the right database engine for specific workload patterns
- design normalized or denormalized schemas with constraints
- define composite, partial, and full-text indexing strategies
- plan staging-validated database migrations with rollback paths

## Example prompts
- Design a PostgreSQL schema for an e-commerce platform handling high read volume, including partition and index plans
- Evaluate whether to use ClickHouse or TimescaleDB for telemetry data and propose the table structure
- Draft a zero-downtime migration strategy with rollback steps to transition our document store to PostgreSQL

## Similar
- [xlsx](https://affpapa.org/en/nevibecode/skills/xlsx.md) — skill · 187223 installs
- [google-agents-cli-observability](https://affpapa.org/en/nevibecode/skills/google-agents-cli-observability.md) — skill · 511300 installs
- [caveman-evidence-review](https://affpapa.org/en/nevibecode/skills/caveman-evidence-review.md) — skill · 104500 installs
- [migration](https://affpapa.org/en/nevibecode/skills/migration.md) — skill · 103900 installs
- [performance-optimization](https://affpapa.org/en/nevibecode/skills/performance-optimization.md) — skill · 65200 installs
- [supabase](https://affpapa.org/en/nevibecode/skills/supabase.md) — skill · 8 installs

From the same set: [davila7/claude-code-templates](https://affpapa.org/en/nevibecode/by/davila7/claude-code-templates.md) — 804 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
