mcpField
C
clean-architecture

clean-architecture

github.com/pproencaDevelopment2202.0k installsUpdated 11w ago
Repository

About clean-architecture

A Clean Architecture reference for software architects and developers, organizing rules by architectural impact to guide the design, review, and refactoring of maintainable, testable systems.

Key features

  1. 01Rules across eight architecture categories
  2. 02Rules prioritized by impact
  3. 03Guidance on dependencies and entity design
  4. 04Boundary, adapter, and framework isolation guidance
  5. 05Layered testing guidance

Use cases

  1. 01Plan a new system or module structure
  2. 02Review code for architectural violations
  3. 03Refactor systems with coupled layers

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/pproenca/dot-skills --skill clean-architecture

After installing, type/clean-architecturein Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

metadata.json
assets/templates/
_template.md
references/
_sections.md
adapt-anti-corruption-layer.md
adapt-controller-thin.md
adapt-gateway-abstraction.md
adapt-mapper-translation.md
adapt-presenter-formats.md
bound-boundary-cost-awareness.md
bound-defer-decisions.md
bound-humble-object.md
bound-main-component.md
bound-partial-boundaries.md
bound-service-internal-architecture.md
comp-common-closure.md
comp-common-reuse.md
comp-reuse-release-equivalence.md
comp-screaming-architecture.md
comp-stable-dependencies.md
dep-acyclic-dependencies.md
dep-data-crossing-boundaries.md
dep-interface-ownership.md
dep-inward-only.md
dep-no-framework-imports.md
dep-stable-abstractions.md
entity-encapsulate-invariants.md
entity-no-persistence-awareness.md
entity-pure-business-rules.md
entity-rich-not-anemic.md
entity-value-objects.md

Details

From the project README

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)
2. Entity Design (CRITICAL)
3. Use Case Isolation (HIGH)
4. Component Cohesion (HIGH)
5. Boundary Definition (MEDIUM-HIGH)
6. Interface Adapters (MEDIUM)
7. Framework Isolation (MEDIUM)
8. Testing Architecture (LOW-MEDIUM)

How to Use

Read individual reference files for detailed explanations and code examples:

Reference Files

FileDescription
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and reference information

Comments

Markdown supported