Skip to content
Skills Library
Programming · Building & coding

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".

Licence
GPL-3.0
Last repository change
21.10.2026

Assessment and security

86/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content21 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 21.10.2026, without references to retired models or APIs.

Licence

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

refactor this codecode refactoringimprove this codeoptimize this codeclean up this code
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

RepositoryScoreLicence
This page · captainflasmr/ollama-buddy86GPL-3.0
event4u-app/agent-config100MIT
autohandai/community-skills100Apache-2.0
akillness/jeo-skills95MIT

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…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.