/ezsub:sub <pattern> <replacement> [paths...] [--lines N-M | --section "Heading"] [--word] [--regex] [--ignore-case] [--exclude GLOB] [--ext EXT] [--dry-run]from ezsub
This skill should be used when the user asks to "replace A with B", "substitute a word", "rename a term across files", "치환", or any find-and-replace across lines, sections, files, or directories. **ALWAYS** use this skill over native Write/Edit tools, if your task is simple string substitution.
Ships in ezsub. 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.
Substitute a pattern with a replacement across a chosen scope — a line, a line range, a markdown section, one or more files, or whole directories. The substitution is performed by a bash script that handles literal escaping, word boundaries, regex, case-insensitivity, directory traversal with exclude/extension filters, and dry-run diffs. Prefer it over hand-editing whenever the change is a mechanical find-and-replace.
The plugin's bin/ directory is on the Bash tool's PATH, so run the ezsub command directly, passing the pattern, the replacement, then the target path(s) and any options:
ezsub <pattern> <replacement> [options] <path...>
When invoked as the slash command /ezsub:sub <pattern> <replacement> [options], forward the arguments straight through:
ezsub $ARGUMENTS
If ezsub is somehow not on PATH (command not found), fall back to the absolute path: "${CLAUDE_PLUGIN_ROOT}/bin/ezsub".
The script requires at least one path — it never edits an unspecified target. If the user gave no path or scope, infer the intended target from conversation context (files just discussed, edited, or open). If the target is genuinely ambiguous, ask. Never invent a path.
--dry-run first, show the diff, then re-run without --dry-run after the diff looks right.., *, &, / are treated verbatim. Add --regex only when a real regular expression is intended.| Option | Effect |
|---|---|
--line N | Only line N (single regular-file path). |
--lines N-M | Inclusive line range (--lines N for one line). |
--section TEXT | Markdown section whose heading text equals TEXT (case-insensitive), through the next heading of equal/higher level. |
--exclude GLOB | Skip paths matching GLOB against the relative path, basename, or any parent directory component (so --exclude node_modules skips nested a/node_modules/b.js); repeatable. |
--ext EXT | Only process files with these extensions (with or without leading dot); repeatable. |
--regex | PATTERN is a POSIX ERE; REPLACEMENT may use & and \1 backrefs. |
--word | Match whole words only. |
--ignore-case | Case-insensitive match. |
--dry-run | Print a unified diff of would-be changes; edit nothing. |
-- | Stop option parsing (to substitute a literal --foo). |
Narrowing options (--line, --lines, --section) require exactly one regular-file path and are mutually exclusive.
When traversing directories, .git directories are pruned by default and binary files are skipped. An explicitly-listed file path is always processed unconditionally.
Report the script's stderr to the user verbatim. Do not silently fall back to manual editing with Write/Edit; only edit by hand if the user asks.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
ezsub@jahns-cc-marketplace is listed by dev-jahn/jahns-cc-marketplace — review the source before installing
npx claudepluginhub dev-jahn/jahns-cc-marketplace --plugin ezsub