AGENT SKILL

整洁架构重构

refactor_to_clean_architecture

当需要重构模块,使其依赖方向、职责和边界符合整洁架构(Clean Architecture)时使用。

License 许可
Apache-2.0
最近更新
2026-09-12
Stars
★ 0
Forks
0

01 前言 Front Matter

name
refactor_to_clean_architecture
risk
writes-files
family
architecture-contracts
profile
core
summary
Realign a module's dependency direction and boundaries, behavior preserved
maturity
stable
triggers
[ "refactor", "clean architecture", "dependency direction", "boundary violation", "layer leak", "decouple", "move logic out of" ]
visibility
internal
description
Use when refactoring modules to align dependency direction, responsibilities, and boundaries with clean architecture.
auto_trigger
true
small_model_path
false

03 SKILL.md 正文

Skill: refactor_to_clean_architecture

Purpose

Refactor existing modules to align with clean architecture boundaries.

Required Input

  • Current module(s) and pain points.
  • Target boundary violations to fix.
  • Non-functional constraints (time/risk/backward compatibility).

Output Format

  • Current vs target structure summary.
  • Ordered refactor plan.
  • File-level changes with rationale.
  • Risk list and rollback notes.

Execution Rules

  1. Fix boundary leaks before cosmetic changes.
  2. Preserve behavior unless explicitly requested otherwise.
  3. Keep refactor scope minimal and test-supported.

04 同仓库更多 Skills