New advertisers: 50% off your first month with code FIRSTMONTHSee slots
pproenca avatar

Clean Architecture

Structured rulebook of 42 Clean Architecture rules spanning dependency direction, entities, and testing architecture.

skills.sh installs
2.1K
GitHub stars
227
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers 8 prioritized categories, from CRITICAL dependency direction and entity design down to LOW-MEDIUM testing architecture
  • Includes a quick-reference index linking each rule to its own file, with prefixes such as dep-, entity-, and bound-
  • Enforces inward-only source dependencies, framework-free domain layers, and entities that stay unaware of persistence
  • Designed for reviewing code structure, designing new systems, and refactoring coupled applications toward cleaner boundaries

Install

$ npx -y skills add pproenca/dot-skills --skill clean-architecture -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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

PriorityCategoryImpactPrefix
1Dependency DirectionCRITICALdep-
2Entity DesignCRITICALentity-
3Use Case IsolationHIGHusecase-
4Component CohesionHIGHcomp-
5Boundary DefinitionMEDIUM-HIGHbound-
6Interface AdaptersMEDIUMadapt-
7Framework IsolationMEDIUMframe-
8Testing ArchitectureLOW-MEDIUMtest-

Quick Reference

1. Dependency Direction (CRITICAL)

Details

Repository
github.com/pproenca/dot-skills
Categories
Code Review & Quality, Backend & APIs

More from pproenca/dot-skills

All 100

Similar to Clean Architecture

More Code Review & Quality