界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
开发与工程 · SKILL.md

skill-149

skill-149

【开发与工程】Suggest small refactors that improve readability without changing behavior. Use when a junior developer asks to clean up code.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: skill-149 description: "Suggest small refactors that improve readability without changing behavior. Use when a junior developer asks to clean up code."

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.
我的收藏