Apply refactors across multiple files
batch-rewrite-patternskillsetup L2★64
Tibsfox/gsd-skill-creator ↗What it does
Cascade identical edits across N files safely
Best for
Apply identical refactor (rename symbol, swap import, migrate signature) across many files in single planned batch rather than N manual passes.
Inputs
- · before pattern (regex or literal)
- · after pattern
- · file set matching criteria
Outputs
- · single commit with batch changes
- · verification that before → after uniformly applied
Requires
- · sed
- · git
- · grep
Preconditions
Deterministic transformation, N ≥ 4 files, dry-run verified
Failure modes
- · partial cascade leaving inconsistent state
- · collateral damage to unrelated context
- · variant transformations mixed without plan
Trust signals
- · Dry-run on 1-2 candidates before full cascade
- · Single commit with file list
- · Verification regex to confirm before gone, after uniform