refactor

Installation
SKILL.md

Refactor Command

Execute automated refactoring for $ARGUMENTS using refactor:code-simplifier agent.

Pre-operation Checks

Goal: Ensure scope resolution is deterministic before launching the agent.

Actions:

  1. Run git rev-parse --is-inside-work-tree and continue even if false when explicit paths are provided
  2. Normalize arguments by trimming whitespace and preserving quoted path segments
  3. Treat an empty argument list as "recent changes" mode

Phase 1: Determine Target Scope

Goal: Identify files to refactor based on arguments or session context.

Related skills

More from fradser/dotclaude

Installs
52
GitHub Stars
547
First Seen
Jan 24, 2026