clean-architecture

pproenca/dot-skills · updated Apr 8, 2026

$npx skills add https://github.com/pproenca/dot-skills --skill clean-architecture
0 commentsdiscussion
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,
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-
3 Use Case Isolation HIGH usecase-
4 Component Cohesion HIGH comp-
5 Boundary Definition MEDIUM-HIGH bound-
6 Interface Adapters MEDIUM adapt-
7 Framework Isolation MEDIUM frame-
8 Testing Architecture LOW-MEDIUM test-

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

File Description
references/_sections.md Category definitions and ordering
assets/templates/_template.md Template for new rules
metadata.json Version and reference information

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.765 reviews
  • Diego Thomas· Dec 28, 2024

    clean-architecture is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Kiara Zhang· Dec 28, 2024

    clean-architecture fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Daniel Ndlovu· Dec 8, 2024

    clean-architecture fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Kiara Yang· Dec 4, 2024

    clean-architecture reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Rahul Santra· Nov 27, 2024

    clean-architecture fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Diego Anderson· Nov 23, 2024

    Registry listing for clean-architecture matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Kiara Chen· Nov 19, 2024

    Keeps context tight: clean-architecture is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Kiara Menon· Nov 19, 2024

    clean-architecture has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Advait Diallo· Nov 15, 2024

    clean-architecture fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Pratham Ware· Oct 18, 2024

    clean-architecture has been reliable in day-to-day use. Documentation quality is above average for community skills.

showing 1-10 of 65

1 / 7