Nimbalyst

Refactor Claude Md — Code Quality skill for Claude Code

Code Quality community

Refactor CLAUDE.md by extracting sections to dedicated docs with path-scoped rules.

How to install Refactor Claude Md

Installs to ~/.claude/commands/nimbalyst-nimbalyst-refactor-claude-md.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/Nimbalyst/nimbalyst/HEAD/.claude/commands/refactor-claude-md.md -o ~/.claude/commands/nimbalyst-nimbalyst-refactor-claude-md.md

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

What Refactor Claude Md does


description: Refactor CLAUDE.md by extracting sections to dedicated docs with path-scoped rules

You are helping refactor a CLAUDE.md file to reduce its size while preserving guidance through dedicated documentation files and path-scoped rules.

Process

  1. **Read and analyze** the current CLAUDE.md file in its entirety

  2. **Identify extraction candidates** - sections that are:

    • Cross-cutting patterns (not core setup/architecture)
    • Specific to certain file types or components

Alternatives in Code Quality

  • Refactor — We are about to refactor code 1.6k ★
  • Repren — Power rename/refactor tool (now with Claude Code skill support 371 ★
  • Symfony TDD Pest — Start a TDD workflow using Pest PHP for Symfony with RED-GREEN-REFACTOR cycle 206 ★

Full documentation available on GitHub

View Source Repository