request-refactor-plan

Creates a detailed refactor plan with tiny commits and files it as a GitHub issue.

1|Updated May 25, 2020
One-click install
npx skills add https://github.com/titaneric/dotfiles --skill request-refactor-plan-titaneric
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: request-refactor-plan
Source: https://github.com/titaneric/dotfiles/tree/main/dot_agents/skills/request-refactor-plan
Command: npx skills add https://github.com/titaneric/dotfiles --skill request-refactor-plan-titaneric

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Large refactors often fail because they lack a clear, agreed-upon plan broken into safe incremental steps. This Skill turns a vague refactoring idea into a structured, reviewed plan filed as a GitHub issue. ## Core Features & Use Cases - Structured Interview Process: Asks detailed questions about the problem, solution options, scope, and testing strategy before writing anything. - Tiny Commit Planning: Breaks the refactor into the smallest possible commits so the codebase stays in a working state at every step, following Martin Fowler's incremental refactoring advice. - GitHub Issue Output: Produces a complete refactor plan issue with sections for problem statement, solution, commits, decision document, testing decisions, 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 and scope, checks existing test coverage in the repo, then files a GitHub issue containing a step-by-step commit plan the whole team can review. ## Quick Start Ask the assistant to create a refactor plan for the module you want to change 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 large code refactor safely?

Plan a large refactor by interviewing stakeholders about the problem and scope, then breaking the work into tiny commits that each leave the codebase working. This Skill automates that process and files the result as a GitHub issue.

How to break a refactor into small incremental commits?

Break a refactor into small commits by following Martin Fowler's advice to make each step as small as possible so the program always works. The Skill generates a plain-English commit plan where every commit leaves the codebase in a working state.

What should a refactoring RFC or plan document include?

A refactoring plan should include a problem statement, proposed solution, detailed commit plan, decision document covering modules and interfaces, testing decisions, and out-of-scope items. It should avoid specific file paths or code snippets that quickly become outdated.

Does the refactor plan include test coverage analysis?

Yes, the Skill inspects the codebase for existing test coverage of the affected area before planning. If coverage is insufficient, it asks the user about their testing plans and records testing decisions in the issue.

When should I not use an interview-based refactor planning process?

Skip the full interview process for trivial refactors like renames or small extractions that fit in a single commit. The detailed planning workflow is designed for substantial refactors where scope, decisions, and testing strategy need team alignment.