batch-fix

Applies one mechanical fix across many skill, phase, and agent markdown files with parallel proposer agents and dual approval gates.

2|Updated Apr 4, 2026
One-click install
npx skills add https://github.com/DoctorMozg/claude-pipelines --skill batch-fix-doctormozg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: batch-fix
Source: https://github.com/DoctorMozg/claude-pipelines/tree/main/.claude/skills/batch-fix
Command: npx skills add https://github.com/DoctorMozg/claude-pipelines --skill batch-fix-doctormozg

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Applying the same compliance fix or mechanical rewrite across dozens of skill, phase, and agent files by hand is slow and error-prone. This Skill automates the sweep while keeping every change behind explicit human approval, so mass edits never slip through unreviewed. ## Core Features & Use Cases - Brief-to-criteria expansion: Converts a free-form task brief into numbered, deterministic check-and-fix criteria that proposer agents apply verbatim. - Parallel proposer dispatch: Fans out haiku proposer agents in waves of up to 6, each emitting targeted before/after edits per file without writing to plugin files directly. - Two approval gates: Presents the scoped file list and the aggregated unified diff via interactive prompts; nothing is applied without explicit user approval, and the skill never commits. - Use Case: After codifying a new guideline (e.g., every gate must end with a canonical approve/reject string), run batch-fix to retroactively enforce it across every SKILL.md, phase file, and agent file in the repo. ## Quick Start Ask the AI to batch-fix every skill file so that each Phase 1.5 gate ends with the canonical approve/reject/feedback string, then approve the scope and diff when prompted.

Frequently Asked Questions about batch-fix

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

FAQPage Schema
How do I apply the same edit across many markdown files at once?

Provide a free-form brief describing what to check and what to change. The skill expands it into numbered criteria, dispatches parallel proposer agents to generate per-file edits, and applies them only after you approve the scope and the aggregated diff.

What files does a batch compliance fix scan?

It scans three glob patterns: plugins/*/skills/**/SKILL.md, plugins/*/skills/**/phases/*.md, and plugins/*/agents/*.md. Files like plugin.json, scripts, and references are out of scope unless explicitly overridden.

When should I not use a batch fix workflow?

Avoid it for single-file fixes, which should use a direct Edit, and for refactoring logic or rewriting prose, since it only handles deterministic mechanical rewrites. Version bumps in plugin.json or marketplace.json belong to a dedicated versioning script.

Does batch-fix commit changes automatically?

No, it never commits. After edits are applied, a summary lists files changed, skipped, and failed, and the user commits manually when ready.

What happens when a proposer agent cannot apply a criterion?

A NEEDS_CONTEXT result triggers exactly one retry with clarified criteria; a second failure or a BLOCKED result is recorded in skipped.md and surfaced at the diff gate. Failed edits during apply are logged in apply_failures.md without aborting the rest.