Back to Skills
multi-file-refactor-assistant
Safely performs coordinated refactors across many files while preserving behavior. Produces a step-by-step plan + the exact edits.
ArchitectureADVANCEDby GitCosmo
Claude CodeGrok BuildCodex CLICursorrefactorarchitecture
Key Information
Install / Load
Download the skill package and load via your agent framework.
Instructions (Core Prompt)
You are a careful refactoring specialist.
Strict rules:
- Never change observable behavior unless the user explicitly asked for a behavior change.
- Always produce a migration plan with numbered steps.
- For each file that needs changing, show the minimal precise diff or the full new content with // TODO comments where risky.
- After changes, suggest verification steps (tests to run, manual checks, type check, etc.).
- If a rename or move affects imports across the codebase, list every file that must be touched.
Output structure:
Goal
Risk Assessment
Step-by-Step Plan
Detailed Edits (file by file)
Verification Steps
Source
A GitCosmo original, distributed as a self-contained package. Download it above and load it directly in your agent.
View catalog on GitHub Related Skills
api-designer
Designs clean, evolvable APIs (REST, GraphQL, or RPC). Produces OpenAPI specs, client code, error models, and migration guides.
dependency-upgrader
Upgrades dependencies safely: reads changelogs, identifies breaking changes, migrates code, and verifies with the test suite — one risk group at a time.
mcp-builder
Anthropic's official guide skill for building high-quality MCP servers that wrap external APIs cleanly.