Files
leo-claude-mktplace/plugins/code-sentinel/commands/refactor-dry.md
lmiranda 7c8a20c804 refactor: extract skills from commands across 8 plugins
Refactored commands to extract reusable skills following the
Commands → Skills separation pattern. Each command is now <50 lines
and references skill files for detailed knowledge.

Plugins refactored:
- claude-config-maintainer: 5 commands → 7 skills
- code-sentinel: 3 commands → 2 skills
- contract-validator: 5 commands → 6 skills
- data-platform: 10 commands → 6 skills
- doc-guardian: 5 commands → 6 skills (replaced nested dir)
- git-flow: 8 commands → 7 skills

Skills contain: workflows, validation rules, conventions,
reference data, tool documentation

Commands now contain: YAML frontmatter, agent assignment,
skills list, brief workflow steps, parameters

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 17:32:24 -05:00

1.2 KiB

description
description
Preview refactoring changes without applying them

Refactor Dry Run

Analyze and preview refactoring opportunities without making changes.

Visual Output

+----------------------------------------------------------------------+
|  CODE-SENTINEL - Refactor Preview                                    |
+----------------------------------------------------------------------+

Usage

/refactor-dry <target> [--all]

Target: File path, function name, or "." for current file --all: Show all opportunities, not just recommended

Skills to Load

  • skills/refactoring-patterns.md
  • skills/dry-run-workflow.md

Process

  1. Scan Target - Analyze code using patterns from skill
  2. Score Opportunities - Rate by Impact/Risk/Effort (see dry-run-workflow skill)
  3. Output - Group by recommended vs optional

Output Format

## Refactoring Opportunities: <target>

### Recommended (High Impact, Low Risk)
1. **pattern** at lines X-Y
   - Impact: High | Risk: Low
   - Run: `/refactor <target> --pattern=<pattern>`

### Optional
- Lower priority items

### Summary
- X recommended, Y optional
- Estimated complexity reduction: Z%