check_architecture
Detect forbidden imports between architectural layers to enforce clean architecture or hexagonal patterns. Supports auto-detected presets or custom layer definitions.
Instructions
Check architectural layer rules: detect forbidden imports between layers (e.g. domain importing infrastructure). Supports auto-detected presets (clean-architecture, hexagonal) or custom layers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preset | No | Use a built-in layer preset (auto-detected if omitted) | |
| layers | No | Custom layer definitions (overrides preset) |