Repren — Code Quality skill for Claude Code
Power rename/refactor tool (now with Claude Code skill support.
How to install Repren
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open jlevy/repren and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Repren does
Power rename/refactor tool (now with Claude Code skill support!)
Alternatives in Code Quality
- Refactor — We are about to refactor code 1.6k ★
- Refactor Claude Md — Refactor CLAUDE.md by extracting sections to dedicated docs with path-scoped rules 1.6k ★
- Symfony TDD Pest — Start a TDD workflow using Pest PHP for Symfony with RED-GREEN-REFACTOR cycle 206 ★
README
repren

[!TIP] ✨✨ **NEW:** [v2.0.0](https://github.com/jlevy/repren/releases/tag/2.0.0) is out, refreshed for agent use! It’s self-documenting and has a self-installable skill.
Just tell Claude Code: *install repren as a skill, try uvx repren@latest --help*
Rename Anything
`repren` is a powerful CLI string replacement and file renaming tool for use by agents or humans for almost any search-and-replace or renaming task.
It is small, self-contained, self-documenting, and works on Python 3.10-3.14 with zero dependencies. Essentially, it is a general-purpose, brute-force text file refactoring tool.
For example, repren could rename occurrences of certain names in a set of source files, while simultaneously renaming the files and directories according to the same pattern and handling all case variations.
It’s more powerful than classic options like `perl -pie`, `rpl`, or `sed`:
**Replacements:** It allows rewriting file contents according to one or more literal or regular expression patterns.
**Renames:** It can also apply the patterns to rename or move files according to replacements on their full paths, creating directories as needed.
**Regexes:** It supports fully expressive regular expressions substitutions, including matching groups for back substitutions (like `\1`, `\2`, etc.).
**Simultaneous renames:** It performs simultaneous renamings: you can make as many replacements as you want and you can rename “foo” as “bar”, and “bar” as “foo” at once, without requiring a temporary intermediate rename.
**Good hygiene:** It is careful: it has a nondestructive “dry run” mode and prints clear stats on its changes. It leaves backups. File operations are done atomically, so interruptions never leave a previously existing file truncated or partly edited.
**Case preserving options:** It supports “magic” case-p
Related Skills
Socratic Log
Write a learning-journal entry now for what just landed (same format as auto-capture). Optionally pass a topic
Symfony TDD Phpunit
Start a TDD workflow using PHPUnit for Symfony with RED-GREEN-REFACTOR cycle
Htmlstyleguides 3qh
Refactor fencing video to use StickFight.attack() and contact-driven sparks
Logic Diff
Check two code versions for semantic equivalence — use after a refactor or rewrite
Fec Refactor Clean
Identify and clean up front-end dead code, unused exports, outdated components, styles and dependencies under
Fec TDD
Use front-end TDD workflow to implement functions, fix bugs, or refactor logic: first write failing tests, the
Related Agents
Wasp Refactor Executor
Execute mechanical refactorings (DRY, extract function, rename) while maintaining test green status. Optimized
[Architect] — Senior Technical Lead
Rename this role to anything. Change the persona. Keep the structure. ---
Dependency Tracer
Traces which components and scripts import a specific function from src/scripts/utils.js. Use when you're abou