request-refactor-plan

Create incremental refactor plans and file them as GitHub issues.

Updated Apr 14, 2026
One-click install
npx skills add https://github.com/kvithayathil/agent-resources --skill request-refactor-plan-kvithayathil
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: request-refactor-plan
Source: https://github.com/kvithayathil/agent-resources/tree/main/skills/request-refactor-plan
Command: npx skills add https://github.com/kvithayathil/agent-resources --skill request-refactor-plan-kvithayathil

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Planning code refactors often leads to risky, large-scale changes that break existing functionality with no clear documentation of steps or rationale. This Skill eliminates that risk by guiding you through a structured interview process to create a detailed, step-by-step refactor plan broken into tiny, safe commits, and automatically files it as a GitHub issue for team tracking.

Core Features & Use Cases

  • Guided Refactor Interview: Walks you through gathering full context on the refactor problem, exploring the codebase to verify assumptions, and evaluating alternative solutions.
  • Tiny Commit Planning: Breaks the refactor into the smallest possible working steps per Martin Fowler's guidance, ensuring the codebase remains functional at every stage.
  • Structured GitHub Issue Generation: Produces a complete refactor plan issue including problem statement, solution, detailed commit steps, decision documents, testing plans, and out-of-scope items.
  • Use Case: For example, if you need to refactor a legacy user authentication module, this Skill will help you confirm test coverage, define the exact scope of changes, and produce an actionable plan your team can execute safely.

Quick Start

Use the request-refactor-plan skill to create a detailed incremental refactor plan for your legacy payment processing module and file it 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 plan a code refactoring project as incremental commits?

To plan a code refactoring project as incremental commits, you can use a structured interview process that breaks large changes into tiny, verifiable steps. This approach produces a detailed refactor plan ensuring your codebase remains functional at every stage.

What is the best way to document refactoring plans for GitHub issues?

The best way to document refactoring plans for GitHub issues is to generate a structured issue containing the problem statement, implementation decisions, testing plans, and out-of-scope definitions. This ensures complete team tracking for complex code refactoring tasks.

How do I create an RFC for refactoring a legacy module?

To create an RFC for refactoring a legacy module, gather full context on the problem, explore the codebase to verify assumptions, and evaluate alternative solutions. This process produces structured refactor documentation including the rationale and detailed commit steps.

Can I check test coverage before planning a code refactor?

Yes, you can verify test coverage before planning a code refactor. The planning process includes confirming test coverage to define the exact scope of changes, ensuring your legacy modules are refactored safely with verifiable working steps.

When should I not use incremental refactoring plans?

You should avoid incremental refactoring plans if your project lacks test coverage to verify each step or if the changes do not require documented rationale and team tracking. Large-scale changes without verifiable steps risk breaking existing functionality.