🧪 Refactor Pass

This skill performs a targeted refactor pass to simplify code after changes, removing dead paths and verifying behavior with tests.

QUICK INSTALL
npx playbooks add skill montagao/skills --skill refactor-pass

Refactor Pass instructions

Refactor Pass

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.
  1. Run build/tests to verify behavior.
  2. Identify optional abstractions or reusable patterns; only suggest them if they clearly improve clarity and keep suggestions brief.

Related Skills

Get the best new skills
in your inbox

Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.