Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
vinvcn avatar

Request Refactor Plan

  • 1.9k installs
  • 2.8k repo stars
  • Updated July 27, 2026
  • vinvcn/mattpocock-skills-zh-cn

request-refactor-plan is a Claude Code skill that interviews the developer, explores the repository, and files a GitHub issue with a Fowler-style tiny-commit refactor plan for developers who want safe incremental refacto

About

request-refactor-plan is a Claude Code skill from vinvcn/mattpocock-skills-zh-cn that guides a structured refactor planning workflow before any code changes. It interviews the developer about the problem and solution ideas, explores the repo to verify assertions, surfaces alternative options, defines exact scope, checks test coverage, and breaks implementation into tiny commits following Martin Fowler's incremental refactoring advice. The final deliverable is filed as a GitHub issue with a detailed refactor RFC. Developers reach for request-refactor-plan when they want a safe, reviewable plan instead of jumping straight into large refactors.

  • Structured user interview: problem, solution ideas, and rejected alternatives before coding
  • Repo exploration step validates assertions against the current codebase state
  • Implementation split into the smallest possible commits that keep the app working (Martin Fowler style)
  • GitHub issue template: Problem Statement, Solution, Commits, Decision Document, Testing Decisions
  • Explicit in-scope vs out-of-scope boundary before the commit list is finalized

Request Refactor Plan by the numbers

  • 1,898 all-time installs (skills.sh)
  • +232 installs in the week ending Aug 2, 2026 (Skillselion tracking)
  • Ranked #255 of 3,280 Productivity & Planning skills by installs in the Skillselion catalog
  • Data as of Aug 3, 2026 (Skillselion catalog sync)
npx skills add https://github.com/vinvcn/mattpocock-skills-zh-cn --skill request-refactor-plan

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1.9k
repo stars2.8k
Last updatedJuly 27, 2026
Repositoryvinvcn/mattpocock-skills-zh-cn

How do you plan a safe incremental refactor?

Interview the developer, explore the repo, and file a GitHub issue with a Fowler-style tiny-commit refactor plan before anyone touches production code.

Who is it for?

Developers starting a non-trivial refactor who want a reviewed GitHub issue plan with Fowler-style incremental commits.

Skip if: Quick one-line fixes, greenfield features, or refactors that should ship immediately without planning.

When should I use this skill?

User wants to plan a refactor, create a refactoring RFC, or break a large change into safe incremental steps.

What you get

GitHub issue with scoped refactor RFC, tiny-commit implementation plan, and documented test coverage gaps.

  • GitHub refactor issue
  • tiny-commit plan
  • scope document

Files

SKILL.mdMarkdownGitHub ↗

当用户想创建 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 使用下面模板:

<refactor-plan-template>

Problem Statement

developer 面对的问题,从 developer 视角描述。

Solution

问题的 solution,从 developer 视角描述。

Commits

一份很长、详细的 implementation plan。用 plain English 写,把 implementation 拆到尽可能小的 commits。每个 commit 都应让 codebase 保持 working state。

Decision Document

已作出的 implementation decisions 列表。可以包括:

  • 将 build/modify 的 modules
  • 将 modify 的 module interfaces
  • 来自 developer 的 technical clarifications
  • Architectural decisions
  • Schema changes
  • API contracts
  • Specific interactions

不要包含具体 file paths 或 code snippets。它们可能很快过时。

Testing Decisions

已作出的 testing decisions 列表。包括:

  • 什么是好测试的描述(只测试 external behavior,不测试 implementation details)
  • 哪些 modules 会被测试
  • 测试的 prior art(即 codebase 中类似类型的 tests)

Out of Scope

本 refactor 范围外事项的描述。

Further Notes (optional)

关于 refactor 的其他 notes。

</refactor-plan-template>

Related skills

How it compares

Use request-refactor-plan before large refactors needing RFC-style planning; skip it for trivial edits that do not warrant a GitHub issue.

FAQ

What deliverable does request-refactor-plan produce?

request-refactor-plan produces a detailed refactor plan filed as a GitHub issue. The plan breaks implementation into tiny commits following Martin Fowler's incremental refactoring guidance and documents exact scope boundaries.

Does request-refactor-plan change code immediately?

request-refactor-plan does not jump into code changes. It interviews the developer, explores the repository, evaluates alternatives, checks test coverage, and only then files the scoped refactor plan as a GitHub issue.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.