clean-architecture

Installation
Summary

42 Clean Architecture rules organized by priority for designing maintainable, testable software systems.

  • Covers 8 rule categories from dependency direction and entity design (critical) through testing architecture (low-medium), each with specific guidance and code examples
  • Dependency rules enforce inward-pointing dependencies, interface ownership, and acyclic component graphs to prevent architectural decay
  • Entity and use case rules isolate business logic from frameworks, persistence, and presentation concerns through clear boundaries and explicit ports
  • Includes practical patterns like humble objects, anti-corruption layers, and partial boundaries for phased architectural improvements
SKILL.md

Clean Architecture Best Practices

Comprehensive guide to Clean Architecture principles for designing maintainable, testable software systems. Based on Robert C. Martin's "Clean Architecture: A Craftsman's Guide to Software Structure and Design." Contains 42 rules across 8 categories, prioritized by architectural impact.

When to Apply

Reference these guidelines when:

  • Designing new software systems or modules
  • Structuring dependencies between layers
  • Defining boundaries between business logic and infrastructure
  • Reviewing code for architectural violations
  • Refactoring coupled systems toward cleaner structure

Rule Categories by Priority

Priority Category Impact Prefix
1 Dependency Direction CRITICAL dep-
2 Entity Design CRITICAL entity-
Related skills

More from pproenca/dot-skills

Installs
1.4K
GitHub Stars
141
First Seen
Jan 24, 2026