request-refactor-plan

Create a detailed refactor plan with tiny commits and file it as a GitHub issue.

Updated Apr 6, 2026
One-click install
npx skills add https://github.com/toderian/project_template --skill request-refactor-plan-toderian
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: request-refactor-plan
Source: https://github.com/toderian/project_template/tree/main/plugins/agents-extras/skills/request-refactor-plan
Command: npx skills add https://github.com/toderian/project_template --skill request-refactor-plan-toderian

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Large refactors often fail because they lack a clear, incremental plan. This Skill turns a vague refactoring idea into a structured, interview-driven plan broken into tiny safe commits, then files it as a GitHub issue for team visibility. ## Core Features & Use Cases - Guided Interview Process: Asks detailed questions about the problem, solution options, scope, and testing strategy before writing anything. - Tiny Commit Breakdown: Splits the refactor into the smallest possible commits, each leaving the codebase in a working state, following Martin Fowler's incremental refactoring advice. - GitHub Issue Output: Files the final plan as a GitHub issue using a structured template covering problem statement, solution, commits, decisions, testing, and out-of-scope items. - Use Case: A developer wants to migrate a legacy module to a new architecture. The Skill interviews them about constraints, checks existing test coverage in the repo, and produces a step-by-step commit plan filed as an issue the whole team can review. ## Quick Start Ask the assistant to plan a refactor of a specific module and file the resulting plan as a GitHub issue.

Frequently Asked Questions about request-refactor-plan

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I break a large refactor into small commits?

Interview-driven planning decomposes the refactor into the tiniest possible commits, each leaving the codebase in a working state. The approach follows Martin Fowler's advice to make each refactoring step as small as possible so the program always works.

How to create a refactoring plan as a GitHub issue?

The Skill interviews you about the problem, solution, scope, and testing, then files a GitHub issue using a structured template. The template includes problem statement, solution, commit plan, decision document, testing decisions, and out-of-scope items.

Does the refactor plan include test coverage checks?

Yes, the workflow inspects the codebase for existing test coverage of the affected area. If coverage is insufficient, it asks the user about their testing plans before finalizing the commit breakdown.

When should I not use an interview-based refactor plan?

Skip it for trivial changes or single-file fixes where a full decision document adds overhead. The process is designed for substantial refactors that benefit from documented scope, architectural decisions, and incremental commit sequencing.

What goes into the refactor plan issue template?

The template contains a problem statement, solution, a detailed plain-English commit plan, a decision document covering modules and architectural choices, testing decisions, and an out-of-scope section. It deliberately excludes specific file paths and code snippets that quickly become outdated.