refactor-to-pattern
CommunityRefactor code to clean architecture patterns
Authorjovicon
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Refactor code to align with Clean Architecture and Domain-Driven Design patterns, turning messy implementations into well-structured, maintainable codebases.
Core Features & Use Cases
- Pattern-driven refactoring: Introduce domain boundaries, use cases, and value objects to replace anemic models and scattered logic.
- Controller-to-use-case migration: Move orchestration out of controllers and into dedicated use cases.
- Domain-centric validation: Promote validation within domain factories and entities to enforce invariants.
- Apply multiple patterns: Includes anemic-to-rich domain, primitive-obsession to value objects, and controller-logic-to-use-case migrations.
Quick Start
Run the refactor to pattern workflow on your NestJS project to replace anti-patterns with domain-driven design patterns.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: refactor-to-pattern Download link: https://github.com/jovicon/nestjs-clean-architecture-event-driven-template/archive/main.zip#refactor-to-pattern Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.