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

simple-refactor

建议进行小的重构以提高可读性,但不改变行为。当初级开发人员要求清理代码时使用。

person作者: jakexiaohubgithub

Simple Refactor

Purpose

Suggest small refactors that improve readability without changing behavior.

Inputs to request

  • Target file or function.
  • Known style guide or conventions.
  • Existing tests or coverage.

Workflow

  1. Identify duplication or overly long functions.
  2. Propose small extraction or naming improvements.
  3. Note how to validate behavior remains unchanged.

Output

  • Refactor steps and safe checkpoints.

Quality bar

  • Keep changes small and reversible.
  • Avoid altering public interfaces.