← Back to list

implement-refactor
by dthompson-jti
⭐ 0🍴 0📅 Jan 15, 2026
SKILL.md
name: implement-refactor description: Code restructuring without behavior change. Use when improving code organization while preserving functionality.
Implement Refactor
Restructure code without changing user-facing behavior.
When to Use
- Code cleanup
- Reducing tech debt
- Improving maintainability
- Extracting shared patterns
Artifacts
task.mdupdated viatask_boundary
Approach
Phase 1: Scope Definition
- Refactoring Goal: Specific code smell or tech debt
- Behavior Invariants: List behaviors that MUST NOT change
- Scope Boundaries: In-scope vs out-of-scope files
Phase 2: Safety Net
- List existing tests
- Define manual verification for each invariant
Phase 3: Refactoring Plan
List atomic transformation steps.
Reflexion Loop: Act as Hostile Reviewer — identify 3 ways refactoring could break behavior. Revise plan.
Phase 4: Execution
For each step:
- Make one change
- Verify behavior unchanged
- Run
npm run lint - Run
npm run build - Repeat
Phase 5: Verification
- All behavior invariants verified
- Lint/build pass
- No regressions
Constraints
- NO behavior changes
- If bug discovered, note but do NOT fix (separate concern)
- Each transformation independently reversible
Score
Total Score
50/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon