enforcement

Enforce 4-layer module structure and dependency rules during PR reviews.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Enforcement Skill provides centralized guardrails to ensure architectural integrity, code quality, and adherence to best practices across modules.

Core Features & Use Cases

  • Enforces a 4-layer module structure (domain, infrastructure, application, ui)
  • Validates a provider factory pattern and dependency rules (CONFIG.SERVICE_PROVIDER)
  • Standardizes error handling patterns, naming conventions, and cross-cutting enforcement
  • Used during module creation, PR reviews, and architecture audits to prevent drift

Quick Start

Implement or review enforcement guardrails when creating or updating feature modules to maintain consistency.

Frequently Asked Questions about enforcement

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

FAQPage Schema
How do I enforce clean architecture dependency rules during PR reviews?

You can enforce architectural integrity during PR reviews by validating the 4-layer module structure (domain, infrastructure, application, ui) and checking dependency rules. This Skill applies provider-agnostic factory patterns and mandates T | Error returns to prevent structural drift.

What is the best way to standardize error handling patterns across feature modules?

The best way to standardize error handling patterns across feature modules is to enforce T | Error return types and apply centralized guardrails. This Skill ensures all feature modules adopt consistent error handling conventions and standardized naming during module creation and audits.

How does the provider-agnostic factory pattern work with CONFIG.SERVICE_PROVIDER?

The provider-agnostic factory pattern works by using CONFIG.SERVICE_PROVIDER to inject dependencies without coupling to specific implementations. This Skill validates the factory pattern during architectural audits to ensure dependency rules and clean architecture boundaries are maintained across modules.

Can I use architectural enforcement for module creation and code quality audits?

Yes, you can use architectural enforcement for module creation, PR reviews, and code quality audits. This Skill provides centralized guardrails that validate the 4-layer structure, enforce naming conventions, and check cross-cutting enforcement rules to ensure adherence to best practices.

Why does my module structure fail architectural integrity checks?

Your module structure fails architectural integrity checks when it violates the mandated 4-layer layout (domain, infrastructure, application, ui) or breaks dependency rules. This Skill identifies non-compliant cross-cutting patterns, missing provider factory implementations, and incorrect T | Error return types.