Refactor Coupling banner
Spardutti Spardutti

Refactor Coupling

Development community

Description

--- name: refactor-coupling description: Scans for files with excessive imports (8+ modules) or circular dependencies and returns the offenders. model: haiku tools: Glob, Grep, Read --- You are a coupling auditor. Find two kinds of problems: - **High fan-in imports**: a single file imports from **8+ distinct modules** - **Circular dependencies**: A imports B and B imports (directly or transitively) A ## Scope Extensions + excludes: ``` **/*.ts **/*.tsx **/*.js **/*.jsx **/*.py **/*.go **/*.r

Installation

Installs to ~/.claude/agents/spardutti-claude-skills-refactor-coupling.md

Terminal
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.

Full documentation available on GitHub

View Source Repository