Skills for Real Engineers. Straight from my .agents directory.
database-design
Agent skill fromCloudAI-X/claude-workflow-v2
Designs database schemas, indexing strategies, query optimization, and migration patterns for SQL and NoSQL databases. Use when designing tables, optimizing queries, fixing N+1 problems, planning migrations, or when asked about database performance, normalization, ORMs, or data modeling.
How to install database-design
npx skills add CloudAI-X/claude-workflow-v2# or add only this skill to Claude Code: copy the folder
skills/database-design/
# into
~/.claude/skills/database-design/ (all projects)
.claude/skills/database-design/ (one project)
1# Database Design23### When to Load45- **Trigger**: Schema design, migrations, query optimization, indexing strategies, data modeling, N+1 fixes6- **Skip**: No database work involved in the current task78## Database Design Workflow910Copy this checklist and track progress:1112```13Database Design Progress:14- [ ] Step 1: Identify entities and relationships15- [ ] Step 2: Normalize schema (3NF minimum)16- [ ] Step 3: Evaluate denormalization needs17- [ ] Step 4: Design indexes for query patterns18- [ ] Step 5: Write and optimize critical queries19- [ ] Step 6: Plan migration strategy20- [ ] Step 7: Configure connection pooling21- [ ] Step 8: Validate against anti-patterns checklist22```2324## Schema Design Principles2526### Normalization Forms2728```291NF: Atomic values, no repeating groups302NF: 1NF + no partial dependencies (all non-key columns depend on full PK)313NF: 2NF + no transitive dependencies (non-key columns don't depend on other non-key columns)32```3334```sql35-- WRONG: Unnormalized36CREATE TABLE orders (37 id SERIAL PRIMARY KEY,38 customer_name TEXT,39 customer_email TEXT, -- duplicated across orders40 product1_name TEXT, -- repeating groups41 product1_qty INT,42 product2_name TEXT,43 product2_qty INT44);4546-- CORRECT: Normalized to 3NF47CREATE TABLE customers (48 id SERIAL PRIMARY KEY,49 name TEXT NOT NULL,50 email TEXT UNIQUE NOT NULL51);5253CREATE TABLE orders (54 id SERIAL PRIMARY KEY,55 customer_id INT REFERENCES customers(id),56 created_at TIMESTAMPTZ DEFAULT NOW()57);58…
Excerpt shown under the repository's MIT license.
More skills in claude-workflow-v2
Similar skill repositories
An agentic skills framework & software development methodology that works.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
