mattpocock/skills

request-refactor-plan

通过访谈和代码核实形成详细重构计划,把每步设计为尽可能小且保持程序可工作的提交,并写入GitHub issue。它规划怎样改,不在这个流程中直接实施所有重构。

  • 历史版本 SKILL.md
  • 中文用法已整理
  • 安装与运行未实测
先判断是否解决你的问题

request-refactor-plan 是什么?

通过访谈和代码核实形成详细重构计划,把每步设计为尽可能小且保持程序可工作的提交,并写入GitHub issue。它规划怎样改,不在这个流程中直接实施所有重构。

中文说明由本站依据来源整理;英文原文保留在页面下方。

按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

    打开本项目来源,核对 SKILL.md 及其引用的脚本和资料。

  2. 交给你正在用的 Agent

    在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。

  3. 确认识别,再做具体任务

    让 Agent 回报安装目录和识别到的名称 request-refactor-plan,然后按本页使用示例提供材料。

展开并复制给 Codex 的安装指令
发送给 Codex

安装并检查 request-refactor-plan

请在 Codex 的当前工作环境中安装并检查 request-refactor-plan 这个 Skill。

项目身份:mattpocock/skills / request-refactor-plan
来源:https://github.com/mattpocock/skills/blob/62f43a18177be6ec82da242e59ffbc490a4c22ea/skills/deprecated/request-refactor-plan/SKILL.md
已定位的源文件:skills/deprecated/request-refactor-plan/SKILL.md

1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。
准备输入,再按步骤执行

装好以后,具体怎么用?

准备哪些材料

  • 给出重构要解决的开发问题、已有想法和真实仓库,若要发布需能访问GitHub Issues。

会得到什么

  • 包含增量提交顺序和验证决定的重构计划,可发布为GitHub issue。

实际使用顺序

  1. 核实你描述的代码现状,比较其他方案,再确定改与不改的范围。
  2. 检查相关测试覆盖,明确缺失部分怎样验证,然后把实施拆成每步仍能运行的小提交。
  3. 整理问题、方案、提交计划、决定、测试与范围外事项,按授权创建GitHub issue;不以容易过时的具体路径代替设计决定。
使用示例

从一个具体任务开始

本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。

安装并识别 Skill 后发送

复制一个具体任务

教学示例:用request-refactor-plan规划拆分Skills渲染器。先读现状和测试,比较保留单文件与拆模块的收益,明确不改页面行为。拆成每步可运行的提交计划,只写本地草稿,不发issue或改代码。
预期结果

预期有可评审的增量重构路线与验证依据;本例未运行。

使用前先看这些限制

使用条件与边界

  • 历史源文只写GitHub发布方式,不能由此推断已支持任意工单系统。
  • 没有现有测试覆盖时必须明确补证据,不能宣称每步保持正确已被证实。
需要核对时再展开原文

来源原文与资料状态

来源版本
历史源文件(2026-04-28T09:42:34+01:00);原目录已变更,本页解释所链接的历史版本,不代表当前安装方式。
源文件
已保存 SKILL.md,抓取于 2026-11-17T10:52:12.293Z
中文使用说明
已针对下方源文件版本整理用途、用法和常见问题
安装与任务测试
本站未执行安装或任务测试
来源复核
本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
展开 SKILL.md 原文、章节与历史收录资料

skills/deprecated/request-refactor-plan/SKILL.md · 抓取时间 2026-11-17T10:52:12.293Z

以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。

抓取成功不代表已完成安装或任务测试。

来源 description(原文)

Create a detailed refactor plan with tiny commits via user interview, then file it as a GitHub issue. Use when user wants to plan a refactor, create a refactoring RFC, or break a refactor into safe incremental steps.

查看源文件章节 / Source sections
  • 原文:Problem Statement
  • 原文:Solution
  • 原文:Commits
  • 原文:Decision Document
  • 原文:Testing Decisions
  • 原文:Out of Scope
  • 原文:Further Notes (optional)
原文:正文开头

This skill will be invoked when the user wants to create a refactor request. You should go through the steps below. You may skip steps if you don't consider them necessary. 1. Ask the user for a long, detailed description of the problem they want to solve and any potential ideas for solutions. 2. Explore the repo to verify their assertions and understand the current state of the codebase. 3. Ask whether they have considered other options, and present other options to them. 4. Interview the user about the implementation. Be extremely detailed and thorough. 5. Hammer out the exact scope of the implementation. Work out what you plan to change and what you plan not to change. 6. Look in the codebase to check for test coverage of this area of the codebase. If there is insufficient test coverage, ask the user what their plans for testing are. 7. Break the implementation into a plan of tiny commits. Remember Martin Fowler's advice to "make each refactoring step as small as possible, so that you can always see the program working." 8. Create a GitHub issue with the refactor plan. Use the following template for the issue description: <refactor-plan-template>

原文:Problem Statement

The problem that the developer is facing, from the developer's perspective.

原文:Solution

The solution to the problem, from the developer's perspective.

原文:Commits

A LONG, detailed implementation plan. Write the plan in plain English, breaking down the implementation into the tiniest commits possible. Each commit should leave the codebase in a working state.

原文:Decision Document

A list of implementation decisions that were made. This can include: - The modules that will be built/modified - The interfaces of those modules that will be modified - Technical clarifications from the developer - Architectural decisions - Schema changes - API contracts - Specific interactions Do NOT include specific file paths or code snippets. They may end up being outdated very quickly.

原文:Testing Decisions

A list of testing decisions that were made. Include: - A description of what makes a good test (only test external behavior, not implementation details) - Which modules will be tested - Prior art for the tests (i.e. similar types of tests in the codebase)

文件 SHA256:d59de4ba6cc1fe2dd267e8b9b5a1fd88e3e739e2130bc9dd78061d2a072830b8

仓库许可证记录:未提供;not-established,查看来源。

Skills.sh收录简介 · 2026-07-28

Create a detailed refactor plan with tiny commits via user interview, then file it as a GitHub issue. Use when user wants to plan a refactor, create a…

查看历史简介来源

这份历史简介在采集时已截断;完整用途和触发条件需打开来源核对。

历史收录数据

Skill标识request-refactor-plan
来源仓库mattpocock/skills
榜单快照2026-07-28
榜单口径Skills.sh累计安装量
快照名次132
快照累计安装量180793

历史资料说明

  • 所保留的来源简介在采集时已截断;完整触发条件、依赖及排除项须阅读源文件,本站不补写缺失部分。
  • 安装量用于说明当时的收录次序,不是效果、可信度或当前可用性的证明。

此页用于识别项目与来源。安装入口可在该Skill的Skills.sh页面查看;当前目录是否仍存在、附带脚本和账户依赖尚需按具体版本确认。

返回 Skills 目录,按任务继续筛选 · MCP与Skills教程与资源