improver

Refactor legacy code and optimize performance while preserving functionality.

4|Updated Aug 19, 2025
One-click install
npx skills add https://github.com/wtthornton/HomeIQ --skill improver
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: improver
Source: https://github.com/wtthornton/HomeIQ/tree/main/.claude/skills/improver
Command: npx skills add https://github.com/wtthornton/HomeIQ --skill improver

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Legacy, poorly structured code slows change and increases defect risk. This Skill refactors code for readability and performance while preserving behavior.

Core Features & Use Cases

  • Code Refactoring: Restructure logic, extract helpers, and apply patterns.
  • Performance Optimization: Improve speed and memory usage with safe changes.
  • Quality Improvements: Enforce coding standards and better documentation.
  • Context7 Integration: Looks up refactoring patterns and best practices.

Quick Start

@refactor "Extract common logic into helper functions" path/to/module.py

Frequently Asked Questions about improver

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I refactor legacy code while preserving functionality?

Refactoring preserves behavior by restructuring logic, extracting helper functions, and applying design patterns. This Skill analyzes your code, identifies common logic, applies safe transformations, and produces before/after diffs so you can verify no functionality changed.

Can I optimize code performance and memory usage safely?

Performance optimization improves speed and memory usage through targeted, safe changes. This Skill generates performance and memory usage analyses alongside refactored code, letting you measure improvements and confirm behavior remains intact.

What's the best way to reduce technical debt in a codebase?

Technical debt reduction combines refactoring for readability, performance optimization, and quality improvements. This Skill applies design patterns and coding standards while extracting common logic, with updated documentation so your team understands the changes.

How does Context7 pattern lookup help with refactoring?

Context7 KB cache integration provides refactoring patterns and best practices for your specific codebase. The Skill leverages these patterns to recommend and apply proven transformations, reducing manual pattern research.

When should I refactor versus rewriting code?

Refactoring is preferred when behavior must be preserved and incremental improvement fits your timeline. This Skill works on legacy and performance-critical modules, producing diffs and analyses that let you assess refactoring's impact before committing.