batch

Run parallel code transformations across isolated git worktrees.

2|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/hamzaPixl/pixl-ai --skill batch-hamzapixl
Or copy as Structured Prompt for Agentā–¼
Please help me install this Agent Skill.
Skill: batch
Source: https://github.com/hamzaPixl/pixl-ai/tree/main/packages/crew/skills/batch
Command: npx skills add https://github.com/hamzaPixl/pixl-ai --skill batch-hamzapixl

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Applying the same code change across many files, modules, or services can be time‑consuming and error‑prone, especially when the transformation must run in isolation to avoid merge conflicts. This Skill decomposes large‑scale refactors, migrations, or repetitive edits into independent units that run concurrently in separate git worktrees, ensuring safe parallel execution and reliable merging.

Core Features & Use Cases

  • Scope Analysis: Parses user‑provided transformation description and target scope, enumerating files with glob/grep.
  • Decomposition: Splits the workload into up to 10 disjoint units, each with its own prompt and success criteria.
  • Parallel Execution: Launches isolated agents (worktree isolation) to apply transformations concurrently, handling verification per unit.
  • Merge Strategies: Offers per‑unit PR creation, single‑branch aggregation, or direct application to the current branch.
  • Use Cases: Large migrations (e.g., switching testing frameworks), batch code style updates, dependency upgrades, or any repeatable change across a codebase.

Quick Start

Ask the batch skill to migrate all Jest tests to Vitest across the src directory.

Frequently Asked Questions about batch

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

FAQPage Schema
How do I run parallel code migrations across multiple files without merge conflicts?ā–¼

Parallel code migrations can run safely by decomposing the workload into up to ten disjoint units and executing each transformation in an isolated git worktree. This prevents concurrent edit conflicts and ensures reliable merging.

What is the best way to batch refactor a large codebase into independent tasks?ā–¼

Batch refactoring a large codebase involves parsing the target scope with glob and grep, splitting the files into independent units, and launching isolated agents to apply transformations concurrently across separate worktrees.

Can I use git worktrees to run repetitive code style updates concurrently?ā–¼

Git worktrees are required to run repetitive code style updates concurrently, providing the necessary isolation to apply batch transformations safely without interfering with other parallel tasks.

Does batch code transformation support automated PR creation for each worktree unit?ā–¼

Batch code transformation supports optional PR creation tooling to merge results, allowing each isolated worktree unit to generate its own pull request or aggregate changes into a single branch.

What are the limitations of using parallel worktrees for large-scale refactoring?ā–¼

Large-scale refactoring using parallel worktrees is limited to a maximum of ten disjoint units, requiring the target files to be divisible into independent tasks to ensure safe parallel execution without overlap.

Do I need worktree isolation to migrate testing frameworks across a directory?ā–¼

Worktree isolation is required to migrate testing frameworks across a directory, ensuring each transformation runs independently to avoid merge conflicts and enable reliable batch processing.