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
- Fix boundary leaks before cosmetic changes.
- Preserve behavior unless explicitly requested otherwise.
- Keep refactor scope minimal and test-supported.
04 同仓库更多 Skills
实施计划编写
writing-plans
当你已有多步骤任务的规格说明或需求时,在动手编写代码之前使用。
★ 0
清晰简洁写作
writing-clearly-and-concisely
暂无简介
★ 0
代码变更验证
verify_changes
暂无简介
★ 0
模块结构验证
validate_module_structure
暂无简介
★ 0
Git Worktree 隔离工作区
using-git-worktrees
当开始需要与当前工作区隔离的功能开发工作时,或在执行实施计划之前使用——通过原生工具或 git worktree 回退方案确保存在隔离的工作区。
★ 0
UI/UX 设计优化
ui-ux-pro-max
暂无简介
★ 0