Refactor Coupling — Development agent for Claude Code
Scans for files with excessive imports (8+ modules) or circular dependencies and returns the offenders.
How to install Refactor Coupling
Installs to ~/.claude/agents/spardutti-claude-skills-refactor-coupling.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/Spardutti/claude-skills/HEAD/agents/refactor-coupling.md -o ~/.claude/agents/spardutti-claude-skills-refactor-coupling.md Restart Claude Code, or start a new session, for it to be picked up.
What Refactor Coupling does
Scans for files with excessive imports (8+ modules) or circular dependencies and returns the offenders.
Alternatives in Development
- Arm Cortex Expert — Deliver complete, compilable firmware and driver modules for ARM Cortex-M platforms 31.9k ★
- Clean Code Refactor — Use this agent when you need to refactor existing code, rewrite a module for better maintainability, decompose 358 ★
- Mack — Automation Specialist 296 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Refactor Complexity
Scans source files for functions with excessive nesting, parameter count, or branching and returns the offende
Architecture Debt Analyzer
Analyzes architecture debt — circular dependencies, God modules, tight coupling, layer violations, missing sep
Refactor Size
Scans a codebase for source files that exceed the 200-line size threshold and returns a sorted list of offende
Coupling Lens
Paradigm lens agent for module coupling observation. Used by /prism to identify tight or hidden dependencies b
Relationship Analyzer
Analyzes the relationship between two codebase modules. Receives source of module A and API surface of module
Interface Verifier
Validates interfaces compile correctly across multiple languages. Checks for type safety, circular dependencie
Related Skills
Dependency Mapper
Map project and task dependencies with critical path analysis and circular dependency detection
Dependency Map
Analyze and visualize dependencies across Linear issues, identifying blockers, critical paths, and circular de
Voice Check
Scans a draft for AI tells against config/voice.md. Returns PASS, REWRITE (with the fix), or DO NOT SEND.