원클릭으로
refactor-scan
Scan codebase for repeated patterns and produce a refactoring proposal
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Scan codebase for repeated patterns and produce a refactoring proposal
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Single entry point for frontend work. Classify intent, create a plan, and run the minimal agent workflow.
Independent adversarial code review via Codex CLI to eliminate Claude self-review bias
Find reusable components with compact output before UI work
Create a task branch after plan approval
Create scoped Conventional Commits after reviewer PASS
Create an issue for failed tests or tracked follow-up work
| name | refactor-scan |
| description | Scan codebase for repeated patterns and produce a refactoring proposal |
Trigger: /refactor-scan or auto-triggered when component-auditor detects 3+ similar patterns
Purpose: Scan codebase for repeated patterns and produce a refactoring proposal.
/refactor-scanStep 1: refactor-architect (opus)
→ Full codebase scan for:
- Duplicate JSX structures (3+ occurrences)
- Repeated state patterns (loading/error/data)
- Duplicate API call patterns
- Repeated class strings / inline styles
- Duplicate utility functions
Step 2: Produce refactor plan.md
→ List all detected patterns
→ Propose extraction targets (component/hook/utility)
→ Estimate impact (files affected, risk level)
Step 3: Present to user
→ "Refactor plan ready. Review plan.md to approve."
Step 4 (after approval): execute-feature
→ Implement the refactoring
## Refactor Scan Results
### High Priority (3+ occurrences)
1. loading/error/data state pattern — 5 files → extract: useAsyncData hook
2. Card layout pattern — 4 files → extract: BaseCard component
### Medium Priority
1. Filter + pagination pattern — 3 files → extract: useFilteredList hook
### Low Priority
1. formatDate utility — 2 files → extract: lib/utils.ts