Claude Skill
jlevy/repren
功能强大的 Python 命令行工具,使用正则表达式模式进行批量重命名和重构。现已集成 Claude Skill,可实现智能代码转换和自动化搜索替换操作。
概览
仓库信息
安装这个 Skill
uv tool install reprenRegistry 信息
uv tool install reprenuvx repren@latest --helpuvx repren@3.1.0 --helpuvx repren@latest --install-skill --projectuvx repren@latest --install-skill --global
项目简介
Repren 是一个强大的命令行工具,可使用正则表达式批量重命名和重构文件及内容,现已支持 Claude Skill,可实现智能代码转换。
Power rename/refactor tool (now with agent skill support!)
要点
- 使用正则表达式模式批量重命名文件和内容
- 支持自动化和脚本编写的命令行界面
- 支持复杂的搜索替换操作
- 集成 Claude Skill 实现 AI 辅助重构
- 使用 Python 编写,具有跨平台兼容性
使用场景
- 使用一致的命名约定重构代码库
- 批量重命名多个文件和目录
- 更新配置文件和文档
- 通过系统化文本替换迁移项目
- 自动化重复的文本转换任务
README 摘要
# repren  * * * > [!TIP] > **Coding agents:** tell your agent to run `uvx repren@latest --help` and follow the > instructions to install repren as a skill. Once installed, it uses repren automatically > for bulk refactors and renames. See [Agent Use](#agent-use). > [!NOTE] > **Zero runtime dependencies.** repren is a single file that imports only the Python > standard library, so there is no transitive dependency tree to audit or be compromised: > the only code `uvx repren@latest` runs is repren itself. * * * ## 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 runtime dependencies**. Essentially, it is a general-purpose, brute-force text file refactoring tool. **Coding agents:** point your agent at repren and it installs itself as a skill: > **Run `uvx repren@latest --help` and follow the instructions to install repren as a skill.** repren’s `--help` ends with the exact install commands. Once installed, the agent uses repren automatically for bulk refactors and renames. (See [Agent Use](#agent-use).) **Zero runtime dependencies.** Installing repren (or running `uvx repren@latest`) pulls in nothing but repren itself and the Python standard library, so there is no transitive dependency tree to audit or be compromised. It is a single file you can read end to end before trusting it. The dev-only tooling used to build and test repren (pytest, ruff, and so on) is never installed when you use it. For example, repren could rename occurrences of certain names in a set