Clean Architecture Refactor

Refactors codebases toward clean architecture boundaries and dependency direction. Use when services mix domain, application, and infrastructure concerns.

jaypalsolanki Updated

File contents

Clean Architecture Refactor

Workflow

  1. Map current layers and identify dependency violations.
  2. Define target boundaries (Web, Application, Domain, Infrastructure).
  3. Extract interfaces/ports and move implementations outward.
  4. Isolate domain logic from frameworks and persistence details.
  5. Propose incremental migration slices with risk notes.

Output template

## Boundary violations
- Item:

## Refactor slices
1. Slice, impact, rollback
2. Slice, impact, rollback

jaypalsolanki/cursor-rules-skills-commands/tree/main/Skills/clean-architecture-refactor commit 4946a2b714

Frequently asked questions

npx skillmds@latest add jaypalsolanki/clean-architecture-refactor