Safe Refactor banner
Autopsias Autopsias

Safe Refactor

Testing community

Description

--- description: "Test-safe file refactoring with facade pattern and incremental migration. Use when splitting large files to prevent test breakage." argument-hint: "[--dry-run] <file_path>" --- # Safe Refactor Skill Refactor file: "$ARGUMENTS" ## Parse Arguments Extract from "$ARGUMENTS": - `--dry-run`: Show plan without executing (optional) - `<file_path>`: Target file to refactor (required) ## Execution Delegate to the safe-refactor agent: ``` Task( subagent_type="safe-refactor",

Installation

Installs to ~/.claude/skills/autopsias-slashagents-safe-refactor/SKILL.md

Terminal
mkdir -p ~/.claude/skills/autopsias-slashagents-safe-refactor && curl -fsSL https://raw.githubusercontent.com/Autopsias/slashagents/HEAD/skills/safe-refactor.md -o ~/.claude/skills/autopsias-slashagents-safe-refactor/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository