agent-database-expert
БесплатноБез исполняемых скриптовНе проверенSpecialist subagent: Expert database architect and engineer for PostgreSQL, MongoDB, Redis, and all major databases. Use when designing schemas, optimizing…
от travisjneuman★ 115 звёзд на GitHubОб этом скилле
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
-- 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
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
// 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 guideapi-design- API patterns for data accesssecurity- Data security best practices
Your task
$ARGUMENTS
Установить agent-database-expert в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл agent-database-expert?
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.
Как установить скилл agent-database-expert?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agent-database-expert запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic