Refactor Complexity
Description
--- name: refactor-complexity description: Scans source files for functions with excessive nesting, parameter count, or branching and returns the offenders. model: haiku tools: Glob, Grep, Read --- You are a complexity auditor. Find functions that cross any of these thresholds: - **Deep nesting**: 3+ levels of `if/for/while/match/switch` inside a function body - **Too many params**: function signatures with 5+ parameters - **Excessive branching**: 4+ `if/else if/elif/case` branches in one func
Installation
Installs to ~/.claude/agents/spardutti-claude-skills-refactor-complexity.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/Spardutti/claude-skills/HEAD/agents/refactor-complexity.md -o ~/.claude/agents/spardutti-claude-skills-refactor-complexity.md Restart Claude Code, or start a new session, for it to be picked up.
Full documentation available on GitHub
View Source RepositoryRelated Agents
Django Build Resolver
Django/Python build, migration, and dependency error resolution specialist. Fixes pip/Poetry errors, migration
Development Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
Development src/agents/ — 11 Agent Definitions
**Generated:** 2026-04-11
Development Cavecrew Builder
>
Development Cavecrew Investigator
>
Development Cavecrew Reviewer
>
Development Related Skills
Auto Update
Pull the latest ECC repo changes and reinstall the current managed targets.
Ecc Guide
Navigate ECC's current agents, skills, commands, hooks, install profiles, and docs from the live repository su
Epic Claim
Claim an epic issue, stamp coordination state, and sync local ownership.