J Defrag banner
jlaws jlaws

J Defrag

Development community

Description

--- name: j-defrag description: "Scan the codebase for fragmentation — duplicated components, inconsistent patterns, files to consolidate, logic to share — and fix it in verified batches. Use to keep the codebase coherent on a regular cadence. Do NOT use for single-file cleanups (edit directly) or diff review before merge (use /j-diff-review)." argument-hint: "<optional path or subsystem to scope the scan; default whole repo>" model: opus effort: xhigh --- Load skills `refactoring-and-debt` and

Installation

Installs to ~/.claude/commands/jlaws-dotfiles-j-defrag.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/jlaws/dotfiles/HEAD/.claude/commands/j-defrag.md -o ~/.claude/commands/jlaws-dotfiles-j-defrag.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository