database-patterns

Guide database design patterns, optimization, and best practices for relational and NoSQL databases.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/cooldaemon/dotfiles --skill database-patterns-cooldaemon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-patterns
Source: https://github.com/cooldaemon/dotfiles/tree/main/.claude/skills/database-patterns
Command: npx skills add https://github.com/cooldaemon/dotfiles --skill database-patterns-cooldaemon

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses common pitfalls in database design, optimization, and querying, helping developers build more robust, performant, and scalable applications.

Core Features & Use Cases

  • Database Optimization: Learn best practices for indexing, query tuning, and schema design in MySQL/Aurora.
  • Caching Strategies: Understand when and how to use caching effectively, and when to avoid it.
  • NoSQL Guidelines: Get advice on appropriate use cases for NoSQL databases like MongoDB.
  • Use Case: When designing a new e-commerce platform, use this Skill to ensure your product catalog database is efficiently indexed for fast lookups and that your order processing transactions are optimized for consistency.

Quick Start

Review the best practices for adding indexes to database tables.

Frequently Asked Questions about database-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize MySQL query performance and design efficient indexes?

To optimize MySQL query performance, apply best practices for index design, query tuning, and schema design to ensure fast lookups and robust transaction management. Following these guidelines helps avoid common querying anti-patterns.

What are common database schema design anti-patterns and how do I avoid them?

Common database schema design anti-patterns cause performance bottlenecks and data inconsistency. You can avoid them by applying proven relational database design patterns, ensuring your schema is normalized appropriately and optimized for your specific querying patterns.

When should I implement database sharding strategies for scaling?

Implement database sharding strategies when your application outgrows single-node capacity and requires horizontal scaling. Proper sharding distributes data across multiple nodes, improving write throughput and storage capacity for high-traffic platforms.

How does caching work and when should I avoid it in database optimization?

Caching works by storing frequently accessed data in memory to reduce database load. You should avoid caching when data changes frequently or strict consistency is required, as stale cache entries can cause application logic errors.