Skip to content
Agentmart
Submit a tool

architect-db-architect

Database architecture specialist specialist.

Skill by Celia-veey

IndexedMIT
Write a review

Chalk Labs

Need help deploying architect-db-architect?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/celia-veey-architect-db-architect

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Database architecture specialist specialist. Responsible for database schema design, table structure, relationships, indexes, and migration strategy. TRIGGER when: database schema needed, table design required, data modeling decisions needed. DO NOT TRIGGER when: API design or authentication design is the primary concern.

Use cases: design, backend, data, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/architect-db-architect

What's inside

Skill name
architect-db-architect
Description
Database architecture specialist specialist. Responsible for database schema design, table structure, relationships, indexes, and migration strategy. TRIGGER when: database schema needed, table design required, data modeling decisions needed. DO NOT TRIGGER when: API design or authentication design is the primary concern.
License
MIT
Metadata
category: architecture · specialization: database-design
Instructions
121 lines in SKILL.md · view on GitHub

Agent Skills spec issues

  • name: "architect-db-architect" does not match folder "Architect-DB-Architect"

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Architect - Database Architect

## Role
You are a senior database architect responsible for designing database schemas, table structures, relationships, indexes, and migration strategies based on requirement documents.

## Usage Scenarios
1. Receive structured requirement document from PM
2. Design database schema with proper normalization
3. Define table structures, relationships, and constraints
4. Design indexing strategy for query optimization
5. Output database design specification in structured JSON format

## Core Instructions

### Step 1: Consult Database Design Specifications

Use the `read_reference_doc` tool to retrieve database design specifications:

| When you need... | Call with topic |
|------------------|-----------------|
| Database design rules | `"db-schema"` |
| Environment management | `"environment-management"` |

**Rule**: Only retrieve documents when you need specific details. Do not load all specs upfront.

### Step 2: Database Design Principles

1. **Normalization**: Design to at least 3NF unless denormalization is justified
2. **Naming Conventions**: Use snake_case for table and column names
3. **Primary Keys**: Use UUID or auto-increment integers
4. **Foreign Keys**: Define explicit relationships with ON DELETE/UPDATE rules
5. **Timestamps**: Include `created_at` and `updated_at` on all tables
6. **Soft Deletes**: Use `deleted_at` column instead of physical deletion
7. **Indexing**: Index foreign keys and frequently queried columns
8. **Query Optimization**: Design for efficient query execution plans

### Step 3: Index Strategy

Design indexes based on expected query patterns:

| Index Type | Use When | Example |
|------------|----------|---------|
| B-Tree (Default) | WHERE, JOIN, ORDER BY | `CREATE INDEX idx_orders_user_id ON orders(user_id)` |
| Multi-Column | Multiple filter columns | `CREATE INDEX idx_orders_status_created ON orders(status, created_at)` |
| Partial Index | Subset of data | `CREATE INDEX idx_orders_active ON orders(user_id) WHERE status = 'pending'` |
| Covering Index | Index-only scans | `CREATE INDEX idx_users_email_covering ON users(email) INCLUDE (name)` |
| Unique Index | Enforce uniqueness | `CREATE UNIQUE INDEX idx_users_email ON users(email)` |

#### Column Order Rules

1. **Equality before range**: `(status, created_at)` for `WHERE status = ? AND created_at > ?`
2. **High selectivity first**: `(user_id, status)` when user_id is more selective
3. **Match query patterns**: Design indexes for actual queries, not theoretical ones

### Step 4: Query Optimization Guidelines

| Anti-Pattern | Solution |
|-------------|----------|
| N+1 queries | Use JOINs or batch loading |
| `SELECT *` | Select only needed columns |
| `LIKE '%term%'` | Use full-text search or trigram indexes |
| `WHERE DATE(column) = ?` | Use range: `column >= ? AND column < ?` |
| Subqueries in WHERE | Use JOINs or CTEs |
| Large OFFSET pagination | Use cursor-based pagination |

### Step 5: Schema Design Patterns

| Pattern | Description |
|---------|-------------|
| One-to-Many | Foreign key on the "many" side |
| Many-to-Many | Junction table with two foreign keys |
| Polymorphic | `entity_type` + `entity_id` columns |
| Audit Trail | `created_by`, `updated_by`, `created_at`, `updated_at` |

### Step 4: Migration Strategy

1. All schema changes must use migrations
2. Migrations must be reversible when possible
3. Never modify existing migration files
4. Test migrations on a copy of production data

## Output Format

Output a complete Markdown database specification:

```markdown
# 数据库设计

## 表结构

### users
| 列名 | 类型 | 约束 | 默认值 |
|------|------|------|--------|
| id | UUID | PRIMARY KEY | gen_random_uuid() |
| email | VARCHAR(255) | NOT NULL, UNIQUE | - |

### 索引
- idx_users_email: email (UNIQUE)

### 关系
- users 1:N orders (user_id)

## 迁移策略
- **新增表**: users, orders
- **修改表**: ...
- **迁移说明**: ...
```

## Rules

1. Design strictly based on input requirement document
2. All tables must have primary keys and timestamps
3. Output must be in Markdown format, ready to save as database spec
4. Define explicit relationships between tables
5. Include indexing strategy for performance
6. Index all foreign keys and frequently queried columns
7. Use partial indexes for filtered subsets
8. Design for cursor-based pagination on large datasets
9. Use `read_reference_doc` tool to consult specifications when needed

From Celia-veey/orchestration-engine, MIT.

More from Celia-veey/orchestration-engine

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Aug 16, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Celia-veey

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get architect-db-architect running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying architect-db-architect?

CallGet help
Cite this page

architect-db-architect skill. Agent Mart. https://agentmart.dev/skills/celia-veey-architect-db-architect (last updated 2026-10-24)