re4c (Rapid Engineering For Claude) is a comprehensive, turnkey command collection and workflow system for Claude Code that implements best practices for AI-assisted software development.
re4c is inspired by and builds upon the excellent work of Ryan Carson and the ai-dev-tasks repository. The core workflow concepts were originally demonstrated in Ryan's YouTube video on AI development workflows.
While many of the original commands have evolved significantly, the fundamental insight remains: AI-assisted development requires systematic workflows, proper context building, and rigorous validation.
Much of rapid engineering requires building context before beginning implementation. This is why re4c emphasizes the sequential use of:
/create-prd- Establishes business context and requirements/create-drd- Defines design context and user experience/create-trd- Specifies technical context and architecture
This sequence ensures the AI has comprehensive context before generating implementation tasks, preventing architectural drift and ensuring requirements alignment.
re4c borrows heavily from Shape Up by Basecamp, particularly:
- Fixed Time, Variable Scope: Complexity budgets prevent endless feature creep
- Vertical Slices: Each slice delivers user value, not just technical milestones
- Circuit Breakers: Built-in simplification strategies when complexity exceeds budget
- No Estimation Time: AI-appropriate complexity scoring instead of time estimates
The Slice methodology is core to preventing unusable builds and drift. Each vertical slice:
- Delivers working, demonstrable functionality
- Maintains deployable state
- Can be validated independently
- Has clear success criteria
re4c assumes the AI agent should handle the complete development lifecycle:
- Test-Driven Development (TDD): Mandatory Red-Green-Refactor cycle
- Multi-Agent Validation: Specialized validation agents with blocking authority
- MCP Integration: Leverages tools like Playwright for automated UI testing
- Quality Gates: No progression without validation approval
This approach ensures consistent quality while freeing developers to focus on high-level design and business requirements rather than implementation details.
re4c includes advanced multi-agent workflow capabilities (/multiagent-worktree) that can coordinate parallel development streams using git worktrees. This allows complex features to be developed by multiple AI agents simultaneously while maintaining code quality and preventing conflicts.
The system enforces production-ready development standards through a comprehensive universal-claude.md configuration that ensures:
- Type safety and comprehensive validation
- Multi-layer testing strategies (unit β integration β E2E)
- Automated CI/CD pipelines with quality gates
- Production-first mindset with observability and error handling
Every slice completion requires approval from specialized validation agents:
- Architecture Review: Technical implementation and maintainability
- TDD Compliance: Proper test-driven development practices
- Security Scanning: Vulnerability assessment and secure coding practices
- UI Testing: Playwright automation with visual regression testing
- Workspace Cleanup: Repository integrity and development environment hygiene
re4c provides a complete toolkit of 42 carefully crafted commands organized around a Test-Driven Development (TDD) workflow with multi-agent validation and systematic knowledge capture. It transforms Claude Code from a general-purpose AI assistant into a specialized engineering partner that enforces quality gates, maintains clean code practices, and captures learnings systematically.
- π§ͺ Mandatory TDD: All code changes follow Red-Green-Refactor cycle
- π Multi-Agent Validation: 5 specialized validation agents with blocking authority
- π Playwright Integration: Automatic UI testing with screenshots
- π Learning Capture: Mandatory retrospectives after every development slice
- π§ Resource Utilization: MCP Context7, script discovery, proper URL management
- π§Ή Workspace Cleanup: Repository integrity validation
- π AI-Appropriate Estimation: Complexity scoring instead of time-based estimates
re4c implements a systematic approach to AI-assisted development based on proven methodologies:
- Red: Write failing tests first
- Green: Write minimal code to pass tests
- Refactor: Improve code while keeping tests green
- Mandatory: No code without tests, no exceptions
Instead of time estimates (inappropriate for AI), re4c uses complexity scoring:
- 1-3: Simple changes, quick implementation
- 4-6: Moderate complexity, some research needed
- 7-9: Complex features, multiple components
- 10: Maximum complexity, consider breaking down
Quality gates prevent completion until all validation agents approve:
- Ensures consistent quality
- Catches issues early
- Maintains architectural integrity
- Enforces testing standards
Mandatory retrospectives after every slice:
- Document lessons learned
- Update project understanding
- Adapt future planning
- Prevent knowledge loss
- Tasks: Traditional sequential work items
- Slices: Vertical cuts through all application layers that deliver user value
- Why Slices: Better for AI development, maintain deployable state, easier validation
Specialized agents with expertise in specific domains:
- Architecture: System design, coupling, scalability
- TDD: Test quality, coverage, Red-Green-Refactor compliance
- UI Testing: Playwright automation, screenshot validation
- UX Evaluation: User experience, accessibility, usability
- Cleanup: Repository integrity, workspace cleanliness
re4c mandates proper use of available tools:
- MCP Context7: API documentation and framework knowledge
- Playwright: Web UI testing and navigation
- Script Discovery: Use existing project scripts
- Correct URLs: Always production URLs, never development
Commands are organized into logical categories:
Essential workflow commands for the TDD development cycle:
generate-tasks.md- Generate TDD-first task lists from PRDsgenerate-slices.md- Create vertical slices with complexity scoringprocess-slices.md- Implement slices with mandatory validationprocess-slices-multiagent.md- Multi-agent slice processingcreate-prd.md,create-drd.md,create-trd.md- Requirements documentationre4c-help.md- re4c workflow assistance and command guide
Multi-agent validation system with blocking authority:
validate-slice-completion.md- Orchestrates all validation agentstdd-test-first.md- Enforces Red-Green-Refactor TDD cyclecleanup-workspace-agent.md- Repository integrity validationslice-retrospective.md- Mandatory learning capturearchitecture-review.md- Deep architecture analysissecurity-scan.md- Security vulnerability assessment
Framework-specific and general development utilities:
- Framework setup:
next-app.md,react-component.md,django-api.md,fastapi-setup.md - Database:
neon-setup.md,db-migrate.md - Code quality:
lint-setup.md,pre-commit-hooks.md,test-harness.md - Git workflow:
create-pr.md,fix-github-issue.md,smart-commit.md - Multi-agent:
multiagent-worktree.md - Standards:
universal-claude.md,setup-claude-standards.md
Production deployment and monitoring:
vercel-deploy.md,railway-deploy.md- Platform deploymentdocker-optimize.md- Container optimizationmonitoring-setup.md- Observability setupvercel-scan.md- Deployment analysis
Documentation management and organization:
docs-cleanup.md,docs-organize.md,docs-update.md- Doc maintenancemeta-docs-standards.md- Documentation standardsprepare-open-source.md- Open source preparation
- macOS or Linux
- Claude Code CLI installed
jqcommand-line JSON processor
# Install jq if not present
# macOS
brew install jq
# Ubuntu/Debian
sudo apt-get install jq-
Clone the repository:
git clone <repository-url> ~/re4c cd ~/re4c
-
Run the installation script:
./install.sh
-
Follow the interactive prompts to handle any conflicts with existing commands or configuration
The installer provides several options for handling conflicts:
- Backup and Replace: Saves existing files with timestamps before installing new versions
- Keep Existing: Skips installation of conflicting files
- View Differences: Shows diffs between existing and new versions before deciding
- Interactive Prompts: Handles each conflict individually for maximum control
We'll walk through building a real single-page web application that helps users reframe their struggles through inspirational quotes. Full sample documents are available in the ./samples directory.
Start by defining what you want to build. Be specific about features and requirements:
/create-prd "Build a single-page web application with the following requirements:
**Core Functionality:**
- Homepage with text input box prompting 'Share what you're struggling with'
- On form submission, display response containing:
- 3 relevant inspirational quotes from real historical figures
- Reframed perspective with actionable solutions based on quotes
- Brief author biography for each quote
- Copy-to-markdown functionality for each entry
- Social media sharing buttons
**Technical Requirements:**
- Responsive design (mobile-first)
- Clean, minimal UI focusing on readability
- Form validation and loading states
- OpenAI API integration for quote selection and reframing
- Text processing to match user input with relevant quotes"This generates prd-perspective-shift.md in your /tasks directory.
Transform your PRD into concrete design specifications:
/create-drd prd-perspective-shift.mdThe AI will ask clarifying questions about:
- Visual design preferences (colors, typography, spacing)
- User flow and interaction patterns
- Component hierarchy and responsive behavior
- Error states and loading feedback
This generates drd-perspective-shift.md with complete UI/UX specifications.
Convert requirements into technical architecture:
/create-trd prd-perspective-shift.md drd-perspective-shift.mdThe AI will determine:
- System architecture (Next.js + Supabase + OpenAI)
- Database schema and API design
- Integration patterns and security requirements
- Performance targets and caching strategies
This generates trd-perspective-shift.md with implementation details.
Choose your development approach:
Option A: Task-Based Development
/generate-tasks prd-perspective-shift.md
# Creates detailed task list with sub-tasksOption B: Vertical Slice Development (Recommended)
/generate-slices prd-perspective-shift.md 10
# Creates vertical slices within 10 complexity points/process-slices 0 # Start with Slice 0 (static mockup)The system will:
- Write tests first (Red phase)
- Implement features (Green phase)
- Refactor code (Refactor phase)
- Run validation agents
- Take Playwright screenshots for UI testing
Complete example documents for the "Perspective Shift" application are available in the ./samples directory:
prd-perspective-shift.md- Full product requirements with user stories and functional specsdrd-perspective-shift.md- Comprehensive design specifications with component hierarchytrd-perspective-shift.md- Technical architecture with database schema and API designtasks-perspective-shift.md- Generated task list ready for implementation
These samples demonstrate the complete workflow from requirements to implementation-ready tasks.
# For complex features requiring parallel development
/process-slices-multiagentEvery slice completion requires validation from:
- Architecture Validation Agent: Structural integrity
- TDD Validation Agent: Test coverage and quality
- UI Testing Agent: Playwright testing (for UI work)
- UX Evaluation Agent: User experience validation (for new UI)
- Cleanup Validation Agent: Repository cleanliness
# After every slice (mandatory)
/slice-retrospective slice-nameThe included CLAUDE.md implements:
- TDD enforcement
- Clean Code principles
- TypeScript development strategy
- Validation framework requirements
- Resource utilization standards
While re4c provides universal standards, you can customize:
- Project-specific complexity thresholds
- Additional validation requirements
- Custom workflow extensions
- Tool-specific configurations
Extend the validation framework:
# Create project-specific validators
/validate-slice-completion --add-validator custom-security-agentTrack and manage development complexity:
# Set project complexity budget
/generate-slices --complexity-budget 50
# Monitor complexity usage
/process-slices --show-complexity-remainingCoordinate development across repositories:
# Set up multi-repo development environment
/multiagent-worktree --repos "frontend,backend,shared"Keep your re4c installation up to date:
# Check for and apply updates
./update.sh
# Automatic update (no prompts)
./update.sh --autoThe update system:
- Compares file versions automatically
- Shows what will be updated before proceeding
- Creates backups of replaced files
- Handles new commands and obsolete files
- Updates global CLAUDE.md configuration
Installation conflicts with existing commands:
- The installer will prompt for each conflict
- Choose "View differences" to see what's changed
- Backups are automatically created
Missing validation agents:
- Ensure all validation commands are installed
- Check that validation agents are executable
- Verify Claude Code has access to command directory
TDD validation failures:
- All tests must pass before slice completion
- Use
--debugflag to see detailed test output - Check test coverage meets project standards
- Built-in documentation: Each command includes comprehensive help
- Command structure: All commands follow consistent patterns
- Debug mode: Most commands support
--debugfor verbose output - Issue tracking: Report bugs and feature requests on GitHub
MIT License - see LICENSE for details.
Contributions welcome! Please see CONTRIBUTING.md for guidelines.
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Documentation: See the
docs/directory
re4c: Transform Claude Code into your specialized engineering partner with systematic TDD, multi-agent validation, and comprehensive learning capture. π