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 User model handling PDF export. -> Fix: Extract to UserPdfExporter.
  • High Cohesion:
    • Do methods in this class relate to each other?
    • Violation: OrderService containing sendEmail() and calculateTax(). -> Fix: Use NotificationService and TaxCalculator.
  • Loose Coupling:
    • Can I change one module without breaking others?
    • Strategy: Use Interfaces, Events, or Dependency Injection instead of hard dependencies.

2. Reusability (DRY - Don't Repeat Yourself)

Installs
1
First Seen
5 days ago