architecture

Enforce architectural rules during code generation and review.

176|13|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/techygarg/lattice --skill architecture-techygarg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: architecture
Source: https://github.com/techygarg/lattice/tree/main/plugins/lattice/skills/architecture
Command: npx skills add https://github.com/techygarg/lattice --skill architecture-techygarg

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Enforce architectural governance during code generation and reviews to ensure designs align with defined architecture rules.

Core Features & Use Cases

  • Enforces architectural rules when generating or modifying code
  • Supports both clean architecture by default and team-defined custom architectures via the architecture-refiner
  • Validates layer responsibilities, dependency direction, and structural constraints against loaded rules
  • Triggers reviews when users mention keywords like architecture, layers, structure, or modular architecture

Quick Start

Run the architecture-refiner to apply your team’s architectural standards to the current project.

Frequently Asked Questions about architecture

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce clean architecture during code generation?

Clean architecture is enforced during code generation by defining and validating architectural rules that check layer responsibilities, dependency directions, and boundary constraints against loaded references.

Can I define custom architecture rules instead of using the default clean architecture?

Yes, custom architecture rules are supported. You can define team-specific architectural standards via the architecture-refiner, which validates structural constraints and layer responsibilities against your custom configuration.

How does architectural validation work for code reviews?

Architectural validation works during code reviews by loading appropriate references, determining the architecture mode, and validating dependency directions and layer responsibilities to ensure structural integrity across modified files.

When should I use an architecture refiner for my software design?

An architecture refiner should be used when generating code, creating files, or conducting reviews to prevent structural violations and ensure that dependency inversion and layer boundaries align with your defined software design.

Does the architecture refiner work without any external dependencies?

Yes, the architecture refiner operates without external dependencies, relying solely on loaded references to validate layer responsibilities and enforce structural constraints during code generation and review processes.