AGENT SKILL

clean-architecture

Enforce Clean Architecture rules and Deep Modules design. Use when structuring code, creating new classes, or defining boundaries.

License 许可
MIT
最近更新
2026-07-19
Stars
★ 0
Forks
0

01 前言 Front Matter

name
clean-architecture
description
Enforce Clean Architecture rules and Deep Modules design. Use when structuring code, creating new classes, or defining boundaries.

03 SKILL.md 正文

Clean Architecture & Deep Modules

  1. Dependency Rule: Inner layers (Domain) MUST NOT import anything from outer layers (Application, Infrastructure, UI). No frameworks in the Domain.
  2. Deep Modules: Design modules with narrow, stable interfaces hiding complex implementations. Avoid creating many small, shallow classes.
  3. AOP via SOLID: Implement cross-cutting concerns (logging, metrics) using Decorators in the Application layer, not scattered throughout the Domain.

04 同仓库更多 Skills