FR

frontend-refactor-planner

Phased planning for refactoring messy frontend codebases.

Install

mkdir -p .claude/skills/frontend-refactor-planner && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/14213" && unzip -o skill.zip -d .claude/skills/frontend-refactor-planner && rm skill.zip

Installs to .claude/skills/frontend-refactor-planner

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Creates safe refactor plans for messy UI code including component splitting strategies, state simplification, performance optimizations, and accessibility improvements. Provides phased approach, risk assessment, and "done" criteria. Use when refactoring "legacy code", "messy components", "performance issues", or "large files".
328 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Advanced

Key capabilities

  • →Identify issues in frontend code like large components or prop drilling
  • →Prioritize refactoring by risk and impact
  • →Split large components into smaller sub-components
  • →Optimize performance using techniques like memoization and code splitting
  • →Improve accessibility by adding ARIA labels and semantic HTML

How it works

The skill assesses frontend code for issues, prioritizes them, and then creates a phased refactor plan using common patterns like component splitting, state management, and performance optimization.

Inputs & outputs

You give it
Messy UI code, legacy components, performance issues, or large files
You get back
A phased refactor plan with risk assessment and done criteria

When to use frontend-refactor-planner

  • →Refactoring legacy components
  • →Splitting large React files
  • →Improving accessibility scores
  • →Simplifying global state management

About frontend-refactor-planner

This skill creates structured refactoring plans. It breaks down large, complex components into testable phases, addressing performance, state management, and accessibility while mitigating regression risks.

Creates safe refactor plans for messy UI code including component splitting strategies, state simplification, performance optimizations, and accessibility improvements. Provides phased approach, risk assessment, and "done" criteria. Use when refactoring "legacy code", "messy components", "performanc

When not to use it

  • →When the codebase is small and does not have complex frontend issues
  • →When the focus is on adding new features rather than improving existing code
  • →When there is no need for performance optimization or accessibility improvements

Limitations

  • →The skill focuses on frontend UI code, not backend logic
  • →Refactor assessment identifies issues like components over 300 lines
  • →Done criteria include code coverage >80% and accessibility score 95+

How it compares

This skill provides a structured, phased approach to frontend refactoring with risk mitigation and clear done criteria, unlike ad-hoc refactoring that may introduce new issues.

Compared to similar skills

frontend-refactor-planner side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
frontend-refactor-planner (this skill)010moNo flagsAdvanced
nextjs-developer3286moNo flagsAdvanced
react-modernization216moNo flagsAdvanced
frontend-developer277moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

nextjs-developer

zenobi-us

Expert Next.js developer mastering Next.js 14+ with App Router and full-stack features. Specializes in server components, server actions, performance optimization, and production deployment with focus on building fast, SEO-friendly applications.

328531

react-modernization

wshobson

Upgrade React applications to latest versions, migrate from class components to hooks, and adopt concurrent features. Use when modernizing React codebases, migrating to React Hooks, or upgrading to latest React versions.

21134

frontend-developer

sickn33

Build React components, implement responsive layouts, and handle client-side state management. Masters React 19, Next.js 15, and modern frontend architecture. Optimizes performance and ensures accessibility. Use PROACTIVELY when creating UI components or fixing frontend issues.

2782

rendering-animate-svg

TheOrcDev

Wrap animated SVG elements in a div to enable hardware acceleration. Apply when animating SVG icons or elements, especially in 8-bit retro components with pixel art animations.

1348

nextjs-app-router-patterns

wshobson

Master Next.js 14+ App Router with Server Components, streaming, parallel routes, and advanced data fetching. Use when building Next.js applications, implementing SSR/SSG, or optimizing React Server Components.

347

writing-react-effects

dust-tt

Writes React components without unnecessary useEffect. Use when creating/reviewing React components, refactoring effects, or when code uses useEffect to transform data or handle events.

15

Search skills

Search the agent skills registry