/frg:frg-replacefrom frg
Searches and replaces text across files with regex, multiline, case-insensitive options, and diff preview before applying changes.
Ships in frg. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use frg replace for codebase-wide search and replace. Shows a diff preview by default, applies changes with --write. Works on unindexed trees — no frg index required.
frg replace "old" "new" . # preview (dry-run)
frg replace "old" "new" . --write # apply changes
frg replace -i "old" "new" . # case-insensitive
frg replace -F "old.val" "new.val" . # fixed string
frg replace "fn (\w+)" "fn ${1}_v2" . # capture groups
frg replace --type ts "old" "new" . # filter by file type
frg replace '(?s)start\n.*?\nend' 'replaced' . # multiline
--writeWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub qhkm/fastripgrep --plugin frg2 skills in this plugin
Other plugins' skills for the same job