travisjneuman avatar

Database Expert

This is a solid reference for PostgreSQL, MongoDB, and Redis fundamentals. It covers the essentials: schema design patterns, query optimization with EXPLAIN ANALYZE, indexing strategies including partial and covering indexes, and Redis caching patterns like cache-aside and distributed locking. The PostgreSQL section is the strongest with practical examples of CTEs, window functions, and triggers. Use this when you need quick syntax for common database operations or want to compare approaches across different database types. It won't make you a DBA, but it handles the 80% of database work that comes up in typical application development without having to context switch to documentation.

skills.sh installs
251
GitHub stars
108
last updated
Aug 21, 2026

Install

$ npx -y skills add travisjneuman/.claude --skill database-expert --agent claude-code

Installs into .claude/skills of the current project.

Files

Database Expert

Comprehensive guide for database design, optimization, and administration.

Database Selection

DatabaseTypeBest For
PostgreSQLRelationalComplex queries, ACID, JSON support
MongoDBDocumentFlexible schemas, rapid iteration
RedisKey-ValueCaching, sessions, real-time
SQLiteEmbeddedMobile, desktop, testing

PostgreSQL

Schema Design

-- Users table with proper constraints
CREATE TABLE users (
    id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
    email VARCHAR(255) NOT NULL UNIQUE,
    password_hash VARCHAR(255) NOT NULL,
    full_name VARCHAR(100) NOT NULL,
    status VARCHAR(20) NOT NULL DEFAULT 'active'
        CHECK (status IN ('active', 'inactive', 'suspended')),
    created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
    updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
);

-- Index for common queries
CREATE INDEX idx_users_email ON users(email);
CREATE INDEX idx_users_status ON users(status) WHERE status = 'active';

Sponsors

Details

Repository
github.com/travisjneuman/.claude
Categories
Backend & APIs, Debugging, Design & UI/UX, Databases
First seen
Jun 3, 2026

More from travisjneuman/.claude

All 33
1yonatangross avatarpython-backendyonatangross/orchestkitProduction Python async patterns including asyncio TaskGroup, FastAPI dependency injection and middleware, SQLAlchemy 2.0 async sessions, and database connectio249skills.sh installs
2davila7 avatarensembl-databasedavila7/claude-code-templatesQuery Ensembl genome database REST API for 250+ species. Gene lookups, sequence retrieval, variant analysis, comparative genomics, orthologs, VEP predictions, f246skills.sh installs
3davila7 avatargraphqldavila7/claude-code-templatesGraphQL gives clients exactly the data they need - no more, no less. One endpoint, typed schema, introspection. But the flexibility that makes it powerful also 245skills.sh installs
4maxnorm avatarmagento-api-developermaxnorm/magento2-agent-skillsDesigns and implements REST and GraphQL APIs for Magento 2. Use when developing APIs, creating service contracts, building headless commerce solutions, or integ245skills.sh installs
5connorads avatarpayload-cmsconnorads/dotfilesUse when working with Payload CMS projects (payload.config.ts, collections, fields, hooks, access control, Payload API). Triggers on tasks involving: collection240skills.sh installs
6davila7 avatarclerk-authdavila7/claude-code-templatesExpert patterns for Clerk auth implementation, middleware, organizations, webhooks, and user sync Use when: adding authentication, clerk auth, user authenticati220skills.sh installs