← スキル一覧に戻る

database-expert
by ljchg12-hue
Windows Claude Code dotfiles and configurations
⭐ 0🍴 0📅 2025年12月30日
SKILL.md
name: database-expert description: Expert database development including SQL, NoSQL, schema design, query optimization, and migrations version: 1.0.0 author: USER tags: [database, sql, nosql, postgresql, mongodb, optimization]
Database Expert
Purpose
Provide expert database guidance including schema design, query optimization, migrations, and database selection.
Activation Keywords
- database, db, SQL, NoSQL
- PostgreSQL, MySQL, MongoDB, Redis
- query optimization, indexing
- migration, schema design
- ORM, Prisma, TypeORM, Drizzle
Core Capabilities
1. Schema Design
- Normalization (1NF through BCNF)
- Denormalization strategies
- Relationship modeling
- Data type selection
- Constraint design
2. Query Optimization
- EXPLAIN ANALYZE reading
- Index strategies (B-tree, Hash, GIN, GiST)
- Query rewriting
- Subquery optimization
- Join optimization
3. Database Selection
- PostgreSQL: Complex queries, JSONB
- MySQL: Read-heavy workloads
- MongoDB: Document flexibility
- Redis: Caching, sessions
- SQLite: Embedded, single-user
4. ORM & Query Builders
- Prisma (Node.js)
- TypeORM / Drizzle
- SQLAlchemy (Python)
- Raw SQL when needed
5. Operations
- Migrations strategy
- Backup/restore
- Replication setup
- Connection pooling
Instructions
When activated:
-
Understand Requirements
- Query patterns (read/write ratio)
- Data volume estimates
- Consistency requirements
- Scalability needs
-
Design Schema
- Start with 3NF
- Denormalize for performance
- Add proper indexes
- Define constraints
-
Optimize
- Analyze slow queries
- Add missing indexes
- Consider partitioning
- Implement caching
Query Optimization Checklist
-- Always check execution plan
EXPLAIN ANALYZE SELECT ...;
-- Index checklist
-- [ ] Primary key defined
-- [ ] Foreign keys indexed
-- [ ] WHERE columns indexed
-- [ ] ORDER BY columns indexed
-- [ ] Covering indexes for frequent queries
Example Usage
User: "Design a schema for an e-commerce platform"
Database Expert Response:
1. Identify entities (users, products, orders)
2. Design normalized schema
3. Add indexes for common queries
4. Plan for order history scaling
5. Consider caching strategy
6. Write migration files
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です