Architecture Guard
Commands
- •Validate:
npm run depcruise - •Graph:
npm run depgraph:mermaid
Evidence
- •Write
reports/architecture/ARCH_REPORT.mdwith:- •Cycle count (must be 0)
- •Boundary violations (must be 0)
- •Notes for any exemptions (require ADR)
验证架构边界(依赖关系巡检器),并生成依赖关系图。
--- frontmattername: architecture-guard description: Validate architecture boundaries (dependency-cruiser) and generate a dependency graph. disable-model-invocation: true argument-hint: '' allowed-tools: Read, Grep, Glob, Bash(npm run depcruise), Bash(npm run depgraph:mermaid)
npm run depcruisenpm run depgraph:mermaidreports/architecture/ARCH_REPORT.md with: