repren

Automates multi-pattern search-and-replace and file renaming across codebases via Bash.

75|7|Updated Jan 8, 2026
One-click install
npx skills add https://github.com/jlevy/tbd --skill repren
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: repren
Source: https://github.com/jlevy/tbd/tree/main/.claude/skills/repren
Command: npx skills add https://github.com/jlevy/tbd --skill repren

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Repren solves the need for scalable codebase refactoring by enabling simultaneous multi-pattern search-and-replace, file and directory renaming, and case-preserving transformations across large codebases.

Core Features & Use Cases

  • Perform multiple simultaneous pattern replacements across many files to refactor identifiers, API names, or constants.
  • Rename files and directories based on content patterns while preserving directory structure and minimizing conflicts.
  • Case-preserving transformations to handle camelCase, PascalCase, snake_case, and UPPER_CASE updates consistently across the project.

Quick Start

Use the repren skill to perform a safe dry-run across your project before applying changes, for example: uvx repren@latest --patterns=patterns.txt --full src/

Frequently Asked Questions about repren

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

FAQPage Schema
How do I safely perform a bulk search-and-replace across a large codebase?

Bulk codebase refactoring can be performed safely by running a dry-run with simultaneous multi-pattern search-and-replace before applying changes. You define patterns in a text file and execute the tool against your source directory to preview all substitutions.

What is the best way to rename files and directories while also updating their content references?

Renaming files and directories while updating content references is handled by applying pattern-based workflows that target both file names and file contents simultaneously. This preserves your directory structure and minimizes conflicts during sweeping codebase renames.

How do I refactor identifiers across camelCase, snake_case, and UPPER_CASE consistently?

Case-preserving transformations handle camelCase, snake_case, PascalCase, and UPPER_CASE updates consistently across a project. This ensures that identifiers and constants are refactored accurately without breaking the casing conventions of different code sections.

Can I preview multi-pattern code refactoring changes before committing them?

You can preview multi-pattern code refactoring changes by executing a dry-run. The tool processes your specified patterns against the project directory and outputs a preview of all substitutions, allowing you to audit edits before applying them.

Does repren work with any specific programming language or framework?

The tool operates on plain text patterns and is not restricted to any specific programming language or framework. It targets large codebases by performing string-level multi-pattern substitutions and file renaming based on the patterns you provide.

How do I automate sweeping API name and constant updates across multiple files?

Automating sweeping API name and constant updates across multiple files is done by listing the old and new identifiers in a patterns file. The tool then performs simultaneous multi-pattern replacements across the targeted project directories.

Related Skills