AI SummaryMulti-pattern search/replace tool for bulk refactoring with simultaneous replacements, file/directory renaming, and case-preserving transformations. Then execute if output looks correct:
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to install the "repren" skill in my project. Please run this command in my terminal: # Install skill into your project mkdir -p .claude/skills/skills && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/skills/SKILL.md "https://raw.githubusercontent.com/jlevy/repren/master/repren/skills/SKILL.md" Then restart Claude Code (or reload the window in Cursor) so the skill is picked up.
Description
Performs simultaneous multi-pattern search-and-replace, file/directory renaming, and case-preserving refactoring across codebases. Use for bulk refactoring, global find-and-replace, or when user mentions repren, multi-file rename, or pattern-based transformations.
Repren - Multi-Pattern Search and Replace
> **Full documentation: Run uvx repren@latest --docs for all options, flags, and > advanced usage.** Multi-pattern search/replace tool for bulk refactoring with simultaneous replacements, file/directory renaming, and case-preserving transformations.
Quick Start
Always start with dry-run to preview changes: `bash uvx repren@latest --from='old_name' --to='new_name' --full --dry-run src/ ` Then execute if output looks correct: `bash uvx repren@latest --from='old_name' --to='new_name' --full src/ `
When to Use Repren
Use repren for: • Large-scale code refactoring (renaming across many files) • Simultaneous multi-pattern replacements • File and directory renaming based on content patterns • Case-preserving identifier transformations • Operations requiring dry-run validation and backups • Swapping or circular renames (foo↔bar) Don’t use repren for: • Single-file small edits or replacements (use Edit tool instead) • Language-aware semantic refactoring (use AST tools like ast-grep, ts-morph) • Operations requiring precise line-by-line control (use Edit tool)
Simultaneous Multi-Pattern Replacement
Create a patterns file with tab-separated pairs: ` old_function new_function OldClass NewClass CONSTANT_OLD CONSTANT_NEW ` Apply all patterns at once: `bash uvx repren@latest --patterns=patterns.txt --full src/ ` Repren handles overlapping patterns intelligently: you can swap names (foo↔bar) in a single pass.
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster