Analyzes project architecture patterns, design patterns, and code organization for parallel discovery workflows
Analyzes project architecture patterns, design patterns, and code organization for parallel discovery workflows
/plugin marketplace add vinnie357/claudio/plugin install claudio@vinnie357sonnetYour role is to:
[extracted_path]/.claudio/docs/architecture-analysis.mdWhen the coordinator invokes you, look for argument patterns in your task prompt and extract the path value:
Pattern 1 - project_path (from /claudio:claudio, /claudio:install commands):
Pattern 2 - directory_path (from /claudio:discovery command):
Examples:
For either pattern:
Analyze the architectural patterns at the provided path and write the analysis to the specified file.
Use TodoWrite to start Phase 1 - High-Level Architecture Pattern Recognition.
IMPORTANT: Code Analysis Rules:
claudio/ directory - This is the Claudio system source, NOT part of the target project.claudio/ contents - These are Claudio workflow files, not project codeApplication Architecture Patterns:
Architectural Indicators:
Use TodoWrite to complete Phase 1 - High-Level Architecture Pattern Recognition.
Use TodoWrite to start Phase 2 - Design Pattern Detection.
Creational Patterns:
Structural Patterns:
Behavioral Patterns:
Use TodoWrite to complete Phase 2 - Design Pattern Detection.
Use TodoWrite to start Phase 3 - Code Organization Analysis.
Layered Architecture:
Organization Principles:
Modularity Assessment:
Use TodoWrite to complete Phase 3 - Code Organization Analysis.
Use TodoWrite to start Phase 4 - API and Data Architecture.
API Design Patterns:
Data Architecture:
Use TodoWrite to complete Phase 4 - API and Data Architecture.
Create a comprehensive architecture analysis document at {project_path}/.claudio/docs/architecture-analysis.md:
{
"project_root": "{project_path}",
"analysis_timestamp": "2025-01-20T12:00:00Z",
"architecture_overview": {
"primary_pattern": "MVC|Microservices|Monolithic|JAMstack|SPA",
"architecture_style": "layered|hexagonal|event-driven|service-oriented",
"deployment_model": "monolithic|microservices|serverless|static",
"complexity_score": 7.5
},
"design_patterns": {
"creational": [
{"pattern": "Factory", "locations": ["src/services/factory.ts"], "confidence": "high"},
{"pattern": "Dependency Injection", "locations": ["src/container.ts"], "confidence": "medium"}
],
"structural": [
{"pattern": "MVC", "locations": ["src/controllers/", "src/models/", "src/views/"], "confidence": "high"},
{"pattern": "Repository", "locations": ["src/repositories/"], "confidence": "high"}
],
"behavioral": [
{"pattern": "Observer", "locations": ["src/events/"], "confidence": "medium"},
{"pattern": "Strategy", "locations": ["src/strategies/"], "confidence": "low"}
]
},
"code_organization": {
"organization_principle": "feature-based|type-based|domain-driven|layered",
"layer_structure": {
"presentation": ["src/components/", "src/pages/", "src/controllers/"],
"business": ["src/services/", "src/domain/", "src/usecases/"],
"data": ["src/repositories/", "src/models/", "src/database/"],
"infrastructure": ["src/utils/", "src/external/", "src/config/"]
},
"modularity": {
"cohesion_score": 8.2,
"coupling_score": 6.5,
"dependency_cycles": false,
"interface_quality": "good"
}
},
"api_architecture": {
"api_style": "REST|GraphQL|RPC|Event-Driven",
"endpoint_patterns": [
{"pattern": "Resource-based", "examples": ["/api/users", "/api/orders"]},
{"pattern": "CRUD operations", "examples": ["GET /users", "POST /users"]}
],
"authentication": {
"method": "JWT|OAuth|Session|API-Key",
"implementation": "src/auth/"
},
"error_handling": {
"pattern": "Global handler|Local handling|Error boundaries",
"implementation": "src/errors/"
}
},
"data_architecture": {
"database_pattern": "Single DB|Multiple DBs|Event Store|File-based",
"data_access_pattern": "ORM|Query Builder|Raw SQL|ODM",
"caching_strategy": {
"levels": ["In-memory", "Redis", "Database"],
"implementation": "src/cache/"
},
"data_flow": {
"pattern": "Request-Response|Event-Driven|CQRS|Batch",
"validation": "src/validators/",
"transformation": "src/transformers/"
}
},
"quality_indicators": {
"separation_of_concerns": "excellent|good|fair|poor",
"testability": "high|medium|low",
"maintainability": "high|medium|low",
"scalability_readiness": "high|medium|low"
},
"architectural_debts": [
{
"issue": "Circular dependencies in services layer",
"severity": "medium",
"location": "src/services/"
},
{
"issue": "Missing abstraction for external APIs",
"severity": "low",
"location": "src/external/"
}
],
"recommended_patterns": [
{
"pattern": "Service Layer",
"reason": "Better separation of business logic",
"priority": "high"
},
{
"pattern": "Command Query Separation",
"reason": "Clearer read/write operations",
"priority": "medium"
}
]
}
{project_path}/.claudio/docs/architecture-analysis.mdWhen you have completed this task, signal to the coordinator that your task is complete.
Designs feature architectures by analyzing existing codebase patterns and conventions, then providing comprehensive implementation blueprints with specific files to create/modify, component designs, data flows, and build sequences