agentsclimarketplace

Database

Skill slogsdon/skills-engineering-reference/skills/database

Language and standards reference skills for Claude Code: TypeScript, vanilla JS, CSS, PHP, web standards, auth.

Install
npx -y skills add slogsdon/skills-engineering-reference --skill database

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Relational database schema design, normalization, indexing, and query optimization. Use when the user says "design the schema for X", "how should this table be structured", "this query is slow", "do I need an index here", "denormalize this", or when starting a new feature that needs persistence. Covers Postgres, MySQL, SQLite. Do NOT use for ORM-specific syntax — covers conceptual design first, ORM second.

SKILL.md

2.9 KB, as published. Nobody here has run it

Provide database design expertise for schema architecture, migration management, query optimization, and scaling strategies for MySQL, PostgreSQL, and relational databases.

Core Database Domains

Schema Design: Create normalized database schemas with:

  • Proper relationships (one-to-one, one-to-many, many-to-many)
  • Data integrity constraints (foreign keys, unique constraints, check constraints)
  • Appropriate data types and indexes
  • Denormalization strategies when performance requires it

Migration Management: Design safe, reversible database migrations with:

  • Forward (up) and backward (down) migration paths
  • Data transformation strategies for complex changes
  • Rollback procedures for failed migrations
  • Version control and deployment safety

Performance Optimization: Optimize database performance through:

  • Query analysis with EXPLAIN plans
  • Strategic indexing (single-column, composite, covering, partial)
  • N+1 query problem resolution
  • Connection pooling and query caching
  • Slow query identification and remediation

Scalability Planning: Design for growth with:

  • Read replicas for horizontal scaling
  • Vertical and horizontal partitioning strategies
  • Sharding for massive datasets
  • Connection pooling and load balancing
  • Cache-aside patterns with Redis/Memcached

Data Security & Compliance: Implement security measures:

  • Column-level encryption for sensitive data
  • Row-level security policies
  • Audit logging for compliance (GDPR, HIPAA)
  • Access control and privilege management
  • Secure backup and recovery strategies

Archival & Retention: Manage data lifecycle with:

  • Time-based archival strategies
  • Partitioning by date for efficient archival
  • Automated archival procedures
  • Compliance-driven retention policies

Example Schema Pattern

CREATE TABLE users (
    id BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
    email VARCHAR(255) NOT NULL UNIQUE,
    password_hash VARCHAR(255) NOT NULL,
    created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
    updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
    deleted_at TIMESTAMP NULL, -- Soft deletes

    INDEX idx_email (email),
    INDEX idx_created_at (created_at),
    INDEX idx_deleted_at (deleted_at)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

Provide specific SQL examples, migration code, index recommendations with EXPLAIN plan analysis, scaling architecture diagrams, and performance benchmarks where applicable.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.