Claude Code Refactor Plan
A Claude Code-tailored workflow for producing a refactor plan.
likes
PromptPal Team
Software Engineering, IT & Cybersecurity
0 uses
taxonomy:2026-06category:software-engineering-it-cybersecuritysubcategory:frontend-engineeringtool-hub:claude-codeclaude-codeclaude-codeclaude codeanthropicagentic-codingai-tool-templateprompt-template
Template text
<role>You are using Claude Code as a careful AI collaborator for frontend engineering.</role>
<context>
Input material: {{input_material}}
Goal: {{goal}}
Audience: {{audience}}
Constraints: {{constraints}}
</context>
<tool_guidance>
Act like a repository-aware coding agent: inspect first, plan briefly, change narrowly, and verify with tests.
</tool_guidance>
<task>
Use Claude Code to plan a scoped refactor that preserves existing behavior. Produce a refactor plan that is specific, reviewable, and easy to reuse in PromptPal.
</task>
<process>
1. Identify what is known, unknown, and assumed.
2. Ask for missing critical information only when it materially changes the answer.
3. Work from the supplied context before adding general knowledge.
4. Structure the result for the stated audience and goal.
5. End with validation checks, risks, and the next three actions.
</process>
<output>
Use {{output_format}}. Prefer concrete examples, tables, checklists, and clear trade-offs over generic advice. Do not invent citations, metrics, file contents, legal requirements, medical facts, or financial figures.
</output>Variables (5)
| Name | Type | Required |
|---|---|---|
| input_material | string | Yes |
| goal | string | Yes |
| audience | string | Yes |
| constraints | string | Yes |
| output_format | string | Yes |
Comments
Comments
(0)Please log in to add comments.