Skip to content

Instantly share code, notes, and snippets.

@garriguv
Created March 13, 2026 11:04
Show Gist options
  • Select an option

  • Save garriguv/8965e11bc65da172403137a6871ecf14 to your computer and use it in GitHub Desktop.

Select an option

Save garriguv/8965e11bc65da172403137a6871ecf14 to your computer and use it in GitHub Desktop.
Refactor Pass Skill
name refactor-pass
description Perform a refactor pass focused on simplicity after recent changes. Use when the user asks for a refactor/cleanup pass, simplification, or dead-code removal and expects build/tests to verify behavior.

Refactor Pass

Overview

Perform a cleanup pass after recent changes with a bias toward simpler code and verified behavior.

Workflow

  1. Review the changes just made and identify simplification opportunities.
  2. Apply refactors to:
    • Remove dead code and dead paths.
    • Straighten logic flows.
    • Remove excessive parameters.
    • Remove premature optimization.
  3. Run build/tests to verify behavior.
  4. Identify optional abstractions or reusable patterns; only suggest them if they clearly improve clarity and keep suggestions brief.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment