What problem does it solve?
Codebases organized into layered architectures (base, platform, workbench, renderer) degrade over time as developers accidentally add imports that cross layer boundaries. This Skill finds those violations automatically so architectural integrity can be enforced before code is merged.
Core Features & Use Cases
- Violation Detection: Runs ESLint with the import-x/no-restricted-paths rule to surface every import that crosses a layer boundary in the wrong direction.
- Grouped Reporting: Collects violations across src/base/, src/platform/, and src/workbench/ and groups them by layer pair (e.g., base -> platform) for systematic remediation planning.
- Fix Guidance: Provides concrete strategies for resolving violations, such as moving modules down a layer, introducing interfaces with dependency injection, or extracting shared logic.
- Use Case: Before opening a PR that touches src/base/ or src/platform/, run the audit to confirm no new upward imports were introduced, then group existing violations to plan a migration.
Quick Start
Audit the repository for layered architecture import violations and group the results by layer pair.