← ClaudeAtlas

architecture-clean-architecturelisted

Clean Architecture workflow for enforcing dependency direction, stable domain boundaries, and use-case-centered application design. Use when teams must separate business rules from frameworks and delivery mechanisms; do not use for isolated module cleanup without boundary implications.
planifest/planifest-framework · ★ 0 · AI & Automation · score 70
Install: claude install-skill planifest/planifest-framework
# Architecture Clean Architecture ## Overview Use this skill to structure systems so business rules remain stable while infrastructure and frameworks evolve. ## Scope Boundaries - Framework and infrastructure details are leaking into domain logic. - Dependency direction is inconsistent and change cost is rising. - Teams need explicit boundaries between use cases, adapters, and delivery layers. ## Core Judgments - Domain boundary: what business rules must stay framework-independent. - Use-case orchestration: what belongs in application services versus domain entities. - Dependency inversion points: where interfaces must isolate infra concerns. - Transaction and consistency scope: where atomicity belongs in the stack. ## Practitioner Heuristics - Domain layer should not import transport, ORM, queue, or UI frameworks. - Application layer coordinates workflows; domain layer owns business invariants. - For dynamic languages, define explicit data contracts (schema/types) at boundaries instead of passing untyped `any`/`object` payloads that force downstream casts. - Prefer narrow ports with stable semantics over generic "utility" interfaces. ## Workflow 1. Map current modules to domain, application, interface-adapter, and infrastructure responsibilities. 2. Identify dependency violations and hidden framework coupling in business rules. 3. Define or refine ports where infrastructure currently bleeds into domain logic. 4. Move orchestration responsibilities to application use cas