orchestrate-batch-refactor
Skill4k starsChanged 9 months agoMITView on GitHub
Plan and execute large refactor or rewrite efforts efficiently with parallel multi-agent analysis and implementation. Use when a user asks to refactor many files, split workstreams, analyze a target code area, and coordinate sub-agents with clear ownership and dependency-aware execution.
Trending
Quiet since September.thin dataabout the whole repository
Who's talking about Dimillian/Skills
- sudosubin/agents.nix“agent-skills.github.dimillian.skills: init at 0-unstable-2026-03-29”GitHub · Sep 26, 2026
- TerminalSkills/skills“feat: port 13 skills from Dimillian/Skills (Thomas Ricouard) — swarm debugging, SwiftUI, macOS, batch …”GitHub · Mar 31, 2026
- dills122/wap-labs“Update Codex Skills”GitHub · Mar 6, 2026
- MartinP7r/tome“Support importing standalone SKILL.md from arbitrary GitHub repos (without plugin.json)”GitHub · Feb 24, 2026
- aiskillstore/marketplace“New plugins: 131 skills from Skills (medium risk)”GitHub · Jan 10, 2026
The biggest 5 of 7 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 7
Talked about on GitHub (7 times).
On GitHub · 7
- Sep 26, 2026agent-skills.github.dimillian.skills: init at 0-unstable-2026-03-29 — sudosubin/agents.nix0 reactions
- Mar 31, 2026feat: port 13 skills from Dimillian/Skills (Thomas Ricouard) — swarm debugging, SwiftUI, macOS, batch refactoring — TerminalSkills/skills0 reactions
- Mar 6, 2026Update Codex Skills — dills122/wap-labs0 reactions
- Feb 24, 2026Support importing standalone SKILL.md from arbitrary GitHub repos (without plugin.json) — MartinP7r/tome0 reactions
- Jan 10, 2026New plugins: 131 skills from Skills (medium risk) — aiskillstore/marketplace0 reactions
2 more on GitHub
- Jan 9, 2026Skills Public — SwiftOldDriver/iOS-Weekly0 reactions
- Jan 7, 2026[REQ] create agentic skill for writing dalec specs — project-dalec/dalec0 reactions
In this repository15 other files it gives its agents.
- app-store-changelogSkill
- bug-hunt-swarmSkill
- githubSkill
- ios-debugger-agentSkill
- macos-menubar-tuist-appSkill
- macos-spm-app-packagingSkill
- project-skill-auditSkill
- react-component-performanceSkill
- review-and-simplify-changesSkill
- review-swarmSkill
- swift-concurrency-expertSkill
- swiftui-liquid-glassSkill
- swiftui-performance-auditSkill
- swiftui-ui-patternsSkill
- swiftui-view-refactorSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. About 0 are common, 16 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈16
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use this skill to run high-throughput refactors safely.
- Distinctive: line 21
Use this skill for medium/large scope touching many files or subsystems.
- Distinctive: line 29
Run parallel analysis first.
- Distinctive: line 32
Ask each agent for: intent map, coupling risks, candidate work packets, required validations.
- Distinctive: line 35
Create work packets with clear file ownership and validation commands.
- Distinctive: line 43
Run targeted tests per packet, then broader suite for integrated scope.
- Distinctive: line 50
No parallel edits on overlapping file sets.
- Distinctive: line 51
Keep packet goals narrow and measurable.
- Distinctive: line 53
Prefer behavior-preserving refactors unless user explicitly requests behavior change.
- Distinctive: line 57
Every packet must include:
- Very specific: line 66
Use references/work-packet-template.md for the exact shape.
- Very specific: line 70
Use the prompt templates in references/agent-prompt-templates.md.
- Distinctive: line 76
Do not start worker execution before plan synthesis is complete.
- Distinctive: line 77
Do not parallelize across unresolved dependencies.
- Distinctive: line 78
Do not claim completion if any required packet check fails.
- Distinctive: line 79
Stop and re-plan when packet boundaries cause repeated merge conflicts.
- Distinctive: line 83
Run in this order:
- Distinctive: line 89
Prefer fast feedback loops, but never skip required behavior checks.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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.
Inputs
- Repo path and target scope (paths, modules, or feature area)
- Goal type: refactor, rewrite, or hybrid
- Constraints: behavior parity, API stability, deadlines, test requirements
When to Use Parallelization
- Use this skill for medium/large scope touching many files or subsystems.
- Skip multi-agent execution for tiny edits or highly coupled single-file work.
Core Workflow
- Define scope and success criteria.
- List target paths/modules and non-goals.
- State behavior constraints (for example: preserve external behavior).
- Run parallel analysis first.
- Split target scope into analysis lanes.
- Spawn
explorersub-agents in parallel to analyze each lane. - Ask each agent for: intent map, coupling risks, candidate work packets, required validations.
- Build one dependency-aware plan.
- Merge explorer output into a single work graph.
- Create work packets with clear file ownership and validation commands.
- Sequence packets by dependency level; run only independent packets in parallel.
- Execute with worker agents.
- Spawn one
workerper independent packet. - Assign explicit ownership (files/responsibility).
- Instruct every worker that they are not alone in the codebase and must ignore unrelated edits.
- Spawn one
- Integrate and verify.
- Review packet outputs, resolve overlaps, and run validation gates.
- Run targeted tests per packet, then broader suite for integrated scope.
- Report and close.
- Summarize packet outcomes, key refactors, conflicts resolved, and residual risks.
Work Packet Rules
- One owner per file per execution wave.
- No parallel edits on overlapping file sets.
- Keep packet goals narrow and measurable.
- Include explicit done criteria and required checks.
- Prefer behavior-preserving refactors unless user explicitly requests behavior change.
Planning Contract
Every packet must include:
- Packet ID and objective.
- Owned files.
- Dependencies (none or packet IDs).
- Risks and invariants to preserve.
- Required checks.
- Integration notes for main thread.
Use references/work-packet-template.md for the exact shape.
Agent Prompting Contract
- Use the prompt templates in
references/agent-prompt-templates.md. - Explorer prompts focus on analysis and decomposition.
- Worker prompts focus on implementation and validation with strict ownership boundaries.
Safety Guardrails
- Do not start worker execution before plan synthesis is complete.
- Do not parallelize across unresolved dependencies.
- Do not claim completion if any required packet check fails.
- Stop and re-plan when packet boundaries cause repeated merge conflicts.
Validation Strategy
Run in this order:
- Packet-level checks (fast and scoped).
- Cross-packet integration checks.
- Full project safety checks when scope is broad.
Prefer fast feedback loops, but never skip required behavior checks.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

