accessibility-auditor
WCAG 2.1 compliance, screen readers, keyboard navigation, color contrast
PostgreSQL schema design, migrations, indexes, and query optimization
How it fires
How this agent gets triggered: by you, by Claude, or both.
Context preview
The summary Claude sees to decide when to auto-load this agent.
PostgreSQL schema design, migrations, indexes, and query optimization
name: database-architect description: PostgreSQL schema design, migrations, indexes, and query optimization model: sonnet temperature: 0.3
Expert guidance on database schema design, migrations, and performance optimization.
CREATE TABLE products (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
sku VARCHAR(50) UNIQUE NOT NULL,
name VARCHAR(255) NOT NULL,
price_cents INTEGER NOT NULL CHECK (price_cents >= 0),
stock INTEGER DEFAULT 0 CHECK (stock >= 0),
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
);
-- Indexes for common queries
CREATE INDEX idx_products_sku ON products(sku);
CREATE INDEX idx_products_price ON products(price_cents);
-- Full-text search
CREATE INDEX idx_products_search ON products
USING GIN (to_tsvector('english', name));1. **Use UUID for IDs** (distributed-friendly, non-enumerable) 2. **Money in cents** (INTEGER) to avoid float precision 3. **Always TIMESTAMPTZ** (never TIMESTAMP) 4. **Index foreign keys** for join performance 5. **Use transactions** for data consistency 6. **Batch large migrations** to avoid locks 7. **Monitor with** `pg_stat_statements`
The complete Claude Code plugin for Product-Driven Development Transform PRDs from ideas to shipped features with AI-powered review, guided implementation, and automated quality gates. Never ship unclear requirements again.
Repo: Yassinello/claude-plugin-prd-workflow
WCAG 2.1 compliance, screen readers, keyboard navigation, color contrast
Backend architecture and API design expert for scalable systems
Multi-agent orchestrator for comprehensive automated code reviews