enforcing-architecture

Installation
SKILL.md

Enforcing Architecture

Set up mechanical architecture enforcement — not prompts asking the agent to "be careful," but a check script wired into hooks that runs on every file edit and catches layer violations automatically.

Output: An ARCHITECTURE.md, a check script (scripts/check-architecture.{py,mjs,sh}), and a PostToolUse hook that shows violations to the agent inline.

When to use: After project initialization, or when a project has clear layers (controllers/services/models, app/lib/data, etc.) that should not import in the wrong direction. Skip for small projects, prototypes, or single-layer apps.

Reference Files

File Read When
references/layer-patterns.md Detecting architecture style or suggesting layer boundaries for a specific stack

Workflow

- [ ] Phase 1: Detect architecture signals
- [ ] Phase 2: Interview for boundaries and rules
Related skills

More from riccardogrin/skills

Installs
14
GitHub Stars
4
First Seen
Mar 9, 2026