Spardutti

Refactor Size — Development agent for Claude Code

Development community

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

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