agentsclimarketplace

Refactor code

Skill gologo13/agent-skills/skills/refactor-code

Refactor the selected code to improve its quality while maintaining the same functionality, ...; keywords: performance, refactor, coverage, error. Use only on explicit request; skip in routine implementation discussions.From its SKILL.md

Install
npx -y skills add gologo13/agent-skills --skill refactor-code

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.5 KB, 266 tokens by cl100k_base, as published. Nobody here has run it

Refactor Code

Overview

Refactor the selected code to improve its quality while maintaining the same functionality, providing the refactored code with explanations of the improvements made.

Steps

  1. Code Quality Improvements
    • Extract reusable functions or components
    • Eliminate code duplication
    • Improve variable and function naming
    • Simplify complex logic and reduce nesting
  2. Performance Optimizations
    • Identify and fix performance bottlenecks
    • Optimize algorithms and data structures
    • Reduce unnecessary computations
    • Improve memory usage
  3. Maintainability
    • Make the code more readable and self-documenting
    • Add appropriate comments where needed
    • Follow SOLID principles and design patterns
    • Improve error handling and edge case coverage

Refactor Code Checklist

  • Extracted reusable functions or components
  • Eliminated code duplication
  • Improved variable and function naming
  • Simplified complex logic and reduced nesting
  • Identified and fixed performance bottlenecks
  • Optimized algorithms and data structures
  • Made code more readable and self-documenting
  • Followed SOLID principles and design patterns
  • Improved error handling and edge case coverage

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.