In short.
Lattice Architecture is a skill for developers using AI coding assistants to generate and review code, but it relies on the assistant to perform each architectural check. Its default separates business rules from technical infrastructure, routes ordinary reads through Providers, and uses domain objects and Repositories for state-changing operations. It also reviews proposed designs and supports team-defined standards. These are documented behaviors; nothing was executed, and compatibility, reliability and operating costs are unknown.
Researched and written by an AI model and checked by a second AI model. How it works
Covers the complete supplied skills/architecture folder at commit a772470df20aebdbfd9fa32c435901a876a750f0: SKILL.md, references/clean-architecture-defaults.md, references/clean-architecture.md and references/custom-architecture.md, plus the repository-root LICENSE outside that folder. Other Lattice skills, architecture-refiner, collaborative-judgment, project configuration and team documents are outside this scope. Nothing was executed. Installation, assistant compatibility, enforcement reliability, performance and operating costs remain unassessed or unknown.
The overview
Identity
The resource is the architecture skill in techygarg/lattice, consisting of SKILL.md and three reference documents. It supplies instructions and pseudocode for an AI assistant rather than a standalone application or executable architecture checker.
The original source folder is [https://github.com/techygarg/lattice/tree/main/skills/architecture]. The supplied snapshot identifies commit a772470df20aebdbfd9fa32c435901a876a750f0; this report concerns that version.
Assessment
The strongest fit is a team that wants an AI assistant to apply explicit architectural conventions during coding and design discussions. The references turn broad principles into concrete checks for dependency direction, layer placement, data boundaries and misplaced business logic.
Its defaults are opinionated. Ordinary reads bypass domain objects, writes use domain-facing Repositories, and one application service handles both flows. Teams should assess those choices against their existing architecture. No evidence establishes that assistants consistently perform the prescribed reviews.
Users
Developers generating or changing application code can use it to give an assistant clearer structural expectations. Technical leads can supply team standards, while reviewers can use its checklists to discuss proposed components and dependency boundaries.
Beginners receive examples distinguishing request handlers, workflow coordination, business rules and technical infrastructure. Experienced developers receive configurable rules and explicit command/query patterns. The material still assumes familiarity with concepts such as interfaces, dependency injection and data mapping.
Capabilities
The skill directs an assistant to check each generated component for correct layer placement, inward source dependencies, appropriate read/write flow and boundary data. Its anti-pattern scan covers business logic in controllers, domain code coupled to infrastructure, oversized classes, circular dependencies and exposed domain entities.
Design mode applies the same checks to proposed component lists, layer assignments, data flows or contracts before implementation. Custom mode uses the team's architecture document; clean mode supports overlays, full replacements and language-specific dependency guidance.
Using it
Requirements
The instructions assume an AI coding environment that can load the skill, read repository files and resolve its relative references. Configuration is read from .lattice/config.yaml at the repository root. Supported assistants, model versions, operating systems and installation requirements are not established by these files.
Custom mode needs a team architecture document at paths.architecture. Optional language adaptation reads the Dependency Management section of the document at paths.language_idioms. The referenced /architecture-refiner and framework:collaborative-judgment companions are outside this folder, so their availability and requirements are unknown.
Mechanism
The architecture_mode value selects custom mode only when set to custom; an absent or other value selects clean mode. Clean mode loads a fixed enforcement checklist and architecture content. A team document defaults to overlay behavior, replacing sections with exactly matching headings and appending new sections. Setting its frontmatter mode to override replaces the default content entirely.
Custom mode treats the team's document as the architectural standard. If its Validation Checklist is missing, the skill specifies a warning and four fallback checks covering placement, dependencies, boundary data and separation of concerns. Missing Anti-Patterns content also triggers a warning. These mechanisms are instructions for assistant judgment, not executable assertions.
Setup
Keep SKILL.md with its references directory so the documented relative paths remain available. The revision-specific folder is [https://github.com/techygarg/lattice/tree/a772470df20aebdbfd9fa32c435901a876a750f0/skills/architecture]. No host-specific installation command is supplied.
For clean mode, use the bundled defaults or configure paths.architecture with an overlay or comprehensive replacement document. For a different architecture, set architecture_mode to custom and provide the team document. A missing configured document produces a fallback to defaults in clean mode, while custom mode reports the missing standard and points to /architecture-refiner.
Example
The supplied UserService pseudocode illustrates two paths. Registration constructs a domain User containing business behavior and saves it through a Repository. Fetching a user instead asks a Provider for a DAO, a record shaped like database data, and converts it to a response DTO, a record shaped for the API consumer.
The response mapping explicitly selects fields and excludes passwordHash and internalFlags. This demonstrates the intended separation between storage details and public responses. It is a source example, not an executed application or verified security result.
Assessment & evidence
Limitations
The supplied folder contains no executable dependency checker or integration that blocks invalid code. Its effectiveness depends on document loading, interpretation and assistant compliance. Real-project accuracy, false positives, supported languages and performance are not assessed.
There is a tension in the defaults: Providers may be concrete infrastructure classes used by application services, while the enforcement rules require source dependencies to point inward. An application-layer Provider interface appears to resolve that tension, but that is an interpretation, not a tested result.
Custom-mode specificity depends on the completeness of the team's document. Missing sections lead to warnings or reduced fallback checks; comprehensive style-specific coverage is therefore not guaranteed.
Reasoning
The documented rationale is isolation: business rules should remain independent of frameworks, databases and external services. Inner layers define interfaces when they need outer-layer behavior, allowing source dependencies to remain inward even when runtime calls travel outward.
The default read path avoids constructing domain objects when no business invariant needs enforcement. Reads that do require domain rules are explicitly allowed to use the domain-oriented flow. These are architectural arguments supplied by the resource; no benchmark demonstrates a speed or maintainability improvement.
Alternatives
The documented alternatives within the skill are the bundled clean defaults, a team overlay, a complete clean-mode replacement and custom mode. An overlay retains unchanged default sections; a replacement requires a comprehensive document; custom mode supplies no default architectural style.
No named competing tool, migration comparison or comparative result is supplied. Teams seeking automated enforcement would need to assess separate tooling; compatibility with such tooling is unknown.
Evidence
The available source contains the skill entry file, clean architecture defaults, clean enforcement rules, custom enforcement rules and the repository licence. Together they establish the intended configuration and review behavior, but provide no execution traces, compatibility results or effectiveness measurements.
The unchanged entry file is available at [https://raw.githubusercontent.com/techygarg/lattice/a772470df20aebdbfd9fa32c435901a876a750f0/skills/architecture/SKILL.md]. Its three reference documents are necessary to preserve the documented behavior; the entry file alone does not contain the complete rules.
Access & freshness
Costs
The MIT licence grants software permissions free of charge, but the architecture files provide no assistant subscription prices, API rates, token measurements or deployment costs. Total operating cost is unknown and depends on the chosen coding environment and usage. No cost or performance measurements were produced.
Rights
The repository MIT licence names Rahul Garg as the 2026 copyright holder. It permits use, copying, modification, publication, distribution, sublicensing and sale, provided the copyright and permission notices accompany copies or substantial portions. It also disclaims warranties and liability.
The captured notice is available at [https://raw.githubusercontent.com/techygarg/lattice/a772470df20aebdbfd9fa32c435901a876a750f0/LICENSE]. Copies of the skill and reference documents should retain that notice.
Freshness
The supplied snapshot was captured on 16 November 2026 at 13:32:09.809 UTC and identifies commit a772470df20aebdbfd9fa32c435901a876a750f0. The capture time does not establish when the source was last edited. A release number, commit date, later changes and current assistant compatibility are unknown.
Actions
Before adopting it, compare the default Repository/Provider split with the project's actual read and write requirements. Resolve Provider interface ownership explicitly, and choose an overlay, replacement or custom document where the defaults differ from team practice.
Confirm that the chosen assistant loads all reference files, then evaluate its findings on a representative component and proposed design. Inspect actual imports and boundary mappings independently before relying on a claimed pass. Acquire the complete revision-specific folder and retain the MIT notice. These are recommended next steps; none was performed here.
