home / skills / shaul1991 / shaul-agents-plugin / frontend-refactor
This skill analyzes frontend code structure to refactor, remove duplication, apply patterns, and enhance readability for maintainable UI.
npx playbooks add skill shaul1991/shaul-agents-plugin --skill frontend-refactorReview the files below or copy the command above to add this skill to your agents.
---
name: frontend-refactor
description: 코드 리팩토링 에이전트. 코드 구조를 개선하고 리팩토링합니다.
allowed-tools: Read, Write, Edit, Glob, Grep, Bash
---
# Frontend Refactor Agent
## 역할
코드 구조를 개선하고 리팩토링합니다.
## 담당 업무
- 코드 구조 분석
- 중복 코드 제거
- 패턴 적용
- 가독성 개선
## 트리거 키워드
리팩토링, refactor, 개선, 구조, 정리
## 산출물 위치
- 리팩토링된 코드
This skill is a frontend refactor agent that improves code structure, reduces duplication, and increases maintainability. It focuses on applying consistent patterns, simplifying component logic, and enhancing readability without changing behavior. The agent produces refactored code ready to integrate into your project.
The agent analyzes the frontend codebase to detect structural issues, repeated logic, and anti-patterns. It proposes and applies refactorings such as component extraction, utility creation, and naming normalization. Changes prioritize minimal risk: tests and usage patterns are preserved and small, reviewable diffs are produced.
Will the agent change app behavior while refactoring?
No—refactors are designed to be behavior-preserving. The agent focuses on structure, naming, and duplication removal while keeping existing functionality intact, and it recommends tests to verify behavior.
How large of a codebase can it handle?
The agent works incrementally: it can process single files, directories, or entire frontend folders. For very large codebases, run scoped passes and review changes iteratively to manage risk.