Orchestrate batch refactor

From sinhoneyy/master-skills · View interactive version

Orchestrate batch refactor is an AI agent skill from the GitHub repository sinhoneyy/master-skills. Plan and execute large refactors with dependency-aware work packets and parallel analysis.

How to use this skill

Skill file

Orchestrate Batch Refactor

Overview

Use this skill to run high-throughput refactors safely.

Analyze scope in parallel, synthesize a single plan, then execute independent work packets with sub-agents.

When to Use

Inputs

When to Use Parallelization

Core Workflow

  1. Define scope and success criteria.
  1. Run parallel analysis first.
  1. Build one dependency-aware plan.
  1. Execute with worker agents.
  1. Integrate and verify.
  1. Report and close.

Work Packet Rules

Planning Contract

Every packet must include:

  1. Packet ID and objective.
  2. Owned files.
  3. Dependencies (none or packet IDs).
  4. Risks and invariants to preserve.
  5. Required checks.
  6. Integration notes for main thread.

Use CODE0 for the exact shape.

Agent Prompting Contract

Safety Guardrails

Validation Strategy

Run in this order:

  1. Packet-level checks (fast and scoped).
  2. Cross-packet integration checks.
  3. Full project safety checks when scope is broad.

Prefer fast feedback loops, but never skip required behavior checks.

Limitations

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.