batch-operations

Applies pattern-based search-and-replace modifications across multiple files in a codebase.

2|Updated May 30, 2026
One-click install
npx skills add https://github.com/virahitvin8/crafty-gis --skill batch-operations-virahitvin8
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: batch-operations
Source: https://github.com/virahitvin8/crafty-gis/tree/main/GIT_STAR/.agent/skills/batch-operations
Command: npx skills add https://github.com/virahitvin8/crafty-gis --skill batch-operations-virahitvin8

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Making the same change across dozens of files by hand is slow and error-prone. This Skill standardizes multi-file edits like renames, import updates, and version bumps with a preview-first, verify-after workflow. ## Core Features & Use Cases - Pattern-Based Bulk Edits: Find and replace text patterns across file globs using grep, sed, or PowerShell. - Preview and Verification Protocol: Lists affected files before modifying and confirms zero missed instances plus passing builds afterward. - Common Batch Recipes: Covers renaming imports, updating versions in package.json files, adding exports, and migrating deprecated APIs. - Use Case: Rename a function used in 40 TypeScript files, preview every match, apply the change with sed, then run tests to confirm nothing broke. ## Quick Start Ask the AI to rename a function across all TypeScript files in the src directory and verify the change with a build.

Frequently Asked Questions about batch-operations

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

FAQPage Schema
How do I rename a function across multiple files?

First preview all matches with grep -rn to list affected files, then apply the replacement with sed on Linux/macOS or PowerShell on Windows. Afterward, confirm no old references remain and run the build and tests to catch breakage.

How to find and replace text across an entire codebase?

Use grep -rl to list files containing the pattern, then run find with sed -i for in-place replacement scoped by file glob. Always preview matches first and exclude directories like tests that may need different handling.

Can I batch update version numbers in package.json files?

Yes. Locate all package.json files with a glob pattern, preview the current version strings, then replace them consistently across every file. Verify by grepping for the new version and running the install or build step.

When should I not use batch find and replace?

Avoid batch operations for single-file edits, changes requiring per-file judgment, or replacements where context differs between matches. In those cases, edit files individually or delegate per-domain changes to separate review.

Why did my sed batch replacement break the build?

Breakage usually comes from overly broad patterns matching unintended text or skipping the preview step. Check git diff to review every change, narrow the pattern or file scope, and rerun tests after correcting.