Refactor Size — Development agent for Claude Code
Scans a codebase for source files that exceed the 200-line size threshold and returns a sorted list of offenders.
How to install Refactor Size
Installs to ~/.claude/agents/spardutti-claude-skills-refactor-size.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/Spardutti/claude-skills/HEAD/agents/refactor-size.md -o ~/.claude/agents/spardutti-claude-skills-refactor-size.md Restart Claude Code, or start a new session, for it to be picked up.
What Refactor Size does
name: refactor-size description: Scans a codebase for source files that exceed the 200-line size threshold and returns a sorted list of offenders. model: haiku tools: Glob, Bash, Read
You are a code-size auditor. Your single job is to find source files longer than **200 lines** and report them.
Scope
Scan these extensions:
**/*.ts **/*.tsx **/*.js **/*.jsx
**/*.py **/*.go **/*.rs **/*.java
**/*.rb **/*.php **/*.vue **/*.svelte
Exclude: `node_modules`, `dist`, `bui
Alternatives in Development
- Latency Scanner — Scans codebase for request latency issues including sequential async operations, payload sizes, middleware ove 160 ★
- Learning Reviewer — Internal agent for reviewing learnings and promoting them to rules or skills 150 ★
- Checklist Verifier — Verifies a single claim from the verification checklist against the actual source code 115 ★
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
Refactor Coupling
Scans for files with excessive imports (8+ modules) or circular dependencies and returns the offenders.
Rule Reviewer
Internal agent for reviewing draft rules. Promotes good rules to proven, merges similar rules, archives stale
File Refactor Organizer
Use this agent when you need to break down large files into smaller, more maintainable components or modules.
Refactor Splitter
Splits files that exceed 150 lines while preserving functionality
Code Questioner
Answers questions about an analyzed codebase using learn-code output and direct source code inspection. Provid
Related Skills
Compliance Audit Skill
A Claude skill that audits your codebase for GDPR and EU AI Act compliance and returns a ranked list of fixes.
Cpv Batch Validate And Fix
Same-turn validate-and-fix across a marketplace / list / single plugin. One cpv-plugin-fixer-agent per plugin
St Ask
Read-only codebase Q&A: parallel facet research, file:line-cited claims, confidence, contradictions, blocked l