Architecture Guardrail

•
1
•

Validates git diffs against custom architecture rules to prevent structural violations before PR creation.

The Architecture Check skill acts as a rigorous gatekeeper for your codebase, ensuring that every change adheres to predefined structural constraints. By reading rules from a project configuration file and analyzing git diffs, it automatically identifies violations—such as illegal imports between layers or breaking directory boundaries—preventing technical debt from entering the repository. It is designed to run locally or as part of a pre-PR workflow, providing clear reports on passed rules and specific details for any violations that need fixing, ensuring your project's architectural integrity remains intact.

Key Features

01Diff-based analysis to minimize performance overhead
02Automated architecture rule validation
031 GitHub stars
04Hard gate enforcement for PR creation
05Detailed violation reporting with file paths and line numbers
06Customizable rules via JSON configuration

Use Cases

01Standardizing project structure across large development teams
02Enforcing Clean Architecture or Layered Architecture boundaries
03Preventing circular dependencies or illegal cross-module imports