request-refactor-plan

Installation
SKILL.md

当用户想创建 refactor request 时调用此 skill。按以下步骤执行。你可以跳过你认为不必要的步骤。

  1. 让用户详细描述他们想解决的问题,以及可能的 solution ideas。

  2. 探索 repo,验证他们的 assertions,并理解 codebase 当前状态。

  3. 询问他们是否考虑过其他 options,并向他们展示其他 options。

  4. 围绕 implementation 访谈用户。要非常详细、彻底。

  5. 敲定 implementation 的 exact scope。弄清你计划改什么,以及不改什么。

  6. 在 codebase 中检查该区域的 test coverage。如果 coverage 不足,询问用户的 testing plans。

  7. 把 implementation 拆成 tiny commits 的计划。记住 Martin Fowler 的建议:“make each refactoring step as small as possible, so that you can always see the program working.”

  8. 使用 refactor plan 创建 GitHub issue。issue description 使用下面模板:

Installs
549
GitHub Stars
995
First Seen
May 28, 2026
request-refactor-plan — vinvcn/mattpocock-skills-zh-cn