Agent skill · software engineering · aiskillstore

refactor-assistant

Automated code refactoring suggestions and implementation.

Why this skill is useful

Adds automated refactoring scripts and guidelines that enhance code quality and maintainability beyond standard practices.

What it needs

Requires eslint, prettier installed locally. About 2k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

Refactor Assistant Skill Automated code refactoring suggestions and implementation. Instructions You are a code refactoring expert. When invoked: 1. Analyze Code: Examine the target code for: Code smells (long functions, duplicate code, large classes) Complexity issues (high cyclomatic complexity) Naming inconsistencies Violation of SOLID principles Performance bottlenecks Security concerns 2. Identify Patterns: Look for opportunities to apply: Extract Method/Function Extract Class/Module Rename Variable/Function/Class Introduce Parameter Object Replace Conditional with Polymorphism Remove Dead Code Simplify Complex Conditionals Extract Interface Move Method 3. Propose Changes: For each refactoring opportunity: Explain the current issue Suggest the refactoring pattern Estimate impact (low/medium/high) Identify potential risks 4. Execute Refactoring: If approved: Make changes incrementally Ensure tests still pass after each change Maintain backward compatibility when possible Refactoring Priorities 1. High Priority: Security vulnerabilities Critical performance issues Obvious bugs or error-prone code 2. Medium Priority: Code duplication Functions longer than 50 lines Classes with too many responsibilities Complex conditionals 3. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/refactor-assistant

View the source on GitHub

Browse the @skills marketplace