A comprehensive configuration framework for Claude Code CLI, featuring specialized agents, custom commands, rules, and templates. This framework is built upon learnings from AI for Development by Rodrigo Branas and Pedro Nauck.
.claude/
βββ agents/ # Specialized AI agents for different tasks
βββ commands/ # Custom slash commands
βββ config/ # Configuration files
βββ rules/ # Development rules and standards
βββ templates/ # Document templates
This framework includes purpose-built agents for different development workflows:
- software-architect: System design, Clean Architecture patterns, technical solutions
- database-architect: Database design, Drizzle ORM, schema optimization, migrations
- react-clean-architect: React Clean Architecture, state management, custom hooks
- api-standards-expert: API design patterns, HTTP standards, Hono framework
- react-coder: React 19 component development, simplicity-first philosophy
- typescript-expert: TypeScript guidance, type errors, advanced type features
- task-implementation-orchestrator: Task execution coordination from plans
- tdd-test-engineer: Test-Driven Development with Vitest, mocking strategies
- tech-lead-reviewer: Technical leadership, code review, architecture decisions
- design-review: UI/UX compliance, visual consistency, accessibility
- ux-guardian: Edge case discovery, user journey testing, critical test paths
- typescript-diagnostics-fixer: Automated TypeScript error resolution
- biome-lint-fixer: Automated Biome linting fixes with rule awareness
- business-analyst: Requirements gathering, process modeling, use cases
- product-manager-prd: PRD creation, feature specification, success metrics
- domain-expert-validator: Domain logic validation, business rule verification
- ux-ui-designer: UI/UX design, wireframes, design systems, accessibility
- git-workflow: Git operations, conventional commits, branch strategies
- task-analyzer: Pre-implementation analysis for token optimization
/feature:discovery
- Feature discovery and planning process/feature:prd
- Product Requirements Document creation/feature:techspec
- Technical specification generation/feature:tasks
- Task breakdown and planning/feature:workflow
- Complete feature development workflow
/fix:types
- TypeScript error fixing with automated diagnostics/fix:lint
- Biome linting with rule-aware automated fixes/fix:tests
- Vitest failure analysis and TDD-based fixes
/git:commit
- Smart conventional commits (feature branches only)/git:branch
- Create feature branch from dev/git:push
- Push changes and create PR to dev/git:sync
- Synchronize local repository with dev branch
/analyze
- Pre-implementation analysis for token optimization/implement
- Task execution from plans and specifications
/design:review
- UI/UX compliance and accessibility review
- Clean Architecture & DDD: Applied where they add clear value
- TypeScript-first: Strict typing with meaningful types
- Test-Driven Development: Tests first, implementation second
- DRY (Don't Repeat Yourself): Single source of truth for knowledge
- YAGNI (You Aren't Gonna Need It): Implement only when actually needed
- KISS (Keep It Simple, Stupid): Simplicity as key design goal
- TDA (Tell, Don't Ask): Tell objects what to do, don't ask for their data
- SOLID Principles: Single responsibility, Open/closed, Liskov substitution, Interface segregation, Dependency inversion
- Object Calisthenics: 9 rules for better object-oriented code quality
- Runtime: Bun (never npm/yarn) -
bun run test
, neverbun test
- Testing: Vitest via
bun run test
with TDD approach - Schema Validation: TypeBox for backends, Zod for React frontends
- Database: Drizzle ORM with PostgreSQL, snake_case tables, camelCase TypeScript
- IDs: ULID instead of UUID
- API: Hono for HTTP routing (not Express or Bun.serve)
- Logging: Structured JSON logging with Winston
- TypeScript Patterns: Never use
any
, proper interfaces, type guards - Function Design: Options objects for complex parameters, Result pattern for expected errors
- Naming Conventions: Descriptive, consistent, searchable names
- Folder Structure: Feature-driven organization with Clean Architecture layers
- Essential Rules: Comprehensive development guidelines for consistent code quality
This framework leverages multiple MCP servers for enhanced capabilities:
Server | Purpose | Documentation |
---|---|---|
context7 | Library documentation and code examples | Context7 MCP |
Docker_MCP_Toolkit | Docker container management | Docker MCP |
magic | UI component generation and logo search | Magic MCP |
perplexity-mcp | Web search and reasoning | Perplexity MCP |
playwright | Browser automation and testing | Playwright MCP |
sequential-thinking | Step-by-step problem solving | Sequential Thinking MCP |
zen | Comprehensive AI workflows | Zen MCP |
serena | Semantic code analysis | Serena MCP |
filesystem-with-morph | Advanced file operations | Filesystem Morph MCP |
- Code Analysis: Semantic understanding with Serena
- UI Generation: Component creation with Magic
- Documentation: Real-time library docs via Context7
- Testing: Browser automation with Playwright
- Reasoning: Advanced problem-solving with Sequential Thinking
- Search: Web research capabilities with Perplexity
- Infrastructure: Docker management toolkit
To configure these MCP servers, add the mcpServers
section to your ~/.claude.json
file. See mcp-config-example.json for a complete configuration template with all servers.
Required API Keys:
- Perplexity: Get your API key from Perplexity API
- Zen: Requires OpenAI, Gemini, and/or OpenRouter API keys
- Morph: Get your API key from Morph
No API Keys Required:
- Context7, Docker_MCP_Toolkit, Playwright, Sequential-thinking, Serena
-
Install Claude Code CLI
npm install -g @anthropic/claude-code
-
Clone this framework
git clone <your-repo-url> cd claude-code-framework
-
Copy configuration to your global Claude directory
cp -r .claude/* ~/.claude/
-
Configure MCP servers in
~/.claude.json
(see mcp-config-example.json for configuration template) -
Start using specialized agents and commands
claude /agent:list claude /feature:discovery "new user authentication"
This framework is built upon learnings and best practices shared by:
- Rodrigo Branas - Developer, Software Architect, Professor, Author and Speaker
- Pedro Nauck - Founder & CEO at Compozy.com | Building the Next-Gen AI Orchestration Platform for Enterprise | Simplifying Multi-Agent Systems with YAML | Open Source Pioneer
Special thanks to their AI for Development course which provided the foundation for these patterns and practices.
For detailed information about specific components:
- Rules: See individual files in
.claude/rules/
- Agents: Each agent has comprehensive documentation in
.claude/agents/
- Templates: Standard document templates in
.claude/templates/
- Claude Code CLI: Official Documentation
This framework follows the established rules and standards. Before contributing:
- Review the rules in
.claude/rules/
- Follow the git workflow in
.claude/rules/git-workflow.md
- Use conventional commits
- Ensure all tests pass with
bun run test
This project is licensed under the MIT License - see the LICENSE file for details.
Framework Version: 2.0.0 | Last Updated: August 2025