Agent_skills refactoring-suggester

name: refactoring-suggester

install
source · Clone the upstream repo
git clone https://github.com/jorgealves/agent_skills
manifest: refactoring-suggester/skill.yaml
source content

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"