clean-architecture

Validate dependency rules and layer boundaries for Clean Architecture compliance.

Updated Dec 28, 2025
One-click install
npx skills add https://github.com/DevXoje/gerocare --skill clean-architecture-devxoje
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clean-architecture
Source: https://github.com/DevXoje/gerocare/tree/main/.cursor/skills/clean-architecture
Command: npx skills add https://github.com/DevXoje/gerocare --skill clean-architecture-devxoje

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides guidance to validate and enforce architectural boundaries, helping teams ensure code adheres to Clean Architecture by validating dependencies and layer rules.

Core Features & Use Cases

  • Architectural governance: validate dependencies across layers and detect violations that breach the architecture.
  • Compliance guidance: provide a clear reference for allowed imports and layer interactions during refactors and audits.
  • Quick-reference and decision guidance: decision trees and rules to help engineers determine where code should reside and how to structure modules.

Quick Start

Run the architecture validation workflow to validate structure and dependencies, and consult the documentation for remediation steps.

Frequently Asked Questions about clean-architecture

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

FAQPage Schema
How do I validate Clean Architecture boundaries and check for dependency violations?

You can validate Clean Architecture by running dependency-cruiser to check for dependency violations and enforce layer rules. This provides architectural governance by detecting imports that breach boundaries during refactors or audits.

What is the best way to enforce dependency rules during a codebase refactor?

Enforcing dependency rules during a refactor involves applying dependency-cruiser validation to detect boundary breaches and ensure compliance. This provides clear reference rules for allowed imports and layer interactions to guide your refactoring.

Can I use dependency-cruiser to ensure Clean Architecture compliance in my project?

Yes, dependency-cruiser can ensure Clean Architecture compliance by running dependency validation commands like npm run analyze:deps:validate. This verifies dependencies against layer rules to detect and prevent architectural violations.

How do I determine where code should reside when following Clean Architecture rules?

You determine where code should reside by consulting decision trees and compliance guidance that define allowed layer interactions. This helps structure modules correctly and ensures dependencies adhere to Clean Architecture rules.

Does architecture validation work for feature development or only for full architecture audits?

Architecture validation applies to both feature development and full architecture audits. It continuously enforces dependency rules and compliance, detecting boundary violations whenever new code is added or existing modules are refactored.