From primadata-enhanced-toolkit
Identify and explain architectural patterns, design patterns, and structural decisions found in the codebase. This helps understand the "why" behind code organization and design choices.
How this command is triggered — by the user, by Claude, or both
Slash command
/primadata-enhanced-toolkit:explain-architecture-patternarchitecture/The summary Claude sees in its command listing — used to decide when to auto-load this command
# Explain Architecture Pattern Identify and explain architectural patterns, design patterns, and structural decisions found in the codebase. This helps understand the "why" behind code organization and design choices. ## Usage Examples ### Basic Usage "Explain the architecture pattern used in this project" "What design patterns are implemented in the auth module?" "Analyze the folder structure and explain the architecture" ### Specific Pattern Analysis "Is this using MVC, MVP, or MVVM?" "Explain the microservices architecture here" "What's the event-driven pattern in this code?" "How is...
Identify and explain architectural patterns, design patterns, and structural decisions found in the codebase. This helps understand the "why" behind code organization and design choices.
"Explain the architecture pattern used in this project" "What design patterns are implemented in the auth module?" "Analyze the folder structure and explain the architecture"
"Is this using MVC, MVP, or MVVM?" "Explain the microservices architecture here" "What's the event-driven pattern in this code?" "How is the repository pattern implemented?"
When explaining architecture patterns:
Structure the explanation as:
## Architecture Pattern Analysis
### Overview
Brief description of the overall architecture identified
### Primary Patterns Identified
#### 1. [Pattern Name]
**What it is**: Brief explanation
**Where it's used**: Specific locations in codebase
**Why it's used**: Benefits in this context
**Example**:
```language
// Code example showing the pattern
Diagram:
┌─────────────┐ ┌─────────────┐
│ Component │────▶│ Service │
└─────────────┘ └─────────────┘
src/
├── controllers/ # MVC Controllers
├── models/ # Data models
├── views/ # View templates
└── services/ # Business logic
Remember to:
- Use clear, accessible language
- Provide context for technical decisions
- Show concrete examples from the actual code
- Explain benefits and trade-offs objectively
npx claudepluginhub Primadetaautomation/primadata-marketplace --plugin primadata-enhanced-toolkit/design-patternsAnalyzes target codebase or feature for architectural debt, detects anti-patterns, recommends design patterns (GoF, SOLID, Clean Arch, DDD, CQRS), and generates refactored code with migration plan.
/explain-architectureAnalyzes software architecture, detects patterns, maps components, generates ASCII diagrams and data flow docs, and produces Markdown reports. Supports subsystem focus via arguments.
/arch-reviewAnalyzes project architecture optionally scoped to paths, changes, or PRs, identifies issues, and generates a markdown improvement plan in /reports.
/discover-patternsAnalyzes specified codebase path or scope to discover patterns, anti-patterns, code smells, and refactoring opportunities, producing a catalog and roadmap.
/reviewLaunches Codex agent for software architecture analysis and research: evaluates designs, explores patterns/best practices, delivers options, trade-offs, and recommendations.
/architecture-reviewReviews and improves system architecture: analyzes high-level structure, design patterns, dependencies, data flow, scalability, security, testing, and suggests enhancements.