Claude Code Config
Stop copying configuration files manually. This CLI detects your tech stack, suggests relevant modules, configures MCP servers, defines permissions, sets up project standards, and replaces placeholders automatically across 100+ modules organized in 23 bundles.
Technologies Used
Links
Project Description
Configuring Claude Code for a new project used to take hours: copying agents, adjusting skills, setting up MCP servers, defining permissions, configuring standards, replacing placeholders. Every project ended up slightly different because something was always forgotten.
Claude Code Config automates all of this. Run one command, answer a few questions, and get a fully configured Claude Code environment in minutes. The CLI detects your stack, suggests relevant modules, configures standards, and handles all the tedious configuration work.
Key Features
Smart Stack Detection
The CLI analyzes your project and automatically detects:
- Package manager: pnpm, npm, yarn, bun
- Framework: React, Next.js, Astro, Hono, Express, NestJS, Fastify
- Database: Drizzle, Prisma, Mongoose
- Testing: Vitest, Jest, Playwright
$ qazuor-claude-config init
Detecting project setup... ✓ Package manager: pnpm ✓ Framework: Hono (detected from dependencies) ✓ Database: Drizzle (detected from scripts) ✓ Testing: Vitest (detected from devDependencies)
Suggested bundles based on your stack: ◉ stack-hono-drizzle ◉ testing-completeModular Architecture
100+ modules organized into 5 categories:
| Type | Count | Purpose |
|---|---|---|
| Agents | 15 | Specialized AI roles (tech-lead, engineers, QA) |
| Skills | 41 | Reusable capabilities (TDD, testing, auth) |
| Commands | 23 | Slash commands for workflows |
| Docs | 21 | Reference guides and templates |
| MCP Servers | 27 | External tool integrations |
Install only what you need. Each module is independent but can be combined through bundles.
23 Pre-configured Bundles
Stack-specific bundles that install related modules together:
# Stack bundlesstack-react-tanstack # React + TanStack Query/Routerstack-astro-react # Astro + React Islandsstack-hono-drizzle # Hono + Drizzle ORMstack-nextjs-prisma # Next.js + Prismastack-express-prisma # Express + Prisma
# Category bundlestesting-complete # Full testing suitetesting-minimal # Essential testing toolsquality-complete # All quality commandsdatabase-drizzle # Drizzle engineer + skillsdatabase-prisma # Prisma engineer + skills27 Verified MCP Servers
Pre-configured integrations for external tools:
- Documentation & Search: Context7, Brave Search, Perplexity
- Databases: PostgreSQL, Neon, MySQL, Redis, Supabase
- Version Control: GitHub, GitLab, Git
- Deployment: Vercel, Cloudflare, Docker, AWS
- Testing: Playwright, Chrome DevTools
- Communication: Slack, Linear, Notion
- Payments: Stripe, Mercado Pago
- Design: Figma, Shadcn UI, Magic UI
? Which MCP servers do you want to configure? ◉ github (Suggested: detected GitHub remote) ◉ postgres (Suggested: detected database dependency) ◯ vercel ◯ stripeProject Standards Wizard
Configure project-wide standards across 6 categories with 5 presets (strict, balanced, relaxed, startup, enterprise):
Code Standards - Indent style, quotes, semicolons, line length, TypeScript rules, JSDoc requirements
Testing Standards - Coverage targets (60-95%), TDD requirements, test patterns, file location preferences
Documentation Standards - JSDoc levels, example requirements, changelog formats, comment policies
Design Standards - CSS framework, component library, accessibility level (A/AA/AAA), dark mode support
Security Standards - Authentication pattern, input validation, CSRF protection, rate limiting
Performance Standards - Core Web Vitals targets (LCP, FID, CLS), bundle size and API response time limits
Pre-commit Hooks Configuration
Configurable Git hooks via Husky with three presets:
- Minimal: Lint only
- Standard: Lint + typecheck
- Strict: Lint + typecheck + tests
Supports Biome or ESLint, TypeScript checking, test execution on staged files, and custom validation commands.
Response Style Customization
Customize how Claude communicates:
- Tone: Friendly, professional, formal, strict, mentor
- Verbosity: Concise, balanced, detailed
- Language: English, Spanish, or auto-detect
- Error reporting: Supportive, neutral, or direct
- Proactivity: Level of unsolicited suggestions
Four presets available: friendly, professional, strict, mentor.
Granular Permission Control
Three permission presets with customization options:
- Default: Balanced security and productivity
- Trust: Full operations except git push
- Restrictive: Read-only for sensitive codebases
{ "allow": ["Read", "Edit", "Write", "Bash(pnpm run *)", "Bash(git status)"], "deny": ["Bash(rm -rf *)", "Bash(git push --force)"]}Automatic Placeholder Replacement
Templates include placeholders like {{PROJECT_NAME}}, {{GITHUB_ORG}},
{{DOMAIN}}. The CLI:
- Detects values from package.json and git
- Prompts for missing values
- Replaces across all files automatically
- Saves preferences in
~/.claude/defaults.jsonfor reuse
Scanning files for placeholders... .claude/CLAUDE.md - 12 replacements .claude/agents/tech-lead.md - 3 replacements .claude/commands/commit.md - 2 replacements
✓ 47 files updated with 156 replacementsCode Style Tooling
Integrated configuration for development consistency:
- EditorConfig: Editor-agnostic rules (indent, line endings)
- Biome: Fast linting and formatting
- Prettier: Opinionated code formatting
- Commitlint: Conventional commit validation
Commands
init
Complete setup wizard for new projects:
qazuor-claude-config init [path]Options: --bundle, --template, --dry-run, --force
list
Display available modules, bundles, or MCP servers:
qazuor-claude-config list agentsqazuor-claude-config list skillsqazuor-claude-config list bundlesqazuor-claude-config list mcpadd / remove
Manage individual modules:
qazuor-claude-config add agent tech-leadqazuor-claude-config add skill api-testingqazuor-claude-config remove command review-codeconfigure
Reconfigure template placeholders:
qazuor-claude-config configure [--scan] [--preview] [--category <name>]standards
Configure project standards:
qazuor-claude-config standards [--preset <name>] [--category <name>]status
Show current configuration:
qazuor-claude-config status [--verbose] [--json]update
Update configuration and modules:
qazuor-claude-config update [--modules] [--config]Additional Generators
Beyond modules, the CLI can generate:
- CLAUDE.md: Dynamic project instructions file
- Code Style: EditorConfig, Biome, Prettier, Commitlint
- Git Hooks: Husky with commit-msg and pre-commit
- CI/CD: GitHub Actions workflows
- VSCode: Settings and extension recommendations
Technical Details
Requirements
- Node.js 18.0+
- pnpm, npm, yarn, or bun
- Git (optional but recommended)
Installation
# Global installation (recommended)pnpm add -g @qazuor/claude-code-config
# Or run directly without installationnpx @qazuor/claude-code-config initStack
- Runtime: Node.js with ESM
- Language: TypeScript 5.7+ (strict mode)
- CLI Framework: Commander.js
- Prompts: Inquirer.js
- Styling: chalk, ora, figlet
- Testing: Vitest with memfs
Programmatic API
Available as an npm package for Node.js applications, providing functions for:
- Reading/writing configuration
- Loading module registry
- Detecting project types
- Processing templates
- Resolving bundles
- Managing placeholders
TypeScript types included for all functionality.
Status
Active development with new features being added regularly. Stable for production use.
Why I Built This
Every new project meant hours of repetitive configuration. Copy agents from another project, adjust settings, configure MCP servers, replace placeholders manually. Each project ended up slightly different.
This tool solves that: consistent, automated configuration in minutes instead of hours. It’s opinionated (TypeScript, TDD, layered architecture) but modular enough to adapt to different stacks.
The goal is to spend time solving problems, not configuring tools.
Project Metrics
Key Highlights
- 100+ modules organized in 5 categories (agents, skills, commands, docs, MCP servers)
- 23 pre-configured bundles for specific stacks and workflows
- 27 verified MCP servers with auto-configuration
- Automatic tech stack detection (framework, database, testing, package manager)
- 6-category project standards wizard with 5 presets
- Pre-commit hooks configuration via Husky
- Response style customization (tone, verbosity, language)
- Code style tooling (EditorConfig, Biome, Prettier, Commitlint)
- 3 permission presets with granular customization
- Programmatic API for Node.js applications
Challenges & Solutions
Inconsistent stack detection - Some projects use non-standard configurations
Implemented fallbacks and manual detection with prompts
Placeholder conflicts - Nested or special character placeholders broke replacement
Improved regex with special character escaping
Package manager compatibility - pnpm, npm, yarn, bun have subtle command differences
Command abstraction with per-package-manager adapters
Standards configuration complexity - Six categories with multiple options each
Preset system (strict, balanced, relaxed, startup, enterprise) with per-category customization
Why This Stack?
Industry standard for CLIs, excellent documentation
Superior UX for interactive prompts, checkboxes, selects
Type safety critical for generating correct configurations
Filesystem testing without writing real files
Future Improvements
- Monorepo support (detect and configure multiple apps)
- Web interface for visual configuration
- Configuration sync between projects
- Community module marketplace
- Automatic documentation generation