architecture-governance
Installation
SKILL.md
architecture-governance Skill
Goal
Architecture is not a document; it's a constraint system checked by CI/CD.
Steps
1. Fitness Functions (Automated Tests)
Write tests that verify your architecture, not just your logic.
- Layering: "Classes in
Domainshould not depend onInfrastructure." - Cycles: "No circular dependencies between slices."
- Naming: "All Interfaces should start with
I" (if that's your rule). - Inheritance: "All Domain Events must implement
IDomainEvent."
2. Tools
- Java/Kotlin: ArchUnit.
- .NET: NetArchTest.
- TypeScript:
dependency-cruiseror custom ESLint rules (seeagentic-linter). - PHP: PHPArkitect or Deptrac.