From mattpocock-skills
Interviews user to plan a refactor, breaks implementation into tiny commits, and files a GitHub issue with a structured plan.
How this skill is triggered — by the user, by Claude, or both
Slash command
/mattpocock-skills:request-refactor-planThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
当用户想创建 refactor request 时调用此 skill。按以下步骤执行。你可以跳过你认为不必要的步骤。
当用户想创建 refactor request 时调用此 skill。按以下步骤执行。你可以跳过你认为不必要的步骤。
让用户详细描述他们想解决的问题,以及可能的 solution ideas。
探索 repo,验证他们的 assertions,并理解 codebase 当前状态。
询问他们是否考虑过其他 options,并向他们展示其他 options。
围绕 implementation 访谈用户。要非常详细、彻底。
敲定 implementation 的 exact scope。弄清你计划改什么,以及不改什么。
在 codebase 中检查该区域的 test coverage。如果 coverage 不足,询问用户的 testing plans。
把 implementation 拆成 tiny commits 的计划。记住 Martin Fowler 的建议:“make each refactoring step as small as possible, so that you can always see the program working.”
使用 refactor plan 创建 GitHub issue。issue description 使用下面模板:
developer 面对的问题,从 developer 视角描述。
问题的 solution,从 developer 视角描述。
一份很长、详细的 implementation plan。用 plain English 写,把 implementation 拆到尽可能小的 commits。每个 commit 都应让 codebase 保持 working state。
已作出的 implementation decisions 列表。可以包括:
不要包含具体 file paths 或 code snippets。它们可能很快过时。
已作出的 testing decisions 列表。包括:
本 refactor 范围外事项的描述。
关于 refactor 的其他 notes。
npx claudepluginhub vinvcn/mattpocock-skills-zh-cnInterviews the user to create a detailed, incremental refactor plan and files it as a GitHub issue. Useful for scoping safe, step-by-step refactoring work.
DEPRECATED. Guides creation of GitHub issues for refactoring plans with problem/solution, commits, and decisions. Only triggers on explicit `/request-refactor-plan`.
Plans structural refactors as ordered, commit-grain tasks with test-suite-green-at-every-step acceptance criteria. Use for extractions, renames, dependency-inversion, or any no-behaviour-change improvement.