From lattice
Enforces architectural rules (layer responsibilities, dependency direction, structure) when generating or reviewing code. Supports clean/hexagonal/onion/monolith architectures via loaded rule sets.
How this skill is triggered — by the user, by Claude, or both
Slash command
/lattice:architectureThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Step 1 — Determine mode:**
Step 1 — Determine mode:
.lattice/config.yaml in repo rootarchitecture_mode key
architecture_mode: custom → custom modeStep 2 — Load enforce rule:
./references/clean-architecture.md for enforce instruction (Self-Validation Checklist, Anti-Pattern Scan, Ambiguity Signals, structural principles)./references/custom-architecture.md for enforce instructionStep 3 — Load architecture content:
Clean architecture mode:
paths.architecture in .lattice/config.yaml for custom docmode:
mode: overlay: Read ./references/clean-architecture-defaults.md first, then apply custom doc section on top. Section match by heading — custom section replace matching default, new section append.mode: override: Custom doc take full precedence. Must be comprehensive../references/clean-architecture-defaults.mdCustom mode:
paths.architecture in .lattice/config.yaml for team architecture doc/architecture-refiner and select your architecture style to define your team's standards."Step 4 — Language adaptation:
If paths.language_idioms exist in config, read "Dependency Management" section and adapt dependency direction enforcement to language idioms (e.g., Go interface-at-consumer, Java DI containers, Rust trait bounds). Language idioms take precedence over pseudocode defaults.
STOP after generate each component. Read Self-Validation Checklist and Anti-Pattern Scan from loaded enforce rule (clean-architecture.md or custom-architecture.md) and apply.
Project-specific checks: If architecture content doc (loaded in Step 3) contains a Validation Checklist section (§6), apply those checks as additional project-specific validation after the enforce rule checklist.
npx claudepluginhub techygarg/lattice --plugin latticeGuides structured conversations to define repository architecture principles in clean (default), hexagonal/ports & adapters, modular monolith, or custom styles. Produces formal architecture.md document for project standards.
Enforces clean architecture patterns, backend layer separation, project structure validation, test standards, and context-aware right-sizing for scalable systems.
Reviews code for clean architecture compliance, evaluating cohesion (REP, CRP, CCP), coupling (ADP, SDP, SAP), and quality attributes (maintainability, extensibility, testability). Use when assessing new or modified code architecture.