Production-ready modular Claude Code framework with 30+ commands, token optimization, and MCP server integration. Achieves 2-10x productivity gains through systematic command organization and hierarchical configuration.
# Add to your Claude Code skills
git clone https://github.com/oxygen-fragment/claude-modularA comprehensive, production-ready modular framework template for Claude Code that achieves 2-10x productivity gains through proven patterns, token optimization, and systematic development workflows.
git clone https://github.com/your-username/claude-modular.git
cd claude-modular
cp templates/CLAUDE.md.template CLAUDE.md
# Edit CLAUDE.md with your project-specific details
# Copy the .claude directory to your project root
cp -r .claude /path/to/your/project/
# Customize configuration for your environment
cd /path/to/your/project/.claude/config
# Edit settings.json, development.json, etc.
# In your project with Claude Code
/project:setup-environment
/project:create-feature user-authentication
/test:generate-tests
/dev:code-review
your-project/
āāā .claude/ # Framework configuration
ā āāā config/ # Environment-specific settings
ā ā āāā settings.json # Base configuration
ā ā āāā development.json # Dev environment
ā ā āāā staging.json # Staging environment
ā ā āāā production.json # Production environment
ā āāā commands/ # Modular command library
ā āāā project/ # Project management
ā āāā development/ # Development workflow
ā āāā testing/ # Testing automation
ā āāā deployment/ # Deployment operations
ā āāā documentation/ # Documentation generation
āāā CLAUDE.md # Your project-specific configuration
āāā [your project files]
Each command follows a proven XML structure:
<instructions>
<context>When and why to use this command</context>
<requirements>Prerequisites and dependencies</requirements>
<execution>Step-by-step implementation</execution>
<validation>Quality checks and acceptance criteria</validation>
<examples>Concrete usage examples</examples>
</instructions>
/project:create-feature - Full feature scaffolding with tests and docs/project:scaffold-component - Component creation with boilerplate/project:setup-environment - Development environment initialization/dev:code-review - Structured code review with automated analysis/dev:refactor-analysis - Code improvement recommendations/dev:debug-session - Systematic debugging and problem solving/test:generate-tests - Comprehensive test suite generation/test:coverage-analysis - Test coverage assessment and improvement/test:integration-tests - Integration test creation and execution/deploy:prepare-release - Release preparation with quality gates/deploy:deploy-staging - Staging deployment with validation/deploy:rollback-procedure - Emergency rollback execution/docs:api-docs - API documentation generation/docs:update-readme - README maintenance and updates/docs:architecture-review - Architecture documentation and reviewThe framework supports layered configuration inheritance:
// Base settings.json
{
"defaults": {
"max_tokens_per_session": 50000,
"progressive_disclosure": true
}
}
// development.json overrides
{
"extends": "./settings.json",
"overrides": {
"defaults": {
"max_tokens_per_session": 100000
}
}
}
{
"security": {
"require_env_vars": true,
"audit_logging": true,
"permission_validation": true,
"secret_scanning": true
}
}
templates/CLAUDE.md.template with your technologies# Setup new project
/project:setup-environment
# Create a feature
/project:create-feature user-authentication --type=service
# Review code
/dev:code-review --focus=security,performance
# Deploy to staging
/deploy:deploy-staging
# Complex feature development
/project:create-feature payment-processing --framework=express --database=postgresql
# Comprehensive testing
/test:generate-tests --types=unit,integration,e2e
/test:coverage-analysis --target=90%
# Production deployment
/deploy:prepare-release --type=major
/deploy:deploy-staging --validate
/deploy:rollback-procedure --preserve-data
git checkout -b feature/new-commandMIT License - see LICENSE file for details.
Based on research papers:
If you want to help me out you can
Start building better, faster, and more consistently with Claude Code's modular framework.
No comments yet. Be the first to share your thoughts!