Analyzes your project and generates tailored Claude Code development environments with intelligent agent selection and project-specific guidance.
Currently: A Python CLI tool that analyzes project directories and generates template-based Claude Code configuration files. The core analysis engine works well for detecting languages and basic project structure, with a hierarchical template system for generating documentation.
Working Today:
- Detects 15+ languages: Python, JavaScript, TypeScript, Rust, Java, Go, C#, Ruby, PHP, and more
- Framework detection for 25+ frameworks (Django, FastAPI, React, Vue, Spring Boot, etc.) via file patterns
- DevOps/IaC detection: Terraform, Ansible, Kubernetes, Helm, Docker, Pulumi, CloudFormation
- MLOps detection: MLflow, Airflow, Prefect, dbt, DVC, Kubeflow, Great Expectations
- Security & observability tools: Prometheus, Grafana, tfsec, Semgrep, Trivy
- Generates CLAUDE.md and AGENTS.md from templates
- CLI with subcommands for analyze, generate, config, templates, git, health
- 1,227 tests demonstrating various features (71.5% coverage per Codacy)
In Active Development:
- Enhanced agent recommendation algorithms
- Natural language trigger generation
- Community template repository integration
- More sophisticated framework and pattern detection
Goal: Reduce the overhead of discovering and coordinating Claude Code agents by providing smart defaults and context-aware suggestions.
Detects languages, frameworks, project types, and complexity to understand your codebase
# Analyzes project characteristics
Project: Python FastAPI + PostgreSQL
Detection: Web API, moderate complexity
Suggests: backend-architect, api-tester, database-optimizerSuggests relevant Claude Code agents based on your project's characteristics
# For a React dashboard project
Recommended agents: frontend-developer, ui-designer, performance-optimizer
Generated triggers: "optimize bundle size", "improve accessibility", "design components"Creates tailored CLAUDE.md and AGENTS.md files with project-specific guidance
claude-builder /your/project
# Generates CLAUDE.md with development guidelines
# Creates AGENTS.md with suggested agent teams
# Includes project-specific best practicesUses hierarchical templates (base + language + framework) for consistent, relevant output
# Template composition example
base.md β python.md β fastapi.md β final output
# Results in FastAPI-specific development guidanceIn addition to base/language/framework overlays, the generator now discovers and renders domain templates when matching signals are detected in your project.
- DevOps:
INFRA.md,DEPLOYMENT.md,OBSERVABILITY.md,SECURITY.md - MLOps:
MLOPS.md,DATA_PIPELINE.md,ML_GOVERNANCE.md
How it works:
- Detection populates
analysis.dev_environment(IaC, orchestration, secrets, observability, CI/CD, data pipelines, MLOps tools). - CLAUDE.md appends any relevant domain sections automatically.
- Templates use simple conditionals/loops, e.g.
{% if dev_environment.tools.terraform %}.
Example signals β sections added to CLAUDE.md:
- Terraform + Kubernetes + Helm β Infrastructure and Deployment guidance
- Prometheus + Grafana β Observability guidance
- MLflow + DVC + Airflow β MLOps and Data Pipeline guidance
Preferred tooling order: uv β pipx β pip.
Use uv if available for speed and reproducibility.
Run all local quality checks with one command:
pre-commit run --all-filesIf pre-commit is not installed yet:
pip install pre-commit
pre-commit install
pre-commit run --all-filesRun the full test suite with coverage:
# Using uv (recommended)
uv pip install -e .[dev]
uv run pytest -q
# Using pipx (fallback)
pipx install .[dev]
# If already installed without [dev], inject dev tools:
pipx inject claude-builder '.[dev]'
pipx run pytest -q
# Using pip (last resort)
python -m pip install -e .[dev]
pytest -qThe health check system validates your development environment and provides actionable recommendations for missing tools or misconfigurations.
# Run all health checks
claude-builder health check
# Check specific scopes
claude-builder health check --scope core
claude-builder health check --scope devops
claude-builder health check --scope cloud
claude-builder health check --scope all
# Verbose output with recommendations
claude-builder health check --verbose
# Check specific types
claude-builder health check --type dependency
claude-builder health check --type securityCore Dependencies (--scope core):
- Git availability and version
- Required Python packages (click, rich, toml, psutil)
- Filesystem write access
DevOps Tools (--scope devops):
- Terraform - Infrastructure as Code
- kubectl - Kubernetes CLI
- Docker - Container runtime
- Helm - Kubernetes package manager
- Ansible - Configuration management
Cloud CLIs (--scope cloud):
- AWS CLI (aws)
- Google Cloud CLI (gcloud)
- Azure CLI (az)
Other Checks:
- Application core functionality
- Security framework validation
- System performance metrics (CPU, memory, disk)
- Configuration system health
When tools are missing, the health check provides platform-specific installation commands:
Linux:
# Example: Missing Terraform
Install Terraform from HashiCorp's official repository
Command: wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor...macOS:
# Example: Missing kubectl
Install kubectl using Homebrew
Command: brew install kubectlWindows:
# Example: Missing Docker
Install Docker Desktop for Windows
Command: winget install Docker.DockerDesktopThe claude-builder health check command uses exit codes to indicate status:
- 0: HEALTHY β all checks passed
- 2: WARNING β warnings present, no critical failures
- 1: CRITICAL β at least one critical failure
These are validated by unit tests under tests/unit/cli/test_health_commands.py.
# Continuous monitoring
claude-builder health monitor --interval 60
# Generate detailed report
claude-builder health report --output health-report.json --verbose
# Quick status check
claude-builder health statusHealth checks are managed via a lightweight registry (see src/claude_builder/utils/health.py).
Example:
from claude_builder.utils.health import (
HealthCheck,
HealthCheckType,
HealthStatus,
default_health_check_registry,
)
class MyCustomCheck(HealthCheck):
def __init__(self) -> None:
super().__init__("My Custom", HealthCheckType.APPLICATION)
def check(self):
# your logic here
return self._create_result(HealthStatus.HEALTHY, "All good")
# Register it at startup (e.g., in app init or a plugin):
default_health_check_registry.register(MyCustomCheck())During tests, you can inject or clear the registry to control which checks run.
- Detection-aware error panels with actionable recovery hints
- Optional contextual suggestions and next-step prompts after analysis/generation
- Rich help primer surfaced automatically when no arguments are provided
- Progress indicators honour quiet/plain/legacy modes
- Opt-out controls:
--no-suggestions,CLAUDE_BUILDER_SHOW_SUGGESTIONS=0,CLAUDE_BUILDER_LEGACY_MODE=1
- Language Detection: 15+ languages including Python, JavaScript, TypeScript, Rust, Java, Go, C#, Ruby, PHP (file extension and pattern-based detection with confidence scoring)
- Framework Recognition: 25+ frameworks - Django, FastAPI, React, Vue, Express, Next.js, Spring Boot, Laravel (detects via characteristic files - package.json, requirements.txt, pom.xml, etc.)
- DevOps/IaC Detection: Terraform, Ansible, Kubernetes, Helm, Docker, Pulumi, CloudFormation, Packer (comprehensive pattern matching for infrastructure-as-code tools)
- MLOps Detection: MLflow, Airflow, Prefect, dbt, DVC, Kubeflow, Great Expectations, Feast, Kedro (detects data pipelines, ML lifecycle management, and orchestration tools)
- Security & Observability: Prometheus, Grafana, OpenTelemetry, tfsec, Semgrep, Trivy, Checkov (identifies monitoring, security scanning, and observability configurations)
- Confidence Scoring System: Each detection includes confidence levels (high/medium/low) based on pattern strength and file presence
# Comprehensive command structure
claude-builder /path/to/project # Full environment generation
claude-builder /path/to/project --dry-run --verbose # Safe preview mode
claude-builder /path/to/project generate agents # Agent-specific generation
claude-builder /path/to/project analyze --output=json # Export project analysis- Base + Language + Framework intelligent overlay system
- Variable Substitution Engine with project-specific context
- Professional Documentation with working examples and guidance
We are expanding beyond language/framework analysis to include DevOps, MLOps, and IaC. Today, claude_builder detects Dockerfiles and docker-compose (and basic Kubernetes directory hints). We are actively adding detection and guidance for:
- IaC: Terraform, Pulumi, CloudFormation/SAM, Ansible (roles/playbooks), Puppet/Chef/Salt, Packer
- Orchestration: Kubernetes, Helm, Kustomize, Nomad
- CI/CD: Common pipeline configs (GitHub Actions, GitLab CI, Jenkins, CircleCI, Azure Pipelines, Bitbucket Pipelines)
- Observability: Prometheus, Grafana, OpenTelemetry
- MLOps: DVC, MLflow, Airflow, Prefect, dbt, Great Expectations, Kubeflow, Feast, Kedro (initial detection only; confidence varies)
What this means right now:
- Guidance-focused: We generate agent recommendations and documentation (INFRA/DEPLOYMENT/OBSERVABILITY/MLOPS) without changing your infrastructure.
- Honest limits: Detection accuracy varies by stack; coverage is growing. Secrets are never parsed; we only detect presence of files/configs.
Quick examples (expected agent suggestions):
# Terraform module repo
Recommended: terraform-specialist, ci-pipeline-engineer, security-auditor
# Helm + K8s manifests
Recommended: kubernetes-operator, helm-specialist, observability-engineerThe analyzer now populates additional fields on DevelopmentEnvironment so
downstream docs and tooling can reason about your stack:
infrastructure_as_code: terraform, pulumi, cloudformation, ansible, docker, packer, β¦orchestration_tools: kubernetes, helm, nomad, docker (compose)secrets_management: vault, sopsobservability: prometheus, grafana, opentelemetry, jaeger, elasticsearchsecurity_tools: tfsec, checkov, semgrep, snyk, trivy, opadata_pipeline: airflow, prefect, dagster, dbt, dvc, great_expectationsmlops_tools: mlflow, feast, kubeflow, bentoml (and notebooks when ML signals are present)
Each tool is scored by presence of files/dirs/globs (dir=+5, glob=+4, file=+3)
and can be bucketed as high (β₯12), medium (β₯8), or low (>0) confidence.
Detection is nonβintrusive; we only check for expected files and directories and
never read secrets.
- 40+ Specialized Agents with intelligent project-based selection
- Team Composition Logic for optimal agent combinations
- Git Integration with agent environment versioning
- Basic agent recommendation logic exists in codebase
- Agent selection based on project characteristics (needs refinement)
- AGENTS.md template generation (functional but basic)
- GitIntegrationManager class implemented
- Basic git operations scaffolding in place
- Configuration for claude-mentions policy exists
- Full functionality not yet complete
# Vision: More intuitive interaction with agents
"optimize this API" β suggests backend-architect + performance-optimizer
"build login system" β suggests security-auditor + backend-architect
"investigate slow queries" β suggests database-optimizer + profiler-agent- Connect to community agent repositories for broader coverage
- Support custom agent definitions for specialized workflows
- Share successful agent patterns across projects
- Teams that learn from successful development patterns
- Dynamic environment evolution as projects grow
- Context-aware specialization for specific domains
# Install claude-builder (prefer uv for speed)
uv pip install -e ".[dev]"
# OR: pip install claude-builder
# Verify installation
claude-builder --help# Note: The CLI structure expects: claude-builder [PROJECT_PATH] COMMAND [ARGS]
# Analyze a project
claude-builder /path/to/project analyze
# Generate configuration files
claude-builder /path/to/project generate
# View available templates
claude-builder /path/to/project templates list
# Check configuration
claude-builder /path/to/project config show
# Note: Some features like --dry-run, --agents-only may not be fully
# functional# After running claude-builder on your project:
your-project/
βββ CLAUDE.md # Project-specific development guidelines
βββ AGENTS.md # Intelligent agent team configuration
βββ .claude/ # Detailed development environment
βββ development_workflow.md # Optimized development processes
βββ agent_coordination.md # Multi-agent collaboration patterns
βββ project_context.md # Complete project analysis results
When DevOps/MLOps tools are detected, CLAUDE.md includes domain-specific
sections with actionable guidance (infrastructure, deployment, observability,
security, MLOps, data pipelines, and governance).Manual approach: Research agents, create generic configurations, remember which agents work well together
With claude-builder:
claude-builder ./my-fastapi-project
# Detects: Python 3.11, FastAPI, PostgreSQL, Redis
# Suggests: backend-architect, api-tester, database-optimizer, security-auditor
# Generates context: API development patterns, database optimization, security considerationsBefore: Individual agent discovery, manual coordination overhead
# Traditional approach
- Look up frontend-specific agents
- Manually coordinate ui-designer with frontend-developer
- Remember which agents work well together for React projectsAfter: Seamless team orchestration with contextual intelligence
claude-builder ./react-dashboard
# Detects: TypeScript, React, Next.js, Tailwind CSS
# Team: frontend-developer, ui-designer, performance-optimizer, accessibility-checker
# Triggers: "optimize bundle size", "improve accessibility", "design better UX"Before: Generic guidance, no systems-specific optimization
# Traditional approach
- Use general-purpose agents not optimized for systems programming
- Miss Rust-specific performance and memory management expertise
- No integration with Rust ecosystem tools and patternsAfter: Systems programming expertise with Rust specialization
claude-builder ./rust-cli-tool
# Detects: Rust, CLI patterns, system dependencies, performance requirements
# Team: systems-programmer, performance-optimizer, cli-specialist, rust-expert
# Triggers: "optimize memory usage", "improve CLI ergonomics", "add benchmarks"# Generated automatically for each project
feature_development:
trigger: "build new feature"
team: [rapid-prototyper, ui-designer, test-writer-fixer, deployment-manager]
coordination: sequential_with_feedback
authentication_system:
trigger: "build user authentication"
team: [security-auditor, backend-architect, frontend-developer, test-writer-fixer]
coordination: security_first_then_implementation
performance_optimization:
trigger: "optimize performance"
team: [profiler-agent, performance-optimizer, database-tuner, load-tester]
coordination: parallel_analysis_then_sequential_fixes# Natural language triggers generated for your specific project:
"debug this error" β error-detective + test-writer-fixer + documentation-updater
"investigate slow queries" β database-tuner + profiler-agent + performance-optimizer
"security audit this endpoint" β security-auditor + penetration-tester + compliance-checker
"optimize bundle size" β performance-optimizer + webpack-specialist + asset-optimizer# Detailed project analysis with comprehensive output
claude-builder analyze ./project --verbose
# β Language detection, framework analysis, complexity assessment, agent recommendations
# Export analysis for inspection and integration
claude-builder analyze ./project --output=analysis.json
# β Complete project intelligence in structured format
# Generate agent-specific environments
claude-builder ./project generate agents --template=web-api
# β Specialized agent configuration for API development# Safe git integration (recommended - files not committed)
claude-builder ./project --git-exclude
# Control references in generated content
claude-builder ./project --claude-mentions=forbidden # No AI references
claude-builder ./project --claude-mentions=minimal # Minimal technical references
claude-builder ./project --claude-mentions=allowed # Full attribution
# Backup existing files before generation
claude-builder ./project --backup-existing# List available built-in templates
claude-builder templates list
# β Shows base, language-specific, and framework templates
# Validate custom template structure
claude-builder templates validate ./custom-template
# Initialize and manage project configuration
claude-builder config init ./project
claude-builder config show ./project# Coming with Agent Orchestration Engine:
claude-builder ./project orchestrate "build user authentication system"
claude-builder ./project ask "how do I optimize this database query?"
claude-builder ./project deploy "with security audit and performance testing"| Language | Status | Confidence | Specialized Agents |
|---|---|---|---|
| Python | β Excellent | 95%+ | backend-architect, api-tester |
| Rust | β Excellent | 93%+ | systems-programmer, optimizer |
| JavaScript/TypeScript | β Excellent | 94%+ | frontend-developer |
| Java | β Very Good | 88%+ | enterprise-architect, spring-specialist |
| Go | β Very Good | 87%+ | microservices-architect, api-designer |
| C# | β Good | 82%+ | dotnet-specialist, azure-deployer |
| PHP | β Good | 80%+ | web-developer, laravel-specialist |
| Ruby | β Good | 79%+ | rails-developer, web-architect, gem-creator |
- Web Frameworks: Django, Flask, FastAPI, Express, React, Vue, Angular, Next.js, Laravel
- Systems: Axum, Actix, Tokio, Spring Boot, .NET Core, Gin, Echo
- Mobile: React Native, Flutter, Xamarin, Ionic
- Data: Jupyter, Pandas, Spark, Airflow, Django REST Framework
- Web Applications: Full-stack, SPAs, progressive web apps, microservices architectures
- API Services: REST APIs, GraphQL, gRPC, serverless functions
- CLI Tools: System utilities, developer tools, automation scripts, command-line applications
- Libraries & Frameworks: Reusable packages, shared components, open-source projects
- Data Science: ML pipelines, analysis notebooks, data processing workflows
- Mobile Applications: Native and hybrid mobile development projects
# Core functionality tests (134 tests passing)
pytest tests/unit/core/ -v
# All unit tests
pytest tests/unit/ -v
# Integration tests (if available)
pytest tests/integration/ -v
# Full test suite with coverage (1,227 total tests)
pytest --cov=claude_builder --cov-report=term-missing
# Note: Coverage shows ~71.5% on Codacy, ~29% locally due to configuration differences# Format code with Black
black claude_builder tests/
# Lint with Ruff
ruff claude_builder tests/
# Type checking with mypy
mypy claude_builder/
# Pre-commit hooks (runs automatically)
pre-commit run --all-files# Measure analysis speed on real projects
time claude-builder tests/fixtures/sample_projects/python_project --dry-run
time claude-builder tests/fixtures/sample_projects/rust_project --dry-run
time claude-builder tests/fixtures/sample_projects/react_project --dry-runWe're building the future of AI-assisted development. Join us in creating intelligent agent orchestration:
Phase 1 β Infrastructure Complete: Project analysis, template system, CLI foundation Phase 2 β Agent Foundation: Basic agent selection, team composition logic Phase 3 π§ Natural Language Orchestration: Intuitive triggers, workflow automation Phase 4 π― Community Ecosystem: Repository integration, shared intelligence
# Set up development environment
git clone https://github.com/quinnoshea/claude_builder.git
cd claude_builder
uv pip install -e ".[dev]"
pre-commit install
# Work on natural language trigger generation
# Help build community agent repository integration
# Develop intelligent team coordination patterns# Help fix failing tests for production reliability
pytest tests/unit/core/ -v # Should pass
pytest tests/unit/intelligence/ -v # Some fixes needed
pytest tests/unit/advanced/ -v # Work in progress
# Improve test coverage and quality
pytest --cov=claude_builder --cov-report=html# Create templates for new languages and frameworks
# Develop specialized agent configuration patterns
# Build project-specific workflow templates- Natural Language Processing: Help build intuitive trigger generation
- Agent Coordination: Develop intelligent team composition algorithms
- Community Integration: Build repository scanning and agent indexing
- Template System: Create specialized templates for diverse project types
- CLI Enhancement: Improve user experience and error handling
- Documentation: Develop comprehensive guides and examples
When contributing agent definitions or coordination patterns:
- Specialization Focus: Agents should have clear, non-overlapping specializations
- Natural Triggers: Include intuitive phrases that map to agent capabilities
- Coordination Patterns: Define how agents work with others in team contexts
- Community Standards: Follow established patterns for consistency
- Language Detection: Reliably detects 15+ languages (Python, JS, TS, Rust, Java, Go, C#, Ruby, PHP, etc.)
- Framework Detection: Identifies 25+ frameworks via file patterns (Django, React, Spring Boot, etc.)
- DevOps/IaC Detection: Comprehensive detection of Terraform, Kubernetes, Docker, Ansible, and more
- MLOps Detection: Recognizes MLflow, Airflow, DVC, dbt, and other data/ML tools
- Security & Observability: Detects Prometheus, Grafana, security scanners, and monitoring tools
- Template Generation: Successfully generates CLAUDE.md and AGENTS.md from templates
- CLI Structure: Well-organized Click-based CLI with subcommands
- Test Suite: 1,227 tests providing good coverage of intended functionality
- Agent Recommendations: Basic logic exists but needs significant refinement
- Natural Language Triggers: Planned but not yet implemented
- Community Integration: Architecture planned but not built
- Git Integration: Partial implementation, not fully functional
- Real-world Testing: Limited production use, mostly development testing
This is an alpha-stage tool that shows promise but needs more development. The core project analysis works well, and the template system is functional. However, the "intelligent" agent selection and natural language features described in various places are aspirational rather than fully implemented.
If you're looking for a tool to automatically analyze your project and generate basic Claude Code configuration files, this can help. If you're expecting sophisticated AI-driven agent orchestration, that functionality doesn't exist yet.
# Goal: More intuitive ways to interact with agent suggestions
"optimize this API for mobile users" β suggests relevant performance and
mobile-focused agents
"build secure payment processing" β suggests security and compliance-focused
agent teams
"investigate production errors" β suggests debugging and monitoring agent workflows- Connect to community agent repositories for broader coverage
- Support importing and sharing agent configuration patterns
- Better integration with custom agent definitions
- Version tracking for agent configurations
- Team composition learning from successful development patterns
- Project-specific customization based on usage analytics
- Continuous optimization through community feedback
- Context-aware specialization for domain-specific requirements
- Team collaboration with shared agent configurations
- Enterprise agent repositories with access control
- Integration with development workflow tools (Jira, GitHub, Slack)
- Advanced analytics and team productivity insights
- IDE integrations (VS Code, JetBrains, Vim)
- Real-time agent suggestions during development
- Context-aware code completion with agent expertise
- Seamless integration with existing developer workflows
- Machine learning-enhanced project analysis
- Predictive agent team recommendations
- Automated workflow optimization based on project outcomes
- Community-driven intelligence sharing and best practice propagation
- Python: 3.8+ (3.11+ recommended for optimal performance)
- Memory: 512MB minimum for project analysis, 1GB+ recommended for large projects
- Storage: 100MB for development environment, additional space for community agent caches
- Network: Internet connection for community agent repository updates (optional)
- Git: Required for project analysis and version control integration
- uv: Recommended for faster Python package management
- Community Repositories: Enhanced agent selection with live repository integration
- IDE Plugins: Enhanced development experience (coming soon)
This project is licensed under the MIT License - see the LICENSE file for details. This ensures maximum community contribution and enterprise adoption flexibility.
- Built for Claude Code Ecosystem: Designed to maximize developer productivity with AI-assisted development
- Inspired by Real Developer Pain: Born from the need to eliminate friction in agent adoption and coordination
- Community Driven: Thanks to beta testers, early adopters, and community contributors providing feedback and agent definitions
- Engineering Standards: Built with maintainable design patterns and tests where available
Try Claude Builder on your projects.
Automate the process of discovering and configuring relevant Claude Code agents based on your project's characteristics.
# Get started
uv pip install -e ".[dev]" # or pip install claude-builder
claude-builder /your/project
# See what it generates
# β
Project-specific CLAUDE.md with development guidelines
# β
AGENTS.md with relevant agent recommendations
# β
Context-aware suggestions based on your tech stack
# β
Templates tailored to your project typeInterested in contributing or trying it out?
β Star this repository | π Quick start | π€ Contribute | π¬ Discussions
Claude Builder: Intelligent agent configuration for Claude Code projects.