返回 Skill 列表
extension
分类: 开发与工程无需 API Key

jb-refine-code

在最近的更改后,执行一次专注于简化代码的重构。当用户请求进行重构/清理、简化或移除死代码,并期望通过构建/测试来验证行为时使用。

person作者: jakexiaohubgithub

Refactor Pass

Workflow

  1. Review the changes just made and identify simplification opportunities.
  2. Apply refactors to:
    • Remove dead code and dead paths.
    • Straighten logic flows.
    • Remove excessive parameters.
    • Remove premature optimization.
  3. Run build/tests to verify behavior.
  4. Identify optional abstractions or reusable patterns; only suggest them if they clearly improve clarity and keep suggestions brief.