A comprehensive, research-based framework for creating consistent AI prompts and rules that transforms how you work with AI coding assistants. Build better software faster with systematic workflows, intelligent context management, and proven architectural patterns.
The AI Epic Framework is a smart context management system that helps you:
- Break down complex projects into manageable Initiative โ Epic โ Phase โ Step hierarchies
- Optimize AI interactions through conditional documentation loading (saving tokens and improving responses)
- Apply systematic approaches to problem-solving, architecture design, and code quality
- Maintain consistency across teams and projects with standardized workflows
- Work across 11+ AI IDEs with purpose-built adaptations for each platform
Transform overwhelming projects into clear, actionable hierarchies:
Initiative: "E-commerce Platform"
โโโ Epic 1: "User Authentication System"
โ โโโ Phase 1: "OAuth Integration"
โ โ โโโ Step 1: "Google OAuth Setup"
โ โ โโโ Step 2: "Login UI Components"
โ โโโ Phase 2: "User Profile Management"
โโโ Epic 2: "Payment Processing"
Smart documentation loading means better AI responses:
- Load only relevant context for current tasks
- Preserve context window space for actual problem-solving
- Get more accurate, focused AI assistance
Research-driven troubleshooting workflow:
- Activates after 3+ failed attempts
- Structured investigation methodology
- Temporary file management for complex debugging
Proven design processes and lifecycle management:
- Component design methodology
- Quality attribute considerations
- Documentation standards and templates
Works across 11 researched AI coding IDEs:
- Cursor AI, Windsurf, GitHub Copilot, Claude Code, Cline, Roo Code, Kilo Code, and more
- Each with purpose-built adaptations matching their specific rule systems
Purpose: Structure large projects into manageable hierarchies
When to use: Starting new projects, organizing complex features, team coordination
Capabilities:
- Initiative โ Epic โ Phase โ Step breakdown
- Sequential numbering and clear task hierarchy
- INDEX.md and REQUIREMENTS.md templates
- Directory structure and naming conventions
- Delegation instructions and progress tracking
Purpose: Systematic troubleshooting for complex technical issues
When to use: After 3+ failed attempts, multi-component failures, explicit debugging needs
Capabilities:
- Research-driven investigation workflow
- Component analysis methodology
- Temporary file management for debugging
- Integration with architecture design patterns
Purpose: Structured approach to system design and component architecture
When to use: New systems, major refactors, architectural decisions
Capabilities:
- Research methodology for technical decisions
- Component design and integration patterns
- Quality attribute considerations (performance, security, scalability)
- Review and validation procedures
Purpose: Organize and maintain architecture documentation
When to use: System design, documentation management, knowledge sharing
Capabilities:
- Document categorization and organization
- Size limits and breakdown strategies
- Update and deprecation processes
- Discovery and search patterns
Purpose: Quality protocols and decision-making guidelines
When to use: Code reviews, research activities, maintaining standards
Capabilities:
- File navigation and verification procedures
- Tool usage guidelines (Context7, web search, etc.)
- Research protocols and quality standards
- Documentation requirements
Purpose: Smart context loading and framework navigation
When to use: Always loaded - serves as the main navigation and decision matrix
Capabilities:
- Conditional documentation loading based on task context
- Decision matrix for choosing relevant frameworks
- Token efficiency optimization
- Progressive disclosure strategies
Scenario: Building a customer portal with multiple teams
Initiative: "Customer Portal Modernization"
โโโ Epic 1: "Authentication & Authorization"
โโโ Epic 2: "Data Migration from Legacy Systems"
โโโ Epic 3: "New Dashboard UI/UX"
โโโ Epic 4: "API Gateway Implementation"
Framework Application:
- Epic Workflow: Structure and track progress across teams
- Architecture Design: Plan API gateway and data flow
- Problem Solving: Debug complex legacy integration issues
- Execution Standards: Maintain code quality across teams
Scenario: Solo developer building SaaS product
Initiative: "Project Management SaaS MVP"
โโโ Epic 1: "Core Task Management"
โ โโโ Phase 1: "Basic CRUD Operations"
โ โโโ Phase 2: "Real-time Updates"
โโโ Epic 2: "User Onboarding Flow"
Framework Application:
- Epic Workflow: Break down MVP into manageable chunks
- Architecture Lifecycle: Document decisions as you build
- Problem Solving: Systematic debugging when stuck
- User Rules Template: Optimize AI context for faster development
Scenario: Migrating monolith to microservices
Initiative: "Monolith to Microservices Migration"
โโโ Epic 1: "Extract User Service"
โโโ Epic 2: "Extract Payment Service"
โโโ Epic 3: "API Gateway Implementation"
Framework Application:
- Architecture Design: Plan service boundaries and data flow
- Problem Solving: Debug complex migration issues
- Execution Standards: Maintain quality during transition
- Architecture Lifecycle: Document architectural decisions
Select your AI coding assistant from our supported platforms:
| IDE | Installation Link | Rule System |
|---|---|---|
| Cursor AI | Setup Guide | .mdc files with YAML frontmatter |
| Windsurf | Setup Guide | .windsurfrules (6K char limit) |
| GitHub Copilot | Setup Guide | .github/copilot-instructions.md |
| Roo Code | Setup Guide | Custom Instructions + .rooignore |
| Cline | Setup Guide | .clinerules + Custom Instructions |
| More... | All IDE Setups | 11 total IDE adaptations |
# Clone or download the framework
git clone [your-repo-url]
# Generate adaptations for all IDEs
python3 create_ide_adaptations.py
# Or create for specific IDE
python3 create_ide_adaptations.py --ide cursor- Copy your IDE's adaptation files to your project
- Start with user-rules-template as your main AI system prompt
- Load additional components based on the decision matrix:
- Building features? โ Epic Workflow
- Debugging issues? โ Problem Solving Framework
- Designing architecture? โ Architecture Design Process
Try creating your first epic:
Initiative: "Learning the AI Epic Framework"
โโโ Epic 1: "Setup and First Project"
โโโ Phase 1: "Framework Installation"
โโโ Phase 2: "Create Sample Epic"
โโโ Phase 3: "Test Problem Solving"
- Framework Overview - Detailed explanation of all components
- Epic Workflow Guide - Complete workflow management tutorial
- Problem Solving Guide - Systematic troubleshooting methodology
- Architecture Design Guide - Design process and patterns
- Customization Guide - Adapt framework for your needs
- Cursor AI Setup - Your optimized structure preserved
- Windsurf Setup -
.windsurfrulesconfiguration - GitHub Copilot Setup - Repository instructions
- Roo Code Setup - VS Code extension configuration
- Cline Setup -
.clinerulesand custom instructions - All IDE Setups - Complete setup guides for all 11 IDEs
- Token Optimization - Maximize AI efficiency
- Team Workflows - Multi-developer coordination
- Integration Patterns - Framework integration strategies
The framework is designed to be adapted to your specific needs:
# Edit source files
vim framework/generic/user-rules-template.md
vim framework/generic/epic-workflow-instructions.md
# Regenerate all IDE adaptations
python3 create_ide_adaptations.pyAdd new framework files and update the navigation in user-rules-template.md:
## Framework Navigation
- **Epic Workflow**: [epic-workflow-instructions.md](./epic-workflow-instructions.md)
- **Your Custom Component**: [your-custom-component.md](./your-custom-component.md)Each IDE adaptation can be customized independently:
- Cursor: Modify
.mdcfiles and YAML frontmatter - Windsurf: Adjust content to fit 6K character limit
- VS Code Extensions: Customize settings and rule files
We welcome contributions to improve the framework:
- Research Requirements: All new IDE support must include official documentation research
- Test with Real IDEs: Verify adaptations work with actual IDE installations
- Follow Framework Patterns: Maintain consistency with existing structure
- Document Changes: Update relevant documentation
| Metric | Value |
|---|---|
| Supported IDEs | 11 verified platforms |
| Core Components | 6 framework modules |
| Documentation Files | 25+ guides and references |
| Research Depth | Official documentation based |
| Token Efficiency | Conditional loading system |
- ๐ Documentation: Comprehensive guides in
/docs/folder - ๐ Issues: Report bugs or request features via GitHub issues
- ๐ก Ideas: Share customization ideas and use cases
- ๐ค Contribute: Help improve framework for everyone
This project is licensed under the MIT License - see the LICENSE file for details.
MIT License Summary:
- โ Free to use for commercial and non-commercial projects
- โ Modify and distribute as needed
- โ No warranty provided (use at your own risk)
- โ Attribution required (include license and copyright notice)
Full License Text: LICENSE
Ready to transform your AI-assisted development? Start with our Framework Overview or jump straight to your IDE Setup Guide.
Built with โค๏ธ for developers who want to build better software faster with AI assistance.