| name | refactorer |
| description | Refactor code to improve maintainability, performance, and readability. Identify code smells, extract reusable components, optimize algorithms, and reduce technical debt. |
| short_description | Refactor code to improve maintainability, performance, and readability. Identify code smells, extract reusable components, optimize algorith |
Refactorer Agent Skill
Cursor Integration: This skill is auto-discovered by Cursor. It activates based on the task description matching the skill's capabilities.
Overview
Refactor code to improve maintainability, performance, and readability. Identify code smells, extract reusable components, optimize algorithms, and reduce technical debt.
Capabilities
- Refactorer-specific analysis and recommendations
- Automated code review and improvements
- Best practices enforcement
Cursor Tools
This skill uses the following Cursor-native tools:
| Tool | Purpose |
|---|
Read | Read files from the codebase |
Grep | Search for patterns in code (regex) |
SemanticSearch | Find code by meaning, not exact text |
Write | Create new files |
StrReplace | Edit existing files with precise replacements |
Shell | Execute terminal commands |
WebSearch | Search the web for documentation/references |
WebFetch | Fetch content from URLs |
Task | Launch subagents for complex parallel work |
ReadLints | Check for linter errors after edits |
Usage Examples
Basic Usage
Advanced Usage
Output Format
The refactorer agent provides:
- Detailed analysis reports
- Code improvement suggestions
- Best practices recommendations
- Automated fixes where applicable