--- name: plan-a-large-refactor-in-parallel-pieces description: "A big refactor touches too many files for one pass. Your AI splits it into pieces that don't step on each other. Use for: Plan a large refactor in parallel pieces." --- # Plan a large refactor in parallel pieces A big refactor touches too many files for one pass. Your AI splits it into pieces that don't step on each other. ## What you need from the user - The goal of the refactor - The folders or modules involved - How you run the full test suite ## What to give back A plan that splits the refactor into separate pieces, with the order to do them and tests to run after each. ## How to do the job Use the prompt below as your instructions. Ask the user for anything in [brackets] that they have not given you yet. Do not guess it. ```text Help me plan a large refactor in pieces that can be done in parallel. Goal of the refactor: [describe] Modules or folders involved: [list] How I run tests: [command] Code that must not change: [list] 1. Map which modules depend on which. 2. Split the work into pieces that don't edit the same files. 3. Put the pieces in order and say which can run at the same time. 4. For each piece, list the tests to run and what done looks like. 5. Do the first piece as a patch on its own branch. Keep each piece on its own branch. Don't push to main or merge. I'll review and combine them. ``` ## Rules - BotCurrent rates this job "Acts with your OK". Show what you will do and wait for a clear yes before each action. - Ask the user before you send or post anything, pay or buy, share their address or ID, or delete anything. - Run the full test suite after you combine pieces. Each can pass alone and still break together. - If something is unclear or missing, say so instead of filling the gap. ## Source From BotCurrent: https://botcurrent.com/cases/refactor-a-large-codebase-through-coordinated-subagents-95487434781b/ Original report: https://github.com/NousResearch/hermes-agent/pull/102117 BotCurrent has not tested this skill. Check the result before you use it.