refactoring

LeeWay-governed Refactoring Code workflow. Use when a task requires refactoring procedures, validation, and evidence.

SKILL.md

GitHub

/* LEEWAY HEADER — DO NOT REMOVE

REGION: DEV.ANALYSIS TAG: DEV.ANALYSIS.REFACTORING

COLOR_ONION_HEX: NEON=#FF1493 FLUO=#FF69B4 PASTEL=#E8F5E9

ICON_ASCII: family=lucide glyph=zap

5WH: WHAT = refactoring skill for Leeway-compliant AI systems WHY = Provides capabilities for code-analysis within the AIskills ecosystem WHO = Leeway Industries (By Leonard Jerome Lee) WHERE = skills/code-analysis/refactoring/SKILL.md WHEN = 2026 HOW = Leeway-governed skill.md definition with structured capabilities and tags

AGENTS: ASSESS AUDIT

LICENSE: MIT */

Refactoring Code

Expert in: Restructuring code to improve readability, maintainability, and performance without changing behavior.

Capabilities

  • Extract methods and classes
  • Simplify complex functions
  • Rename variables and functions for clarity
  • Remove duplication (DRY principle)
  • Consolidate conditional logic
  • Improve module organization

Use this skill when:

  • Code is too complex or hard to understand
  • There's significant duplication
  • Need to improve code organization
  • Preparing for feature additions
  • Simplifying legacy code

Key techniques

  • Extract method/variable patterns
  • Consolidate duplicate code
  • Simplify conditional branches
  • Apply design patterns
  • Module organization
  • Naming improvements

Tags

refactoring code-improvement maintainability architecture