๐Ÿš€ Claude Code Configs

August 24, 2025 ยท View on GitHub

NPM Version NPM Downloads GitHub Stars License Tests Node Version

Production-ready Claude Code configurations for popular frameworks and tools

๐ŸŽ‰ Version 1.0.0 - Production-ready with comprehensive testing and 124 passing tests ๐Ÿ“ฆ NPM Package - Install with npm install -g claude-config-composer or use npx

๐Ÿšจ Breaking Changes for Existing Users

This release fundamentally changes how configs are organized and used.

  • โœ… Migration Guide Available: MIGRATION.md
  • ๐Ÿ”„ Individual configs moved to configurations/ directory
  • ๐ŸŽฏ New CLI tool for intelligent config merging
  • โš ๏ธ Direct directory copying is deprecated

๐ŸŽฏ Key Features

  • โœ… 124 Passing Tests - Comprehensive test coverage
  • โœ… 8+ Production Configurations - Frameworks, UI libraries, databases, MCP servers, and tools
  • โœ… Intelligent Merging - Combine multiple configs without conflicts
  • โœ… Zero Dependencies (runtime) - Lightweight and fast
  • โœ… TypeScript - Full type safety and modern development
  • โœ… Git Integration - Automatic .gitignore updates and backups

https://github.com/user-attachments/assets/5b407973-4148-49e3-872f-ce3f9a3161f8

Report Issues

Found a bug? Please report it at GitHub Issues

๐ŸŽฏ Two Ways to Use This Repository

Quick Start with NPX (No Installation Required):

# Generate configs directly in your project
npx claude-config-composer nextjs-15 shadcn

# Or use interactive mode
npx claude-config-composer

Global Installation:

# Install globally for frequent use
npm install -g claude-config-composer

# Then use from any project
claude-compose nextjs-15 shadcn tailwindcss

Local Development (For Contributors):

# Clone and set up the composer
git clone https://github.com/Matt-Dionis/claude-code-configs.git
cd claude-code-configs/claude-config-composer
npm install && npm run build

# Generate configs from your project directory
cd /path/to/your/project
node /path/to/claude-code-configs/claude-config-composer/dist/cli.js nextjs-15 shadcn

โœจ Features:

  • Intelligently merges multiple configs
  • Automatic backups of existing configs
  • Git-friendly (auto-adds to .gitignore)
  • Production-ready output
  • Zero installation (once published to npm)

2. ๐Ÿ“ Manual Copy Individual Configs

For single framework setups:

# Copy a specific configuration to your project
cp -r configurations/frameworks/nextjs-15/.claude your-project/
cp configurations/frameworks/nextjs-15/CLAUDE.md your-project/

Available configurations:

Frameworks:

  • nextjs-15 - Next.js 15 with App Router and React 19

UI & Styling:

  • shadcn - shadcn/ui component library with Radix UI
  • tailwindcss - Utility-first CSS framework with responsive design

Databases:

  • drizzle - Type-safe ORM with schema management and migrations

Development Tools:

  • vercel-ai-sdk - Streaming AI applications with function calling

MCP Servers (Complete Solutions):

  • memory-mcp-server - MCP server with vector search and persistence
  • token-gated-mcp-server - Token-gated MCP server using the Radius MCP SDK

๐Ÿ“ธ What Gets Generated - Before & After Example

Before: Empty Project Directory

your-nextjs-project/
โ”œโ”€โ”€ app/
โ”œโ”€โ”€ components/
โ”œโ”€โ”€ package.json
โ””โ”€โ”€ next.config.js

After: Running npx claude-config-composer nextjs-15 shadcn tailwindcss

your-nextjs-project/
โ”œโ”€โ”€ app/
โ”œโ”€โ”€ components/
โ”œโ”€โ”€ package.json
โ”œโ”€โ”€ next.config.js
โ”œโ”€โ”€ CLAUDE.md                   # โœจ Combined best practices from all configs
โ””โ”€โ”€ .claude/                    # โœจ Generated configuration
    โ”œโ”€โ”€ agents/
    โ”‚   โ”œโ”€โ”€ nextjs-app-router.md         # Next.js routing expertise
    โ”‚   โ”œโ”€โ”€ component-builder.md         # shadcn component patterns
    โ”‚   โ”œโ”€โ”€ responsive-designer.md       # Tailwind responsive design
    โ”‚   โ””โ”€โ”€ ... (20+ more specialized agents)
    โ”œโ”€โ”€ commands/
    โ”‚   โ”œโ”€โ”€ create-page.md               # Generate Next.js pages
    โ”‚   โ”œโ”€โ”€ add-component.md             # Add shadcn components
    โ”‚   โ”œโ”€โ”€ optimize-styles.md           # Tailwind optimization
    โ”‚   โ””โ”€โ”€ ... (15+ workflow commands)
    โ”œโ”€โ”€ hooks/
    โ”‚   โ”œโ”€โ”€ format-code.sh               # Auto-format on save
    โ”‚   โ”œโ”€โ”€ validate-components.sh       # Component validation
    โ”‚   โ””โ”€โ”€ optimize-imports.sh          # Import optimization
    โ””โ”€โ”€ settings.json                    # Merged permissions & env vars

๐ŸŽฏ Key Benefits of Generated Config

  • 40+ specialized agents covering Next.js, shadcn, and Tailwind expertise
  • Intelligent permission controls tailored to your stack
  • Automated workflows via hooks for formatting, validation, and optimization
  • Zero conflicts - all configurations intelligently merged
  • Production-ready - works immediately with Claude Code

๐Ÿ“ Repository Structure

claude-config-composer/         # ๐Ÿ”ง Dynamic config generator CLI tool
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ cli.ts                 # Interactive CLI interface
โ”‚   โ”œโ”€โ”€ parser/                # Config parsing logic
โ”‚   โ”œโ”€โ”€ merger/                # Intelligent merging
โ”‚   โ””โ”€โ”€ generator/             # .claude directory generation
โ””โ”€โ”€ README.md                  # Tool documentation

configurations/                 # ๐Ÿ“ฆ All Claude Code configurations
โ”œโ”€โ”€ frameworks/                 # Framework-specific configurations
โ”‚   โ””โ”€โ”€ nextjs-15/             # Next.js 15 with App Router & React 19
โ”‚       โ”œโ”€โ”€ .claude/           # Complete config with agents, commands, hooks
โ”‚       โ”œโ”€โ”€ CLAUDE.md          # Next.js 15 development patterns
โ”‚       โ””โ”€โ”€ README.md          # Setup and usage guide
โ”œโ”€โ”€ ui/                        # UI library and styling configurations
โ”‚   โ”œโ”€โ”€ shadcn/                # shadcn/ui component library
โ”‚   โ”‚   โ”œโ”€โ”€ .claude/           # UI development agents and commands
โ”‚   โ”‚   โ”œโ”€โ”€ CLAUDE.md          # Component patterns and best practices
โ”‚   โ”‚   โ””โ”€โ”€ README.md          # Installation and setup guide
โ”‚   โ””โ”€โ”€ tailwindcss/           # Utility-first CSS framework
โ”‚       โ”œโ”€โ”€ .claude/           # Styling and design system agents
โ”‚       โ”œโ”€โ”€ CLAUDE.md          # Tailwind patterns and optimization
โ”‚       โ””โ”€โ”€ README.md          # Configuration and usage guide
โ”œโ”€โ”€ databases/                  # Database and ORM configurations
โ”‚   โ””โ”€โ”€ drizzle/               # Type-safe ORM with migrations
โ”‚       โ”œโ”€โ”€ .claude/           # Database development agents
โ”‚       โ”œโ”€โ”€ CLAUDE.md          # Schema management and query patterns
โ”‚       โ””โ”€โ”€ README.md          # Setup and migration guide
โ”œโ”€โ”€ tooling/                   # Development tools and SDKs
โ”‚   โ””โ”€โ”€ vercel-ai-sdk/         # AI application development
โ”‚       โ”œโ”€โ”€ .claude/           # AI development agents and workflows
โ”‚       โ”œโ”€โ”€ CLAUDE.md          # Streaming and function calling patterns
โ”‚       โ””โ”€โ”€ README.md          # SDK setup and usage guide
โ””โ”€โ”€ mcp-servers/               # Complete MCP server solutions
    โ”œโ”€โ”€ memory-mcp-server/     # Memory-enabled MCP server
    โ”‚   โ”œโ”€โ”€ .claude/           # Full-stack development agents
    โ”‚   โ”œโ”€โ”€ CLAUDE.md          # Vector search and persistence patterns
    โ”‚   โ””โ”€โ”€ README.md          # Complete setup guide
    โ””โ”€โ”€ token-gated-mcp-server/ # Authentication-enabled MCP server
        โ”œโ”€โ”€ .claude/           # Security and auth agents
        โ”œโ”€โ”€ CLAUDE.md          # Token management and security patterns
        โ””โ”€โ”€ README.md          # Authentication setup guide

docs/                          # ๐Ÿ“š Documentation and guides
โ”œโ”€โ”€ claude-code-github-actions.md
โ”œโ”€โ”€ claude-code-sdk.md
โ”œโ”€โ”€ get-started-with-claude-code-hooks.md
โ””โ”€โ”€ [other documentation files]

# ๐Ÿšง Coming Soon:
# configurations/
# โ”œโ”€โ”€ frameworks/
# โ”‚   โ”œโ”€โ”€ react-19/           # Standalone React 19 patterns
# โ”‚   โ””โ”€โ”€ svelte-5/           # SvelteKit 2.0 configuration
# โ”œโ”€โ”€ databases/
# โ”‚   โ”œโ”€โ”€ prisma/             # Alternative ORM configuration
# โ”‚   โ””โ”€โ”€ supabase/           # Backend-as-a-Service setup
# โ”œโ”€โ”€ testing/
# โ”‚   โ”œโ”€โ”€ vitest/             # Fast testing framework
# โ”‚   โ””โ”€โ”€ playwright/         # E2E testing configuration
# โ””โ”€โ”€ tooling/
#     โ”œโ”€โ”€ zod/                # Schema validation patterns
#     โ””โ”€โ”€ trpc/               # End-to-end type safety

๐Ÿš€ Quick Start with Claude Config Composer

Install and Use

# Quick start with npx (no installation)
npx claude-config-composer nextjs-15 shadcn tailwindcss

# Or install globally
npm install -g claude-config-composer

# Then use the short alias
claude-compose nextjs-15 shadcn

Common Commands

# Interactive mode - choose configs visually
npx claude-config-composer

# List all available configurations
npx claude-config-composer list

# Generate full-stack configuration
npx claude-config-composer nextjs-15 shadcn tailwindcss drizzle vercel-ai-sdk

# AI development stack
npx claude-config-composer vercel-ai-sdk drizzle

# Preview without creating files
npx claude-config-composer dry-run nextjs-15 shadcn

# Validate existing configuration
npx claude-config-composer validate

What Gets Generated

A complete .claude/ directory in your project with:

  • Combined agents from all selected configs
  • Merged commands and hooks
  • Unified settings.json
  • Comprehensive CLAUDE.md documentation

๐ŸŽฏ Available Configurations

Memory MCP Server Configuration

A production-grade configuration for building MCP servers with memory persistence and vector search:

  • 15 Specialized Agents for MCP, database, and memory systems
  • 7 Custom Commands for development workflows
  • 2 Automation Hooks for TypeScript and logging
  • Optimized for: PostgreSQL 17, pgvector, Drizzle ORM, MCP SDK

View Memory MCP Server Details โ†’

๐ŸŽฏ Framework-Specific Configurations

Next.js 15 Configuration

A complete Claude Code configuration tailored for Next.js 15 development, including:

Specialized Next.js Agents (11 total)

Core Development:

  • nextjs-app-router - App Router routing patterns and best practices
  • nextjs-server-components - Server/Client component optimization
  • nextjs-server-actions - Forms, mutations, and progressive enhancement
  • nextjs-data-fetching - Caching strategies and streaming
  • nextjs-performance - Bundle analysis and Core Web Vitals

Infrastructure & Quality:

  • nextjs-testing - Jest, Vitest, Playwright setup
  • nextjs-deployment - Docker, Vercel, AWS deployment
  • nextjs-migration - Pages Router to App Router migration
  • nextjs-security - Authentication, CSP, OWASP compliance
  • nextjs-debugging - React DevTools and troubleshooting
  • nextjs-typescript - Type safety and error resolution

Next.js Commands (6 total)

/create-page [route]          # Generate page with loading/error boundaries
/create-server-action [name]  # Create type-safe Server Actions
/optimize-components          # Analyze component boundaries
/setup-testing [framework]    # Configure testing framework
/analyze-performance          # Generate performance report
/migrate-to-app-router        # Migrate from Pages Router

Key Features

  • React 19 & Async Request APIs - Full support for Next.js 15 breaking changes
  • Server Components First - Optimized for minimal client JavaScript
  • Intelligent Validation - Pre-commit hooks for Next.js patterns
  • Best Practices Enforcement - Automated checks for common mistakes
  • Complete Documentation - CLAUDE.md with Next.js 15 patterns

Memory MCP Server Commands

/setup quick       # Quick MCP project setup
/setup full        # Complete environment with dependencies
/setup database    # PostgreSQL & pgvector initialization
/mcp-debug        # Debug MCP protocol issues
/memory-ops       # Test memory CRUD operations

Next.js 15 Commands

/create-page              # Generate page with boundaries
/create-server-action     # Create type-safe Server Actions
/optimize-components      # Analyze component boundaries
/analyze-performance      # Generate performance report
/migrate-to-app-router    # Migrate from Pages Router

โšก Shared Features

Automation Hooks

Both configurations include intelligent hooks:

  • TypeScript Development - Auto type-check, format, lint
  • Command Logging - Audit trail with timestamps
  • Smart Filtering - Skip node_modules, build directories
  • Test Automation - Run tests on file changes

Security Best Practices

All configurations enforce:

  • ๐Ÿ”’ Whitelist approach for commands
  • ๐Ÿšซ Protected sensitive files (.env, secrets)
  • โœ… Scoped write permissions by file type
  • ๐Ÿ›ก๏ธ Safe git operations (no force push)
  • ๐Ÿ” Input validation with Zod schemas

๐Ÿ’ก Use Cases & Examples

1. Memory MCP Server Development

Use the memory-mcp-server configuration for:

  • Building MCP servers with persistent memory storage
  • Implementing vector search with pgvector and OpenAI embeddings
  • Creating multi-tenant AI companion systems
  • Setting up production PostgreSQL with Neon
  • Deploying with Docker and Kubernetes

2. Next.js 15 Application Development

Use the nextjs-15 configuration for:

  • Setting up new Next.js 15 projects with best practices
  • Migrating from Pages Router to App Router
  • Implementing Server Components and Server Actions
  • Optimizing performance and Core Web Vitals
  • Setting up comprehensive testing
  • Deploying to Vercel, Docker, or AWS

Production Deployment Pipeline

Leverage deployment agents for:

  • Docker containerization with security hardening
  • Kubernetes orchestration with auto-scaling
  • Prometheus/Grafana monitoring setup
  • Structured logging and distributed tracing

AI Companion Development

Build multi-tenant companion systems with:

  • Isolated memory spaces per user
  • Token-based authentication
  • Rate limiting and quota management
  • Conversation history with vector search

๐Ÿ“Š What You Get

Complete .claude Directory Structure

.claude/
โ”œโ”€โ”€ CLAUDE.md           # Combined best practices
โ”œโ”€โ”€ .claude/
โ”‚   โ”œโ”€โ”€ settings.json   # Merged settings
โ”‚   โ”œโ”€โ”€ agents/         # Framework-specific agents
โ”‚   โ”œโ”€โ”€ commands/       # Custom commands
โ”‚   โ””โ”€โ”€ hooks/          # Automation scripts
โ”œโ”€โ”€ README.md           # Setup instructions
โ””โ”€โ”€ package.json        # Dependencies

Example: Full-Stack Next.js

Generating a nextjs-15 shadcn tailwindcss drizzle vercel-ai-sdk config gives you:

  • 40+ specialized agents across all frameworks
  • 25+ custom commands for complete workflows
  • Intelligent merging without duplication
  • Production-ready patterns for modern web apps
  • Type-safe development from database to AI

Key Configuration Patterns

Environment Variables (Placeholder Examples)

"env": {
  "DATABASE_URL": "postgresql://user:pass@host/dbname?sslmode=require",
  "OPENAI_API_KEY": "sk-your-openai-api-key-here",
  "MCP_SERVER_PORT": "3000"
}

Hook Configuration

"hooks": {
  "PostToolUse": [{
    "matcher": "Edit|MultiEdit|Write",
    "hooks": [{
      "type": "command",
      "command": "$CLAUDE_PROJECT_DIR/.claude/hooks/typescript-dev.sh"
    }]
  }]
}

๐Ÿ“Š Configuration Statistics

Memory MCP Server Configuration

  • 15 Specialized Agents - ~15,000 lines of domain expertise
  • 7 Custom Commands - Full development lifecycle coverage
  • 2 Automation Hooks - TypeScript and logging automation
  • Focus Areas: MCP protocol, vector search, memory systems, production deployment

Next.js 15 Configuration

  • 11 Next.js Agents - Framework-specific expertise
  • 6 Workflow Commands - Next.js development automation
  • Intelligent Hooks - Validation and formatting
  • Focus Areas: App Router, Server Components, performance, testing

๐Ÿ”— Technology Stack

This configuration is optimized for:

General Development

  • TypeScript & Node.js development
  • PostgreSQL 17 with Neon serverless
  • Drizzle ORM v0.44.4 for type-safe database access
  • pgvector v0.8.0 for vector similarity search
  • MCP SDK for protocol implementation
  • Docker & Kubernetes for deployment

Framework Support

  • Next.js 15 with App Router
  • React 19 with Server Components
  • Tailwind CSS for styling
  • Server Actions for mutations
  • Turbopack for faster builds

๐Ÿ“ˆ Benefits of This Configuration

  1. ๐Ÿš€ 10x Faster Development - Specialized agents handle complex tasks
  2. ๐Ÿ›ก๏ธ Enhanced Security - Multi-layered permission controls
  3. ๐Ÿค– Automated Workflows - Hooks handle routine tasks
  4. ๐Ÿ“š Built-in Expertise - Deep domain knowledge in agents
  5. ๐Ÿ”ง Production-Ready - Deployment and monitoring included
  6. ๐Ÿงช Quality Assurance - Automated testing and review

๐Ÿค Contributing

We welcome open-source contributions! This repository thrives on community input to support more frameworks and use cases.

How to Contribute

  1. Add a New Framework Configuration:

    • Create a new directory (e.g., vercel-ai-sdk/, drizzle/, zod/)
    • Include .claude/ directory with agents, commands, hooks, and settings
    • Add a comprehensive CLAUDE.md with framework-specific best practices
    • Create a README.md documenting the configuration
  2. Improve Existing Configurations:

    • Add specialized agents for new use cases
    • Create workflow commands for common tasks
    • Enhance automation hooks
    • Improve security patterns
  3. Help Build the CLI Tool:

    • Contribute to the configuration generator logic
    • Add framework detection capabilities
    • Create configuration templates
    • Improve the interactive setup experience

Testing the CLI Tool Locally

When developing the composer, test your changes:

# From claude-config-composer directory
npm run dev nextjs-15 shadcn              # Test with tsx (TypeScript)
npm run build && npm run test             # Build and run tests
node dist/cli.js nextjs-15 shadcn         # Test built version

Available Configurations โœ…

  • Next.js 15 โœ… - App Router, React 19, Server Components
  • shadcn/ui โœ… - Radix UI components with Tailwind CSS
  • Tailwind CSS โœ… - Utility classes, responsive design, dark mode
  • Vercel AI SDK โœ… - Streaming, function calling, provider management
  • Drizzle ORM โœ… - Schema management, migrations, type safety
  • Memory MCP Server โœ… - Vector search and memory persistence
  • Token-Gated MCP โœ… - Secure MCP server with authentication

Coming Soon ๐Ÿšง

  • Prisma - Alternative ORM with different patterns
  • Zod - Validation schemas and type generation
  • Vitest - Fast testing framework configuration
  • Supabase - Backend-as-a-Service setup
  • tRPC - End-to-end type safety, API patterns
  • React 19 - Standalone React patterns and hooks

Contribution Guidelines

  • Follow the existing structure and patterns
  • Include comprehensive documentation
  • Test configurations thoroughly
  • Add examples of real-world usage
  • Ensure security best practices

๐Ÿ“ License

This configuration reference is provided as-is for educational purposes. Adapt and modify for your specific needs.

โš ๏ธ Important Notes

  1. Reference Only - This repository is for learning, not direct cloning
  2. Placeholder Values - All credentials are examples only
  3. Customize for Your Needs - Adapt patterns to your specific workflow
  4. Security First - Always review and adjust permissions for your environment

๐ŸŽ“ Learning Path

  1. Start Simple - Begin with settings.json permissions
  2. Add Commands - Implement one custom command
  3. Integrate Agents - Add relevant specialized agents
  4. Automate - Set up hooks for your workflow
  5. Iterate - Refine based on your experience

Built with โค๏ธ for the Claude Code community

Transform your AI-assisted development with production-grade configurations

๐ŸŒŸ Star this repo if you find it helpful!
๐Ÿ› Open an issue for bugs or suggestions
๐Ÿš€ Submit a PR to add your framework configuration