architecture

Enforce four-layer Clean Architecture rules across feature modules.

Updated Feb 27, 2026
One-click install
npx skills add https://github.com/alejandro-technology/react-native-template --skill architecture-alejandro-technology
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: architecture
Source: https://github.com/alejandro-technology/react-native-template/tree/main/.claude/skills/enforcement/architecture
Command: npx skills add https://github.com/alejandro-technology/react-native-template --skill architecture-alejandro-technology

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enforce Clean Architecture principles across the codebase to prevent architectural drift and ensure module boundaries.

Core Features & Use Cases

  • Define and enforce four-layer modular structure (domain, infrastructure, application, UI) for every feature module.
  • Validate cross-layer dependency rules to ensure inward-only dependencies.
  • Provide audit checklists and best practices for creating, reviewing, or auditing modules.

Quick Start

Run an architecture audit whenever you create or modify a feature module to ensure it adheres to the four-layer structure and dependency rules.

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 rules across feature modules?

Enforce Clean Architecture by applying a mandated four-layer module structure (domain, infrastructure, application, UI) and validating inward-only dependency directions during module creation, PR reviews, and audits to prevent architectural drift.

What is the correct module structure for Clean Architecture feature modules?

The correct module structure for Clean Architecture feature modules uses four layers: domain, infrastructure, application, and UI. This structure enforces strict dependency rules and naming conventions to prevent architectural drift across the codebase.

How do I prevent architectural drift during PR reviews?

Prevent architectural drift during PR reviews by validating cross-layer dependency rules to ensure inward-only dependencies. Apply architectural audit checklists to verify adherence to the four-layer module structure and naming conventions.

When do I need to run an architecture audit on my codebase?

Run an architecture audit whenever you create or modify a feature module. The audit validates cross-layer dependency rules, checks the four-layer structure, and ensures module boundaries and naming conventions adhere to Clean Architecture principles.

Can I use this to validate cross-layer dependency rules for module boundaries?

Yes, you can validate cross-layer dependency rules by enforcing inward-only dependencies across the domain, infrastructure, application, and UI layers. This ensures module boundaries remain intact and prevents architectural drift.

What are the limitations of enforcing a four-layer module structure?

Enforcing a four-layer module structure requires strict adherence to the domain, infrastructure, application, and UI layers. Modules that do not fit this architecture or require complex cross-cutting concerns may face constraints when validating dependency directions and naming conventions.