---
name: parallel-sweep
description: Use when fixing widespread errors such as lint, type, test, or repetitive refactor issues that can be partitioned across file groups.
---

# Parallel Sweep

Use this skill when the task is a broad cleanup or repair pass and the work can be split by file group, feature area, or error class.

## Good Targets

- TypeScript error sweeps
- lint cleanup across separate modules
- repetitive API migration work
- broad test repair in disjoint areas

## Split Strategy

Prefer one of these:

- by directory
- by feature module
- by error family

Avoid splitting shared foundational files across multiple workers.

## Recommended Workflow

1. Run the failing command locally to see the error surface.
2. Cluster errors into disjoint work buckets.
3. Keep the shared or highest-risk bucket local.
4. Spawn `worker` agents for independent buckets.
5. Integrate and rerun the command.
6. Repeat until the sweep is complete or the remaining failures collapse to one root cause.

## Verification

- Always rerun the original failing command after integrating worker results.
- If a worker changed tests or configuration, check for regressions outside its bucket.
