mit einem Klick
repren
强大重命名/重构工具 Skill:367 Stars,代码批量修改
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
Menü
强大重命名/重构工具 Skill:367 Stars,代码批量修改
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
Basierend auf der SOC-Berufsklassifikation
Implements Figma designs to exact 1:1 fidelity by decomposing them into sub-components and building bottom-up with self-correcting validation loops. This skill should be used when implementing UI from Figma files, when a Figma URL is provided, or when the user mentions "implement design", "figma to code", "build from figma", "convert figma", "break down this design", "implement page", "implement component", "generate code", "build Figma design", or "pixel perfect". Works for both full pages and single components. Requires Figma MCP server connection. Do not use for non-Figma design tasks or when the user only wants a screenshot or metadata without implementation.
MCP bundle package
MCP bundle package
AI 研究全流程 Skill:实验设计/数据处理/模型训练/论文写作,1.6K Stars
精选 Claude Code 技能/Hook/命令清单:22K Stars,一站式资源导航
查找 Skill/Agent/命令的一站式枢纽:2.3K Stars,生态导航
| id | skill-repren |
| name | Repren Refactoring |
| version | 1.0.0 |
| description | 强大重命名/重构工具 Skill:367 Stars,代码批量修改 |
| category | prompt |
| tags | ["refactoring","rename","batch","code-modification"] |
| author | jlevy |
| repositoryUrl | https://github.com/jlevy/repren |
| parameters | {"transport":"bundle","configTemplate":"{\"name\": \"Repren Refactoring\", \"transport\": \"bundle\", \"type\": \"mcp\"}"} |
Full documentation: Run
uvx repren@latest --docsfor all options, flags, and advanced usage.
Multi-pattern search/replace tool for bulk refactoring with simultaneous replacements, file/directory renaming, and case-preserving transformations.
Always start with dry-run to preview changes:
uvx repren@latest --from='old_name' --to='new_name' --full --dry-run src/
Then execute if output looks correct:
uvx repren@latest --from='old_name' --to='new_name' --full src/
Use repren for:
Don’t use repren for:
Create a patterns file with tab-separated pairs:
old_function new_function
OldClass NewClass
CONSTANT_OLD CONSTANT_NEW
Apply all patterns at once:
uvx repren@latest --patterns=patterns.txt --full src/
Repren handles overlapping patterns intelligently: you can swap names (foo↔bar) in a single pass.
Handle all case variants automatically:
uvx repren@latest --from='my_var' --to='my_function' --preserve-case --full src/
Transforms: my_var→my_function, myVar→myFunction, MyVar→MyFunction,
MY_VAR→MY_FUNCTION.
With --full, in addition to searching and replacing content, repren will rename files
and directories matching the patterns.
uvx repren@latest --from='old_module' --to='new_module' --full src/
Renames files and directories, creating parent directories as needed. Files never clobber: numeric suffixes are added if conflicts arise.
Use full Python regex syntax with backreferences:
uvx repren@latest --from='figure ([0-9]+)' --to='Figure \1' --full docs/
Pattern file example:
def (\w+)\(self\) def \1(self, context)
class Old(\w+) class New\1
All modifications create .orig backup files automatically. Original files never
truncated on errors.
Always preview changes first:
uvx repren@latest --dry-run --patterns=patterns.txt --full mydir/
Shows exactly what would change without modifying files.
Restore from backups if needed:
uvx repren@latest --undo --from='old' --to='new' --full src/
Remove backups when satisfied:
uvx repren@latest --clean-backups src/
uvx repren@latest --from='OldName' --to='NewName' --preserve-case --word-breaks --full --dry-run src/
uvx repren@latest --from='OldName' --to='NewName' --preserve-case --word-breaks --full src/
uvx repren@latest --clean-backups src/
Include only specific file types:
uvx repren@latest --patterns=patterns.txt --include='.*\.(py|pyi)$' --full src/
Exclude directories:
uvx repren@latest --patterns=patterns.txt --exclude='tests|node_modules|__pycache__' --full src/
Match only at word boundaries (safer for variable names):
uvx repren@latest --from='var' --to='variable' --word-breaks --full src/
Treat patterns as literal strings (not regex):
uvx repren@latest --from='file.txt' --to='data.txt' --literal --full docs/
Process entire files at once for patterns spanning lines:
uvx repren@latest --patterns=patterns.txt --at-once --full src/
Use JSON format for programmatic processing:
uvx repren@latest --format=json --from='old' --to='new' --full src/
Returns structured data about all changes made.
Most important flags (run uvx repren@latest --docs for complete list):
| Flag | Purpose |
|---|---|
--full | Apply to files AND rename them (not just stdin/stdout) |
--dry-run, -n | Preview without modifying |
--patterns=FILE | Use multi-pattern file instead of single --from/--to |
--preserve-case | Handle camelCase, snake_case, PascalCase, UPPER_CASE variants |
--word-breaks | Match only at word boundaries (safer for identifiers) |
--at-once | Process entire file (needed for multi-line patterns) |
--format=json | Machine-parseable output for scripts |
--undo | Restore from .orig backups |
--clean-backups | Remove backup files |
Tab-separated pattern/replacement pairs:
pattern<TAB>replacement
another<TAB>replacement
# Comments start with #
Supports regex with capture groups (\w+) and backreferences \1, \2. First match
wins for overlaps.
--at-once for full-file.), customizable with --exclude.orig by default) always ignored in recursive operations