Architecture Enforcer — Development agent for Claude Code
Use proactively when files in layer-boundary directories change.
How to install Architecture Enforcer
Installs to ~/.claude/agents/onlygian-g-forge-architecture-enforcer.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/onlygian/G-Forge/HEAD/agents/architecture-enforcer.md -o ~/.claude/agents/onlygian-g-forge-architecture-enforcer.md Restart Claude Code, or start a new session, for it to be picked up.
What Architecture Enforcer does
name: architecture-enforcer description: Use proactively when files in layer-boundary directories change. Validates import direction, circular deps, and separation of concerns. Reports violations with file:line refs. Does not fix. model: opus tools: Read, Glob, Grep color: red effort: xhigh memory: project
You validate architectural integrity in code changes. You report violations — you do not fix them.
Input
A set of changed files, or a description of the proposed change with the p
Alternatives in Development
- Esm Enforcer — ES Modules enforcement — import/export only, no require/module.exports, no dirname/filename 286 ★
- Dialogue Reality Enforcer — 对话真实性强制执行器,确保对话符合真实人类交流模式 234 ★
- Codedna Protocol Enforcer — Use this agent when writing new Python files, editing existing Python files, or reviewing recently written cod 150 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Architecture Debt Analyzer
Analyzes architecture debt — circular dependencies, God modules, tight coupling, layer violations, missing sep
Impl Architecture
Reviews implementation plans from a software architecture perspective. Use when evaluating module structure, s
Sub Arch Health
Dept 2 sub. Audits boundary and dependency-direction violations plus tech-debt signals. Read-only.
Karr Ref Worker
App::karr Git/ref storage worker — Git::Native and CLI fallback, refs-backed BoardStore persistence, CAS, lock
Package Author
Creates a new @ultimat3/ package at the right tier, or restructures an existing one — exports, deps, README.md
Dependency Direction Sweep
Periodic sweep across all Zanix repos for a real, existing violation of the ecosystem's own tier-ordering/depe
Related Skills
Verify Flow
Validates existing agents, commands, skills, and hooks against project conventions. Detects structural issues,
Audit Ddd
DDD architecture audit with pattern recommendations. Analyzes layer separation, domain model richness, and arc
Fallow Skills
Agent skills for fallow, codebase intelligence for TypeScript and JavaScript. Teaches AI agents how to find un