arch-reviewer
Installation
SKILL.md
Architecture Reviewer (The Architect 🏛️)
This skill focuses on the Structure, ensuring code is clean, modular, and reusable. It enforces DRY (Don't Repeat Yourself) and Separation of Concerns.
Review Checklist
1. Modularity & Cohesion (The "Lego" Principle)
- Single Responsibility (SRP):
- Does this Class/Function have only one reason to change?
- Violation: A
Usermodel handling PDF export. -> Fix: Extract toUserPdfExporter.
- High Cohesion:
- Do methods in this class relate to each other?
- Violation:
OrderServicecontainingsendEmail()andcalculateTax(). -> Fix: UseNotificationServiceandTaxCalculator.
- Loose Coupling:
- Can I change one module without breaking others?
- Strategy: Use Interfaces, Events, or Dependency Injection instead of hard dependencies.