# Magic Incantations Guide: Project Intelligence Cache
**File Path:** `/Users/Luther/RiderProjects/claude/mcp-servers/conversation-continuity/docs/magic-incantations.md`
Quick reference guide with copy-paste patterns for the Project Intelligence Cache system. Eliminate session startup overhead with these proven incantation patterns.
## šÆ The Magic Formula
**Pattern**: `Load ProjectIntelligence_{ProjectName} from Memory MCP - {context}!`
**Result**: Instant project understanding instead of 15+ minutes exploration.
---
## š Quick Reference Patterns
### š¢ Basic Loading
**Standard Project Loading**
```bash
Load ProjectIntelligence_MyProject from Memory MCP - instant context!
```
**With Completion Status**
```bash
Load ProjectIntelligence_MyProject_COMPLETE from Memory MCP - instant 90% complete context!
```
**With Efficiency Tag**
```bash
Load ProjectIntelligence_MyProject_EFFICIENCY_COMPLETE from Memory MCP - instant 90% complete context!
```
---
### šÆ Task-Specific Loading
**Feature Development**
```bash
Load ProjectIntelligence_MyProject from Memory MCP - continuing feature development work!
```
**Bug Fixing**
```bash
Load ProjectIntelligence_MyProject from Memory MCP - continuing bug investigation and fixes!
```
**Code Review**
```bash
Load ProjectIntelligence_MyProject from Memory MCP - performing code review and architecture analysis!
```
**Documentation Update**
```bash
Load ProjectIntelligence_MyProject from Memory MCP - updating documentation and guides!
```
**Testing & Validation**
```bash
Load ProjectIntelligence_MyProject from Memory MCP - testing implementation and validating functionality!
```
**Architecture Work**
```bash
Load ProjectIntelligence_MyProject from Memory MCP - working on system architecture and design patterns!
```
**Deployment Preparation**
```bash
Load ProjectIntelligence_MyProject from Memory MCP - preparing for production deployment!
```
---
### š Context-Rich Patterns
**With Exact Next Task**
```bash
Load ProjectIntelligence_MyProject from Memory MCP - instant context! **EXACT NEXT TASK**: Implement user authentication module with JWT tokens.
```
**With Multiple Tasks**
```bash
Load ProjectIntelligence_MyProject from Memory MCP - instant context! **EXACT NEXT TASK**: 1) Fix TypeScript compilation errors, 2) Update API documentation, 3) Test new endpoints.
```
**With Priority Context**
```bash
Load ProjectIntelligence_MyProject from Memory MCP - instant context! **HIGH PRIORITY**: Security vulnerability fix in authentication system.
```
**With Deadline Context**
```bash
Load ProjectIntelligence_MyProject from Memory MCP - instant context! **DEADLINE**: Feature must be ready for demo tomorrow at 2 PM.
```
---
### š„ Team Coordination Patterns
**Taking Over From Teammate**
```bash
Load ProjectIntelligence_TeamProject from Memory MCP - taking over payment integration work from Sarah!
```
**Handoff to Teammate**
```bash
Load ProjectIntelligence_TeamProject from Memory MCP - preparing handoff of user dashboard to Mike!
```
**Cross-Team Collaboration**
```bash
Load ProjectIntelligence_SharedComponents from Memory MCP - integrating with mobile team's component library!
```
**New Team Member Onboarding**
```bash
Load ProjectIntelligence_TeamProject from Memory MCP - onboarding new developer to codebase!
```
**Code Review for Teammate**
```bash
Load ProjectIntelligence_TeamProject from Memory MCP - reviewing Alex's pull request for database optimization!
```
---
### š Workflow Integration Patterns
**Morning Startup**
```bash
Load ProjectIntelligence_MyProject from Memory MCP - starting daily development session!
```
**Post-Meeting Continuation**
```bash
Load ProjectIntelligence_MyProject from Memory MCP - implementing decisions from architecture meeting!
```
**Sprint Planning**
```bash
Load ProjectIntelligence_MyProject from Memory MCP - planning next sprint features and priorities!
```
**End-of-Sprint Review**
```bash
Load ProjectIntelligence_MyProject from Memory MCP - reviewing sprint completion and preparing retrospective!
```
**Emergency Response**
```bash
Load ProjectIntelligence_ProductionApp from Memory MCP - urgent production issue investigation!
```
---
### šļø Development Phase Patterns
**Initial Setup**
```bash
Load ProjectIntelligence_NewProject from Memory MCP - setting up project foundation and architecture!
```
**MVP Development**
```bash
Load ProjectIntelligence_MVPProject from Memory MCP - building minimum viable product features!
```
**Feature Expansion**
```bash
Load ProjectIntelligence_MatureProject from Memory MCP - adding advanced features to stable foundation!
```
**Refactoring**
```bash
Load ProjectIntelligence_LegacyProject from Memory MCP - refactoring codebase for improved maintainability!
```
**Performance Optimization**
```bash
Load ProjectIntelligence_MyProject from Memory MCP - optimizing performance and reducing bottlenecks!
```
**Security Hardening**
```bash
Load ProjectIntelligence_MyProject from Memory MCP - implementing security best practices and vulnerability fixes!
```
---
### šÆ Rules Integration Patterns
**With Luther's Rules**
```bash
Load ProjectIntelligence_MyProject from Memory MCP - instant context! **YOUR RULES**: 1) Approval Required 2) Artifact Display 3) Architecture Check 4) File Paths 5) Documentation First
```
**With Custom Workflow Rules**
```bash
Load ProjectIntelligence_MyProject from Memory MCP - instant context! **WORKFLOW**: 1) Test-Driven Development 2) Code Review Required 3) Documentation Update 4) Performance Check
```
**With Quality Gates**
```bash
Load ProjectIntelligence_MyProject from Memory MCP - instant context! **QUALITY GATES**: 1) All tests pass 2) Code coverage >90% 3) No TypeScript errors 4) Security scan clean
```
---
## š Advanced Incantation Patterns
### š Multi-Project Loading
**Related Projects**
```bash
Load ProjectIntelligence_Frontend from Memory MCP - instant context!
Load ProjectIntelligence_Backend from Memory MCP - instant context!
Load ProjectIntelligence_Shared from Memory MCP - instant context!
```
**Microservices Architecture**
```bash
Load ProjectIntelligence_UserService from Memory MCP - instant context!
Load ProjectIntelligence_PaymentService from Memory MCP - instant context!
Load ProjectIntelligence_NotificationService from Memory MCP - instant context!
```
**Environment-Specific**
```bash
Load ProjectIntelligence_MyProject_Development from Memory MCP - instant context!
Load ProjectIntelligence_MyProject_Staging from Memory MCP - instant context!
Load ProjectIntelligence_MyProject_Production from Memory MCP - instant context!
```
### š Contextual Variations
**Technology-Specific**
```bash
Load ProjectIntelligence_ReactApp from Memory MCP - instant context! **FOCUS**: React component architecture and state management.
```
**Problem-Specific**
```bash
Load ProjectIntelligence_MyProject from Memory MCP - instant context! **ISSUE**: Database connection pooling causing memory leaks.
```
**Goal-Specific**
```bash
Load ProjectIntelligence_MyProject from Memory MCP - instant context! **GOAL**: Reduce API response time from 500ms to <100ms.
```
---
## š Situation-Specific Quick Picks
### š„ Emergency Situations
**Production Down**
```bash
Load ProjectIntelligence_ProductionApp from Memory MCP - URGENT production outage investigation!
```
**Security Incident**
```bash
Load ProjectIntelligence_MyProject from Memory MCP - SECURITY INCIDENT response and mitigation!
```
**Data Loss Recovery**
```bash
Load ProjectIntelligence_MyProject from Memory MCP - CRITICAL data recovery operation!
```
### šÆ Daily Development
**Feature Implementation**
```bash
Load ProjectIntelligence_MyProject from Memory MCP - implementing user authentication with OAuth integration!
```
**Bug Investigation**
```bash
Load ProjectIntelligence_MyProject from Memory MCP - investigating intermittent timeout errors in payment processing!
```
**Performance Tuning**
```bash
Load ProjectIntelligence_MyProject from Memory MCP - optimizing database queries and reducing API latency!
```
### š Project Management
**Sprint Planning**
```bash
Load ProjectIntelligence_MyProject from Memory MCP - planning Sprint 15 with focus on mobile responsiveness!
```
**Technical Debt**
```bash
Load ProjectIntelligence_MyProject from Memory MCP - addressing technical debt in authentication and logging systems!
```
**Architecture Decision**
```bash
Load ProjectIntelligence_MyProject from Memory MCP - evaluating microservices vs monolith architecture decision!
```
---
## šÆ Pattern Selection Guide
### Choose Your Pattern Based On:
| Situation | Recommended Pattern | Example |
|-----------|-------------------|---------|
| **Quick Session** | Basic Loading | `Load ProjectIntelligence_MyProject from Memory MCP - instant context!` |
| **Specific Task** | Task-Specific | `Load ProjectIntelligence_MyProject from Memory MCP - continuing API development!` |
| **Team Handoff** | Team Coordination | `Load ProjectIntelligence_TeamProject from Memory MCP - taking over from Sarah!` |
| **Emergency** | Emergency Pattern | `Load ProjectIntelligence_ProductionApp from Memory MCP - URGENT production issue!` |
| **Daily Workflow** | Workflow Integration | `Load ProjectIntelligence_MyProject from Memory MCP - starting morning development!` |
| **With Rules** | Rules Integration | `Load ProjectIntelligence_MyProject from Memory MCP - instant context! **YOUR RULES**: 1) Approval Required...` |
---
## š ļø Customization Templates
### Create Your Own Patterns
**Template Structure**
```bash
Load ProjectIntelligence_{YOUR_PROJECT_NAME} from Memory MCP - {YOUR_CONTEXT}! **{OPTIONAL_EXTRAS}**: {YOUR_SPECIFICATIONS}
```
**Variables to Customize**:
- `{YOUR_PROJECT_NAME}`: Replace with actual project name
- `{YOUR_CONTEXT}`: Describe what you're doing
- `{OPTIONAL_EXTRAS}`: Add rules, tasks, priorities, etc.
- `{YOUR_SPECIFICATIONS}`: Specific requirements or constraints
### Examples of Customization
**E-commerce Project**
```bash
Load ProjectIntelligence_ShopApp from Memory MCP - implementing shopping cart with Redis session storage!
```
**Mobile App Project**
```bash
Load ProjectIntelligence_MobileApp from Memory MCP - optimizing React Native performance for iOS!
```
**Data Science Project**
```bash
Load ProjectIntelligence_MLPipeline from Memory MCP - training recommendation model with new dataset!
```
**DevOps Project**
```bash
Load ProjectIntelligence_InfrastructureProject from Memory MCP - migrating to Kubernetes cluster!
```
---
## š Advanced Magic Techniques
### š Session Chaining
**Continuous Development Flow**
```bash
# Session 1
Load ProjectIntelligence_MyProject from Memory MCP - implementing user registration!
# Session 2 (later)
Load ProjectIntelligence_MyProject from Memory MCP - continuing user registration, adding email verification!
# Session 3 (next day)
Load ProjectIntelligence_MyProject from Memory MCP - completing user registration flow with testing!
```
### šÆ Progressive Disclosure
**Start Broad, Get Specific**
```bash
# First: Load general project context
Load ProjectIntelligence_LargeProject from Memory MCP - instant context!
# Then: Focus on specific area
Load ProjectIntelligence_LargeProject_AuthModule from Memory MCP - focusing on authentication system!
```
### šļø Architecture Evolution
**Track Project Phases**
```bash
# Phase 1: Foundation
Load ProjectIntelligence_MyProject_Foundation from Memory MCP - building core architecture!
# Phase 2: Features
Load ProjectIntelligence_MyProject_Features from Memory MCP - implementing user-facing functionality!
# Phase 3: Optimization
Load ProjectIntelligence_MyProject_Optimized from Memory MCP - performance tuning and scaling!
```
---
## š Troubleshooting Incantations
### š When Cache is Stale
**Check Freshness**
```bash
Load ProjectIntelligence_MyProject from Memory MCP - checking cache freshness and updating if needed!
```
**Force Refresh Context**
```bash
Load ProjectIntelligence_MyProject from Memory MCP - refreshing project intelligence after major changes!
```
### šØ When Cache is Missing
**Acknowledge Missing Cache**
```bash
ProjectIntelligence_MyProject cache not found - please analyze project structure and create new cache!
```
**Request Cache Creation**
```bash
Create ProjectIntelligence_MyProject cache - comprehensive project analysis needed for efficiency revolution!
```
### š§ When Context is Incomplete
**Request Additional Context**
```bash
Load ProjectIntelligence_MyProject from Memory MCP - need deeper context on database architecture!
```
**Specify Missing Areas**
```bash
Load ProjectIntelligence_MyProject from Memory MCP - missing API documentation and deployment info!
```
---
## šÆ Success Metrics
### How to Know Your Incantation Worked
ā
**Perfect Success Indicators**:
- Complete project context loaded in <10 seconds
- Immediate understanding of project structure
- Clear next steps provided
- Zero exploration overhead
- Ready for productive work immediately
ā ļø **Partial Success Indicators**:
- Some context loaded but missing details
- Basic understanding but need clarification
- Most recent changes not reflected
ā **Failure Indicators**:
- Cache not found or corrupted
- Stale information provided
- Missing critical project areas
### Optimization Tips
1. **Use Specific Project Names**: `MyReactApp` > `Project`
2. **Include Current Task**: Context helps AI prioritize information
3. **Add Priority Flags**: `URGENT`, `HIGH PRIORITY` get attention
4. **Specify Your Rules**: Include workflow preferences
5. **Chain Sessions**: Reference previous work for continuity
---
## š Pro Tips for Magic Mastery
### š Incantation Best Practices
1. **Be Consistent**: Use same project name format across sessions
2. **Be Specific**: Include current task or focus area
3. **Be Clear**: State exact next steps when known
4. **Be Complete**: Include your workflow rules and preferences
5. **Be Fresh**: Update cache when making major changes
### š Workflow Integration
**Daily Routine**
```bash
# Morning
Load ProjectIntelligence_MyProject from Memory MCP - starting daily development session!
# After Lunch
Load ProjectIntelligence_MyProject from Memory MCP - continuing afternoon development work!
# End of Day
Load ProjectIntelligence_MyProject from Memory MCP - wrapping up and planning tomorrow's work!
```
**Weekly Cycle**
```bash
# Monday
Load ProjectIntelligence_MyProject from Memory MCP - starting weekly sprint with new features!
# Friday
Load ProjectIntelligence_MyProject from Memory MCP - completing sprint and preparing for review!
```
### šÆ Team Adoption Strategy
1. **Start with Champions**: Get enthusiastic team members using it first
2. **Share Success Stories**: Document time savings and productivity gains
3. **Create Team Patterns**: Develop consistent incantations for your projects
4. **Regular Updates**: Keep caches fresh for team collaboration
5. **Training Sessions**: Teach effective pattern usage
---
## š Copy-Paste Cheat Sheet
### š¢ Most Common Patterns
```bash
# Basic loading
Load ProjectIntelligence_MyProject from Memory MCP - instant context!
# With specific task
Load ProjectIntelligence_MyProject from Memory MCP - continuing [TASK NAME]!
# With rules
Load ProjectIntelligence_MyProject from Memory MCP - instant context! **YOUR RULES**: 1) Approval Required 2) Artifact Display
# With next task
Load ProjectIntelligence_MyProject from Memory MCP - instant context! **EXACT NEXT TASK**: [SPECIFIC ACTION]
# Team handoff
Load ProjectIntelligence_TeamProject from Memory MCP - taking over [FEATURE] from [NAME]!
# Emergency
Load ProjectIntelligence_ProductionApp from Memory MCP - URGENT [ISSUE TYPE] investigation!
```
### šÆ Template for Custom Use
```bash
Load ProjectIntelligence_[PROJECT_NAME] from Memory MCP - [WHAT_YOU_ARE_DOING]! **[OPTIONAL_CONTEXT]**: [SPECIFIC_DETAILS]
```
---
**The magic is in the consistency. Use these patterns to eliminate session startup overhead and achieve instant productivity.**
**Status**: ā
Production Ready | **Impact**: 90%+ Time Savings | **Adoption**: Revolutionary
---