cmd-workflow-batch-refactor

Coordinate batch refactors across files with atomic commits and verification.

2|Updated Jan 3, 2026
One-click install
npx skills add https://github.com/jlaws/dotfiles --skill cmd-workflow-batch-refactor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cmd-workflow-batch-refactor
Source: https://github.com/jlaws/dotfiles/tree/main/.agents/skills/cmd-workflow-batch-refactor
Command: npx skills add https://github.com/jlaws/dotfiles --skill cmd-workflow-batch-refactor

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Batch refactors across many files to standardize patterns, reduce drift, and accelerate large-scale code improvements while preserving behavior.

Core Features & Use Cases

  • End-to-end batch planning: discovery, batching, approval, execution, and verification.
  • Safe grouping: split changes into independent batches to avoid cross-file dependencies.
  • PR-ready: produce small, atomic commits with descriptive messages for easy review.

Quick Start

Provide a list of target files and the desired refactor pattern to apply.

Frequently Asked Questions about cmd-workflow-batch-refactor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I apply a batch refactoring pattern across many files without changing behavior?

Batch refactoring applies a shared pattern across multiple files by grouping changes into independent batches with per-batch self-checks to preserve behavior. This coordinate workflow ensures large-scale code improvements avoid cross-file dependencies.

What is the best way to split a large codebase refactor into atomic commits?

Splitting a large codebase refactor into atomic commits uses a four-phase workflow: Discovery, Execution, Verification, and PR. This process groups target files into independent batches, producing small descriptive commits for easy code review.

Can I automate code review preparation for a 10+ file batch refactor?

Yes, you can automate code review preparation for batch refactors across 10+ files. The workflow generates PR-ready atomic commits with descriptive messages, ensuring changes are grouped safely and reviewed without cross-file dependencies.

How does the batching workflow handle cross-file dependencies during code refactoring?

The batching workflow handles cross-file dependencies by splitting refactoring goals into independent batches. During the Discovery and Execution phases, target files are grouped safely to prevent cross-file dependency conflicts before verification.

When do I need a four-phase workflow for batch code refactoring?

You need a four-phase batch code refactoring workflow when applying a shared pattern across 10+ files in a large codebase. The Discovery, Execution, Verification, and PR phases ensure standardization and reduce drift while preserving code behavior.