
Refactoring Suggester
- 148 installs
- 2 repo stars
- Updated January 25, 2026
- jorgealves/agent_skills
Get agent-driven refactor recommendations while cleaning legacy modules, preparing PRs, or reducing complexity in active services without running a separate static-analysis toolchain.
About
Refactoring-suggester is an agent skill that inspects code structure and recommends targeted improvements such as method extraction, renaming, and simplification. It is aimed at teams maintaining SaaS, API, or CLI codebases who want automated, context-aware refactor ideas during iteration rather than one-off rewrites.
- Surfaces structural smells and rename/extract opportunities
- Proposes incremental, convention-aware refactors
- Supports PR review and maintenance workflows
- Reduces manual review time on repetitive cleanup
- Helps standardize patterns across modules
Refactoring Suggester by the numbers
- 148 all-time installs (skills.sh)
- +8 installs in the week ending Aug 2, 2026 (Skillselion tracking)
- Ranked #379 of 1,352 Code Review & Quality skills by installs in the Skillselion catalog
- Data as of Aug 2, 2026 (Skillselion catalog sync)
npx skills add https://github.com/jorgealves/agent_skills --skill refactoring-suggesterAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 148 |
|---|---|
| repo stars | ★ 2 |
| Last updated | January 25, 2026 |
| Repository | jorgealves/agent_skills ↗ |
What it does
Get agent-driven refactor recommendations while cleaning legacy modules, preparing PRs, or reducing complexity in active services without running a separate static-analysis toolchain.
Files
Refactoring Suggester
Purpose and Intent
The refactoring-suggester teaches students and engineers how to evolve code. It doesn't just point out problems; it provides a recipe for how to fix them correctly.
When to Use
- Code Cleanup: Use when a codebase has become difficult to manage or "messy."
- Learning Exercises: Show students how to transform their working code into "clean" code.
When NOT to Use
- Performance Optimization: This tool focuses on maintainability, not necessarily on squeeze-every-cycle performance.
Security and Data-Handling Considerations
- Operates locally on provided source code.
name: refactoring-suggester
version: 1.0.0
description: Identifies code smells and provides step-by-step refactoring recipes. Use when improving legacy code maintainability or teaching students how to apply Clean Code and SOLID principles.
inputs:
source_code:
type: string
required: true
target_pattern:
type: string
description: Optional pattern to move towards.
outputs:
refactor_plan:
type: array
items:
type: object
properties:
smell_detected:
type: string
suggested_action:
type: string
before_snippet:
type: string
after_snippet:
type: string
capabilities:
- Recognition of "God Objects" and "Long Methods."
- Automated snippet generation.
constraints:
- Requires manual verification of functional parity.
security:
- Operates locally.
examples:
- input:
source_code: "def log(m): print(m)"
output:
refactor_plan:
- smell_detected: "Primitive Obsession"
suggested_action: "Inject a logging interface"