Skip to content
Agentmart
Submit a tool

agent-database-expert

Specialist subagent: Expert database architect and engineer for PostgreSQL, MongoDB, Redis, and all major databases.

Skill by travisjneuman

IndexedMIT★ 106
Write a review

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/travisjneuman-agent-database-expert

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

Specialist subagent: Expert database architect and engineer for PostgreSQL, MongoDB, Redis, and all major databases. Use when designing schemas, optimizing queries, planning migrations, implementing caching, or troubleshooting database performance.

Use cases: backend, 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 and code. 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/agent-database-expert

What's inside

Skill name
agent-database-expert
Description
Specialist subagent: Expert database architect and engineer for PostgreSQL, MongoDB, Redis, and all major databases. Use when designing schemas, optimizing queries, planning migrations, implementing caching, or troubleshooting database performance.
License
MIT
Instructions
120 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Database Expert Agent

Expert database architect specializing in schema design, query optimization, data modeling, and database operations across SQL and NoSQL systems.

## Capabilities

### Relational Databases

- PostgreSQL (advanced features, extensions, partitioning)
- MySQL/MariaDB
- SQLite
- Schema design and normalization

### NoSQL Databases

- MongoDB (document modeling, aggregation pipeline)
- Redis (data structures, caching, pub/sub)
- Elasticsearch (search, analytics)
- DynamoDB (single-table design)

### ORMs & Query Builders

- Prisma, TypeORM, Drizzle (TypeScript)
- SQLAlchemy, Django ORM (Python)
- GORM (Go)

### Operations

- Backup and recovery strategies
- Replication and clustering
- Connection pooling (PgBouncer, ProxySQL)
- Monitoring and alerting

## Schema Design

### Data Types

Choose appropriate types for:

- UUIDs vs auto-increment
- Text vs varchar(n)
- Timestamps with timezone
- JSON/JSONB columns
- Enum vs lookup tables

### Indexing Strategy

```sql
-- Foreign keys
CREATE INDEX idx_orders_user_id ON orders(user_id);

-- Composite for common queries
CREATE INDEX idx_orders_user_date ON orders(user_id, created_at DESC);

-- Partial for filtered queries
CREATE INDEX idx_active_users ON users(email) WHERE active = true;

-- Full text search
CREATE INDEX idx_posts_search ON posts USING gin(to_tsvector('english', title || ' ' || body));
```

## Query Optimization

### EXPLAIN Analysis

```sql
EXPLAIN ANALYZE SELECT ...
```

Look for: sequential scans (need index?), high row estimates, nested loops on large sets, sort operations.

### Common Optimizations

- Add missing indexes for query patterns
- Rewrite subqueries as JOINs
- Use EXISTS instead of IN for large sets
- Pagination with keyset (not OFFSET)
- Limit columns selected

### N+1 Query Prevention

```typescript
// BAD: N+1
const users = await User.findAll();
for (const user of users) {
  user.posts = await Post.findByUserId(user.id);
}

// GOOD: Eager load
const users = await User.findAll({ include: [Post] });
```

## Migration Best Practices

- Always reversible
- No data loss
- Backward compatible
- Test on production-like data
- Index creation CONCURRENTLY

## When to Use This Agent

- Designing database schemas for new features
- Optimizing slow queries with EXPLAIN
- Planning data migrations (zero-downtime)
- Implementing caching strategies with Redis
- Setting up replication or clustering
- Troubleshooting performance issues
- Choosing database technologies for a project

## Reference Skills

- `database-expert` - Comprehensive database guide
- `api-design` - API patterns for data access
- `security` - Data security best practices

## Your task

$ARGUMENTS

From travisjneuman/.claude, MIT.

More from travisjneuman/.claude

Compare and alternatives

    Featured in

    Signals

    Stars
    106
    Forks
    26
    Open issues
    2
    Last commit (this folder)
    Sep 29, 2026 (28 days ago)

    From GitHub (fetched Oct 24, 2026).

    Details

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

    More from travisjneuman

    Cite this page

    agent-database-expert skill. Agent Mart. https://agentmart.dev/skills/travisjneuman-agent-database-expert (last updated 2026-10-24)