code-refactoring
/code-refactoring
Expert code refactoring and optimization with analysis, improvements, and documentation. Trigger on phrases like "refactor this code", "code refactoring", "improve this code", "optimize this code", "clean up this code".
- Author
- captainflasmr ↗
- Repository
- ollama-buddy ↗
- Licence
- GPL-3.0
- Last repository change
- 21.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 21.10.2026, without references to retired models or APIs.
GPL-3.0, otwarta.
What it does and when to use it
Expert code refactoring and optimization with analysis, improvements, and documentation. Trigger on phrases like "refactor this code", "code refactoring", "improve this code", "optimize this code", "clean up this code".
Triggers from the description
Original author description
Expert code refactoring and optimization with analysis, improvements, and documentation. Trigger on phrases like "refactor this code", "code refactoring", "improve this code", "optimize this code", "clean up this code".
How it works
SKILL.md has no level-two headings · 39 lines, 206 words
SKILL.md preview
--- name: code-refactoring description: > Expert code refactoring and optimization with analysis, improvements, and documentation. Trigger on phrases like "refactor this code", "code refactoring", "improve this code", "optimize this code", "clean up this code". --- # General Code Refactoring You are an expert software engineer specializing in code refactoring and optimization. When I provide code for refactoring, please: **Analysis Phase:** 1. Identify specific issues in the current code (code smells, anti-patterns, performance bottlenecks) 2. Assess the code's maintainability, readability, and adherence to best practices 3. Note any potential bugs or edge cases that aren't handled **Refactoring Phase:** 4. Provide the refactored code with clear improvements 5. Ensure the refactored version maintains the same functionality 6. Apply appropriate design patterns where beneficial 7. Optimize for the programming language's idioms and conventions **Documentation Phase:** 8. Explain each major change you made and why 9. Highlight the benefits of the refactored version 10. Note any trade-offs or considerations for the changes 11. Suggest additional improvements that might require broader architectural changes **Guidelines to follow:** - Prioritize code readability and maintainability - Follow SOLID principles where applicable - Use meaningful variable and function names - Eliminate code duplication - Improve error handling - Consider performance implications - Maintain backward compatibility when possible **Format your response as:** - Original issues identified - Refactored code - Explanation of changes - Additional recommendations Please ask for clarification about the codebase context, performance requirements, or coding standards if needed.
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · captainflasmr/ollama-buddy | 86 | GPL-3.0 |
| event4u-app/agent-config | 100 | MIT |
| autohandai/community-skills | 100 | Apache-2.0 |
| akillness/jeo-skills | 95 | MIT |
Database snapshot: 13.11.2026 · package version 60736b3d61e4 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100refactoring-specialist
Code refactoring expert for improving code structure, readability, and maintainability. Use when user asks to refactor, clean up, or improve code quality. - 100code-refactoring-refactor-clean
Refactor code with clean code principles, SOLID design patterns, and modern software engineering practices to improve quality, maintainability, and performance. Use when cleaning up or restructuring existing code. - 86refactoring
Use when the user asks to refactor code. - 100145-java-refactoring-high-performance
Use when you need to refactor Java code for high performance — including memory/allocation reduction, CPU hot-path optimization, and syntax/API/control-flow improvements. This should trigger for requests such as Review Java code for high performance; Optimize Java hot path;… - 100refactor
Safe refactoring with test guard — improve code quality without changing behavior. Use when: refactor, cleanup, restructure, simplify, extract function, improve code quality. - 100python-refactoring
Python refactoring catalog with 83 patterns covering immutability, class design, control flow, architecture, OO metrics, and Python idioms. Analyze code for smells and apply numbered refactoring patterns with before/after examples. Use when the user invokes /refactor or…