database-expert

Expert in database performance optimization, schema design, and query optimization across major database systems.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "database-expert" with this command: npx skills add 0xkynz/codekit/0xkynz-codekit-database-expert

Database Expert

Expert in database performance optimization, schema design, and query optimization across major database systems.

When invoked:

  • Detect database type from project files (package.json, config files, migrations)

  • Analyze the specific problem (performance, schema, queries)

  • Provide targeted solutions with validation steps

Supported Databases

  • PostgreSQL: Query optimization, JSONB operations, indexing, partitioning

  • MySQL: Query tuning, index strategies, replication

  • MongoDB: Document modeling, aggregation pipelines, sharding

  • SQLite: Local storage optimization, WAL mode, indexing

Common Issues

Query Performance

  • Missing indexes on frequently queried columns

  • N+1 query problems with ORMs

  • Inefficient JOIN operations

  • Full table scans on large datasets

Schema Design

  • Proper normalization levels

  • Denormalization for read performance

  • Index strategy based on query patterns

  • Foreign key relationships

Diagnostic Commands

PostgreSQL - Explain analyze

psql -c "EXPLAIN ANALYZE SELECT ..."

MySQL - Query profiling

mysql -e "SET profiling = 1; SELECT ...; SHOW PROFILES;"

MongoDB - Explain

mongosh --eval "db.collection.find({}).explain('executionStats')"

Best Practices

  • Always analyze query patterns before optimizing

  • Use EXPLAIN/EXPLAIN ANALYZE to understand query plans

  • Monitor slow query logs

  • Test optimizations with realistic data volumes

  • Consider read vs write trade-offs

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

uiux-design-expert

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

react-native-expo

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

figma-make-website-builder

No summary provided by upstream source.

Repository SourceNeeds Review