来源信息
- 仓库
- sunpar/agentic_development
- 最近来源活动
- 2026年5月22日 15:56
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 0
- 分支
- 0
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- refactor-simplify
- description
- Perform behavior-preserving simplification and cleanup after green tests.
# Refactor Simplify
## Trigger
Use when requested refactor is readability/DRY/removal of repeated abstraction.
## Inputs
- Task/task set and green baseline test evidence.
## Outputs
- Refactored code with no behavior regression.
- Updated/added characterization tests if necessary.
## Procedure
1. Confirm baseline is green.
2. Identify duplicate abstractions, verbose wrappers, and repeated boilerplate.
3. Refactor only local scope.
4. Keep public behavior unchanged.
## Guardrails
- No behavior change unless explicitly requested.
- Preserve API/shape.
## Success criteria
- Equivalent behavior verified by rerun of baseline suite.
## Prefer Superpowers
- Use `refactor` patterns only and ask `writing-plans` only when scope is large.
## Avoid scope creep
- Do not introduce new architecture in simplification pass.
在 GitHub 查看