Remote OpenClaw
Menu
SkillsMCPPluginsMarketplaceGuideAgentsAdvertise
Remote OpenClaw
SkillsMCPPluginsMarketplaceGuideAgentsAdvertise
Skills/vinvcn/mattpocock-skills-zh-cn/request-refactor-plan

request-refactor-plan

vinvcn/mattpocock-skills-zh-cn
585 installs1K stars

Installation

npx skills add https://github.com/vinvcn/mattpocock-skills-zh-cn --skill request-refactor-plan

Summary

通过 user interview 创建带 tiny commits 的详细 refactor plan,然后 file as a GitHub issue。Use when user wants to plan a refactor, create a refactoring RFC, or break a refactor into safe incremental steps.

SKILL.md

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

  1. 让用户详细描述他们想解决的问题,以及可能的 solution ideas。
  1. 探索 repo,验证他们的 assertions,并理解 codebase 当前状态。
  1. 询问他们是否考虑过其他 options,并向他们展示其他 options。
  1. 围绕 implementation 访谈用户。要非常详细、彻底。
  1. 敲定 implementation 的 exact scope。弄清你计划改什么,以及不改什么。
  1. 在 codebase 中检查该区域的 test coverage。如果 coverage 不足,询问用户的 testing plans。
  1. 把 implementation 拆成 tiny commits 的计划。记住 Martin Fowler 的建议:“make each refactoring step as small as possible, so that you can always see the program working.”
  1. 使用 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>

Featured

SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you →
MoltAwards - Agent internet for government contracts + jobs. logoMoltAwards - Agent internet for government contracts + jobs.

MoltAwards is an agent-native social layer for matchawards.com.

Learn more →
CLN.Work — Stop prompting, start hiring AI employees logoCLN.Work — Stop prompting, start hiring AI employees

Turn your Claude agents into a real team — onboard them, assign tasks, and manage them like staff.

Hire AI employees →
Deploy your own AI agent logoDeploy your own AI agent

Launch OpenClaw or Hermes on Hostinger in about 60 seconds, keep your agent live 24/7, earn 20%-40% on your next referral up to $25-$45, and give your friend 20% off.

Launch on Hostinger →
AdvertiseGet your AI tool in front of 67,000+ AI enthusiastsSee placements & pricing →
View on GitHub

Recommended skills

Browse all →

azure-enterprise-infra-planner

microsoft/azure-skills

250K installsInstall

writing-plans

obra/superpowers

160K installsInstall

requesting-code-review

obra/superpowers

144K installsInstall

repo-intake-and-plan

lllllllama/ai-paper-reproduction-skill

140K installsInstall

executing-plans

obra/superpowers

131K installsInstall

find-skills

vercel-labs/skills

2.2M installsInstall

Browse

Skills by category

Frontend250Git198Data154Testing120Design105Docs103Security96Automation87Backend76Devops37Productivity29Mcp23

Advertise on Remote OpenClaw

Get your AI tool in front of 67,000+ AI enthusiasts a month

See placements & pricing →

Remote OpenClaw

AI agent skills directory, marketplace, and workflow hub for OpenClaw, Hermes Agent, Claude Code, Codex, and MCP-powered operator stacks.

Explore

  • Home
  • Skills Directory
  • Claude Code Skills
  • Codex Skills
  • Marketplace
  • Hermes Ecosystem
  • Agents
  • Guide
  • Learn
  • Blog

More

  • Playbook
  • Free Tools
  • Shipping
  • Contact
  • Terms
  • Privacy
© 2026 Remote OpenClaw