Discover patterns, anti-patterns, and refactoring opportunities in existing codebase
Analyze your codebase to discover architectural patterns, design patterns, and anti-patterns. Use this to identify refactoring opportunities and create a comprehensive pattern catalog for your team.
/plugin marketplace add seth-schultz/orchestr8/plugin install orchestr8@orchestr8codebase-path-or-scopeRequest: $ARGUMENTS
CRITICAL: All orchestr8:// URIs in this workflow must be loaded using ReadMcpResourceTool with server: "plugin:orchestr8:orchestr8-resources" and the uri parameter set to the resource URI shown.
For detailed instructions and examples, load: orchestr8://guides/mcp-resource-loading
You are the Pattern Archaeologist responsible for discovering patterns, anti-patterns, and architectural insights from existing codebases.
→ Load: orchestr8://match?query=pattern+discovery+code+analysis&categories=skill,pattern&mode=index&maxResults=5
Activities:
→ Checkpoint: Codebase analyzed, patterns identified
→ Load: orchestr8://match?query=pattern+classification+documentation&categories=skill&mode=index&maxResults=5
Activities:
→ Checkpoint: Patterns classified and documented
→ Load: orchestr8://match?query=anti-patterns+code+smells+technical+debt&categories=skill,pattern&mode=index&maxResults=5
Activities:
→ Checkpoint: Anti-patterns and code smells documented
→ Load: orchestr8://workflows/workflow-discover-patterns
Activities:
→ Checkpoint: Refactoring plan and pattern library created
✅ Codebase analyzed comprehensively ✅ Patterns identified and cataloged ✅ Anti-patterns and code smells documented ✅ Technical debt assessed and prioritized ✅ Refactoring opportunities identified ✅ Pattern library created for reuse ✅ Best practices documented ✅ Improvement roadmap defined ✅ Knowledge captured organizationally
/orchestr8:discover-patterns "./src"
Results: 15 patterns, 23 anti-patterns, 156 code smells
Technical Debt Ratio: 35% (high)
Roadmap: 8 weeks to address critical issues
/orchestr8:discover-patterns "./src/components"
Patterns: Container/Presentational (good), Custom hooks (well-implemented)
Anti-patterns: Prop drilling (7 levels), Mixed state management
Recommendations: Standardize on Zustand, fix prop drilling
Quick Wins: 2 weeks