architecture-analysislisted
Install: claude install-skill AppVerk/av-marketplace
# Architecture Analysis - SOLID, DDD & Clean Architecture
Analyzes codebases for architectural violations, design pattern issues, and maintainability problems. Provides actionable recommendations with code examples.
---
## Analysis Scope
| Category | What We Check | Severity Range |
|----------|---------------|----------------|
| **SOLID Principles** | SRP, OCP, LSP, ISP, DIP | CRITICAL - MEDIUM |
| **DDD Patterns** | Aggregates, Value Objects, Repositories | HIGH - LOW |
| **Clean Architecture** | Layer dependencies, boundary violations | CRITICAL - HIGH |
| **Anti-Patterns** | God Objects, Circular Dependencies | HIGH - MEDIUM |
| **Code Metrics** | Complexity, coupling, cohesion | HIGH - LOW |
---
## Step 1: Codebase Structure Analysis
### Detect Project Layout
```bash
echo "=== Project Structure Analysis ==="
# Detect common architecture patterns
echo "--- Layer Detection ---"
for layer in domain application infrastructure presentation api services models controllers handlers; do
[ -d "$layer" ] && echo "FOUND: $layer/"
[ -d "src/$layer" ] && echo "FOUND: src/$layer/"
[ -d "app/$layer" ] && echo "FOUND: app/$layer/"
done
```
**File Distribution:** Use the Glob tool to find all Python files (`**/*.py`) and TypeScript files (`**/*.ts`, `**/*.tsx`). Group results by top-level directory to understand file distribution across layers.
### Identify Architecture Pattern
| Pattern | Indicators |
|---------|------------|
| **Clean Architecture** | `domain/`,