Layer Guardian — Development agent for Claude Code
Read-only reviewer that checks a diff against the aix layering contract (PLAYBOOK §5.3) and the CLAUDE.md §7 style rules.
How to install Layer Guardian
Installs to ~/.claude/agents/tanmoy162111-aix-layer-guardian.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/tanmoy162111/AIX/HEAD/.claude/agents/layer-guardian.md -o ~/.claude/agents/tanmoy162111-aix-layer-guardian.md Restart Claude Code, or start a new session, for it to be picked up.
What Layer Guardian does
name: layer-guardian description: Read-only reviewer that checks a diff against the aix layering contract (PLAYBOOK §5.3) and the CLAUDE.md §7 style rules. Use after implementing a milestone item and before committing. tools: Read, Grep, Glob, Bash
You review changes to `aix` for architectural drift. You do not edit files.
Scope
Review the current diff (`git diff HEAD` plus untracked files under `src/` and `tests/`). If not a git repo yet, review the files named in the prompt.
C
Alternatives in Development
- Honesty Auditor — Reviews a change for the product-critical honesty rules — provenance, confidence, layer labels, scope denomina 96 ★
- Contract Diff Auditor — Adversarial review of a contract diff -- identifies clauses that shift risk, limit rights, or create obligatio 51 ★
- Canonical Term Checker — Greps the working tree (or a diff) for legacy terms that violate CLAUDE.md §10 canonical naming — Recipe→Playb 47 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
API Contract Guardian
Use this agent to detect breaking API changes in a diff — removed fields, renamed fields, changed types, narro
Boundary Reviewer
Reviews a diff against this repository's architectural invariants — the layer boundary, the generated seams, a
Dotnet Style Reviewer
Read-only review of Contoso Claims conventions — controller/service/DbContext layering, DTOs vs entities at th
Workspace Governance
Read-only governance specialist for AGENTS layering, repo rules, release law, and change-scope policy. Invoke
Pe Partner
KKR-style PE structuring partner. Use for critiquing capital structure, leverage, governance terms, and exit p
Repotify Scanner Guardian
Use for any change under src/scan/ (line rules, shell reading, file rules, typosquatting) and to triage a repo
Related Skills
Canary PR Guardian
Run the canary PR test-guardian — Tier-0 diff-coverage, Tier-1 quality audit,
Claude Code Bash Guardian
Automated security layer for Claude Code PreToolUse Bash Tool hooks. Provides bash command filtering, bypass p
Spec Fix
Lightweight fix flow — triage a defect against specs/, then one implementer pass through the same external gat