Go-Replace File Utility

•
56
•

Automates complex text and pattern replacement across multiple files using flexible matching modes.

The go-replace skill empowers Claude to perform advanced search-and-replace operations across your codebase or configuration files with high precision. It supports four distinct modes—standard text replacement, whole-line substitution, 'line-in-file' for idempotent configuration management, and Go template processing. By leveraging concurrent processing and regex support, this skill is ideal for bulk refactoring, automating documentation updates, and managing environment-specific configurations across large directories.

主要功能

01Recursive directory scanning and batch file processing capabilities
02Support for both simple string patterns and complex regular expressions
03Native Go template engine integration for dynamic content generation
04Four versatile replacement modes: text, line, lineinfile, and template
0552 GitHub stars
06High-performance concurrent processing for large-scale file updates

使用场景

01Automating complex document updates using Go templates for dynamic variable injection
02Managing configuration files by ensuring specific lines or blocks exist using lineinfile mode
03Bulk refactoring of variable names, namespaces, or strings across an entire codebase