clean-architecture

Evaluate software modules for Clean Architecture dependency rule violations.

1|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/agnaldo4j/kanban-vision-api-kt --skill clean-architecture-agnaldo4j
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clean-architecture
Source: https://github.com/agnaldo4j/kanban-vision-api-kt/tree/main/.claude/skills/clean-architecture
Command: npx skills add https://github.com/agnaldo4j/kanban-vision-api-kt --skill clean-architecture-agnaldo4j

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses the challenge of maintaining long-term software maintainability by preventing tight coupling between business logic and technical infrastructure.

Core Features & Use Cases

  • Architectural Evaluation: Analyze existing modules, layers, and dependencies to ensure they adhere to the Dependency Rule.
  • Design Guidance: Provides a structured framework for creating decoupled layers (Entities, Use Cases, Adapters, Frameworks).
  • Use Case: Use this skill when refactoring a legacy service to ensure that database-specific logic or framework-specific annotations are properly isolated from the core domain logic.

Quick Start

Use the clean-architecture skill to evaluate the current dependency structure of the board module and identify any violations of the dependency rule.

Frequently Asked Questions about clean-architecture

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I refactor a legacy service to isolate database logic from domain logic?

Refactoring legacy services involves enforcing strict dependency boundaries to isolate database-specific logic and framework annotations from core domain logic. This ensures business rules remain independent of technical infrastructure through rigorous dependency inversion.

What is the dependency rule in clean architecture and how does it work?

The dependency rule in clean architecture mandates that dependencies point inward toward domain entities. It works by ensuring outer layers like frameworks and adapters depend on inner use cases, never the reverse, maintaining long-term software maintainability.

How do I evaluate my existing module layers for clean architecture compliance?

Evaluating module layers for clean architecture compliance requires analyzing existing modules and dependencies to verify adherence to the dependency rule. This process identifies tight coupling between business logic and technical infrastructure.

Can I use clean architecture with Kotlin and domain-driven-design?

Clean architecture works with Kotlin and domain-driven-design by providing a structured framework for creating decoupled layers. It facilitates domain entities, application use cases, and technical adapters while keeping business logic independent.

When do I need dependency inversion in software design?

Dependency inversion in software design is needed when preventing tight coupling between business logic and technical infrastructure. It becomes essential for maintaining long-term software maintainability as systems evolve and acquire framework dependencies.

What's the best way to structure decoupled layers for use cases and adapters?

The best way to structure decoupled layers is by separating domain entities, application use cases, and technical adapters. This design guidance ensures business logic remains independent of frameworks, databases, and UI implementations through dependency boundaries.