What problem does it solve?
Identify and explain architectural boundary violations in Rails and Grape applications so teams can extract misplaced logic, reduce coupling, and enforce clear service boundaries before they cause runtime bugs or brittle code.
Core Features & Use Cases
- Layered boundary analysis: Scans controllers, endpoints, services, models, jobs, and mailers to detect business logic in the wrong layer, external calls in model callbacks, and deep cross-context coupling.
- Actionable remediation: Provides concrete recommendations such as extracting services, converting callbacks to jobs, passing IDs to background workers, and introducing explicit APIs or events.
- Monolith / Packwerk guidance: Advises when to adopt Packwerk-style package boundaries for modular monoliths and how to configure enforce_dependencies and enforce_privacy for large codebases.
Quick Start
Ask the agent to analyze the app directory app/ for coupling, list detected boundary violations, and recommend explicit refactors and Packwerk package boundaries.