Refactor - Refactoring Proposals

SkillDev tools

Generate concrete refactoring proposals with Before/After code based on coupling analysis results.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Refactor - Refactoring Proposals skill

What this skill tells your AI

The instructions your AI receives, as published by nwiizo/cargo-coupling in .claude/skills/refactor/SKILL.md and read by ahel’s review.

Execution Steps

  1. Run cargo run -- coupling $ARGUMENTS to analyze
  2. Identify specified issue type (default: all)
  3. Propose refactoring steps with Before/After code examples
  4. Present priority table and phased migration plan

Issue Types

TypeDescription
global-complexityStrong coupling to distant modules
cascading-changeCoupling to volatile modules
inappropriate-intimacyInternal access across boundaries
high-efferentToo many outgoing dependencies
high-afferentToo many incoming dependencies
allAll issue types (default)

Verification

# Before refactoring
cargo run -- coupling --summary ./src > before.txt

# After refactoring
cargo run -- coupling --summary ./src > after.txt

# Compare
diff before.txt after.txt

Guidelines

  • Split large changes into small commits
  • Verify tests pass at each step
  • Document change intent for reviewers

Code pattern examples: patterns.md

Signals

GitHub stars
96
Forks
2
Last commit
Sep 2026
Hacker News mentions
20
Advanced
Catalog kind
skill
Gateway key
refactor-nwiizo
Source
github.com/nwiizo/cargo-coupling