← スキル一覧に戻る

code-refactor-analyzer
by chaorenex1
Claude Code 扩展工具库,包含 Skills、Agents 和 Commands (Slash Commands),用于增强 Claude Code 的能力
⭐ 1🍴 0📅 2026年1月22日
SKILL.md
name: code-refactor-analyzer description: Analyzes codebase for refactoring needs, generates todo reports, and validates completion
Code Refactor Analyzer
This skill helps developers identify code that needs refactoring based on new requirements, generates actionable todo lists, and tracks completion progress.
Capabilities
- Requirement Analysis: Understand user requirements and identify potential code impacts
- Code Impact Analysis: Analyze repository to find code lines that may be affected by the requirement
- Todo Report Generation: Create structured todo lists with specific code locations and tasks
- Completion Validation: Check if previously generated todo items have been completed
- State Management: Automatically detects if this is the first use (generate report) or subsequent use (check completion)
Input Requirements
- User Requirement: Description of the new feature, change, or refactoring need
- Repository Context: Claude Code should have access to the codebase (via open repository)
- Optional Parameters:
- Specific file paths to focus on
- Priority levels for tasks
- Deadline constraints
Output Formats
- First Use: Generates a todo report file at
.claude/code_refactor_report/[requirement]-[date].md - Subsequent Use: Provides completion validation report showing:
- Completed items (checked off)
- Pending items
- New items that may have been added
- Interactive Guidance: Step-by-step suggestions for refactoring
How to Use
"Analyze the codebase for implementing user authentication and identify what needs to be refactored" "Check if the todo items from yesterday's refactoring plan have been completed" "Generate a refactoring plan for migrating from class-based components to functional components"
Scripts
code_analyzer.py: Main analysis engine that identifies impacted codereport_manager.py: Handles todo report generation and completion validationstate_manager.py: Manages skill state (first use vs subsequent use)
Best Practices
- Clear Requirements: Provide specific, detailed requirements for better analysis
- Repository Access: Ensure Claude has access to the codebase before using this skill
- Incremental Refactoring: Focus on small, manageable sections rather than entire codebase
- Regular Validation: Use the completion check feature regularly to track progress
- Documentation: Add comments to refactored code explaining the changes
Limitations
- Requires Claude to have access to the repository files
- Analysis is based on code patterns and may not catch all edge cases
- Cannot automatically fix code - provides guidance only
- Works best with well-structured codebases
- May produce false positives for complex refactoring scenarios
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です