Agent skill

Find Replace

by aiskillstore in aiskillstore/marketplace

Modern find-and-replace using sd (simpler than sed) and batch replacement patterns.

MITAuto-check: notes

Install Find Replace

skills CLI
$ npx skills add aiskillstore/marketplace --skill find-replace -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install aiskillstore/marketplace find-replace --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/aiskillstore/marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/0xdarkmatter/find-replace .claude/skills/find-replace && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
find-replace
GitHub stars
430
Used in
1 other repo
Token cost
~527 tokens
SKILL.md length
92 words
Files
5 (incl. scripts, references, assets)
Skills in repo
1,085
Repo updated
First seen
Licence
MIT

At a glance

Modern find-and-replace using sd (simpler than sed) and batch replacement patterns.

  • Sed replacement
  • SKILL.md covers sd Basics, sd vs sed, Common Patterns and Safe Batch Workflow, plus 3 more sections
  • Calls rg and git
  • String replacement

What it does

Find Replace is an agent skill from aiskillstore/marketplace. Modern find-and-replace using sd (simpler than sed) and batch replacement patterns. Triggers on: sd, find replace, batch replace, sed replacement, string replacement, rename.

Its SKILL.md is about 530 tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including scripts, reference files and assets (for example `references/advanced-patterns.md` and `skill-report.json`). Compatibility notes: Requires sd CLI tool. Install: brew install sd (macOS) or cargo install sd (cross-platform).

The repository describes itself as: Security-audited skills for Claude, Codex & Claude Code. One-click install, quality verified. The licence is MIT.

When your agent uses it

  • Sed replacement
  • String replacement

Example prompts

  • “/find-replace”

Requirements

  • Compatibility (from SKILL.md): Requires sd CLI tool. Install: brew install sd (macOS) or cargo install sd (cross-platform).
  • Pre-approved tools (allowed-tools): Bash

What it can do on your machine

Read from SKILL.md and the folder at commit 4ac52da. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/, which the agent can run.

    Shell commands in SKILL.md call:

    • rg
    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Requires sd CLI tool. Install: brew install sd (macOS) or cargo install sd (cross-platform).

    From compatibility in the SKILL.md frontmatter.

Context cost

Find Replace loads about 527 tokens when it runs, and up to ~1.9k if it reads all its reference files. Until then it costs about 47 tokens; SKILL.md has 92 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~47
When it runs · the whole SKILL.md, loaded when a task matches
~527
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Bash

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from aiskillstore/marketplace at commit 4ac52da, republished under its MIT licence (© aiskillstore). 92 words, ~527 tokens.

Download SKILL.mdSave it as .claude/skills/find-replace/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
find-replace
description
Modern find-and-replace using sd (simpler than sed) and batch replacement patterns. Triggers on: sd, find replace, batch replace, sed replacement, string replacement, rename.
allowed-tools
Bash
compatibility
Requires sd CLI tool. Install: brew install sd (macOS) or cargo install sd (cross-platform).
license
MIT
metadata.author
claude-mods

Find Replace

Modern find-and-replace using sd.

sd Basics

bash
# Replace in file (in-place)
sd 'oldText' 'newText' file.txt

# Replace in multiple files
sd 'oldText' 'newText' *.js

# Preview without changing (pipe)
cat file.txt | sd 'old' 'new'

sd vs sed

sedsd
sed 's/old/new/g'sd 'old' 'new'
sed -i 's/old/new/g'sd 'old' 'new' file
sed 's#path/to#new/path#g'sd 'path/to' 'new/path'

Key difference: sd is global by default, no delimiter issues.

Common Patterns

bash
# Variable/function rename
sd 'oldName' 'newName' src/**/*.ts

# Word boundaries (avoid partial matches)
sd '\boldName\b' 'newName' src/**/*.ts

# Import path update
sd "from '../utils'" "from '@/utils'" src/**/*.ts

# Capture groups
sd 'console\.log\((.*)\)' 'logger.info($1)' src/**/*.js

Safe Batch Workflow

bash
# 1. List affected files
rg -l 'oldPattern' src/

# 2. Preview replacements
rg 'oldPattern' -r 'newPattern' src/

# 3. Apply
sd 'oldPattern' 'newPattern' $(rg -l 'oldPattern' src/)

# 4. Verify
rg 'oldPattern' src/  # Should return nothing
git diff              # Review changes

Special Characters

CharacterEscape
.\.
*\*
[ ]\[ \]
$\$
\\\

Tips

TipReason
Always preview with rg -r firstAvoid mistakes
Use git before bulk changesEasy rollback
Use \b for word boundariesAvoid partial matches
Quote patternsPrevent shell interpretation

Additional Resources

For detailed patterns, load:

  • ./references/advanced-patterns.md - Regex, batch workflows, real-world examples

© aiskillstore, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (scripts, references, assets) in skills/0xdarkmatter/find-replace of aiskillstore/marketplace.

  • SKILL.md
  • assets/.gitkeep
  • references/advanced-patterns.md
  • scripts/.gitkeep
  • skill-report.json

Open the folder on GitHubat commit 4ac52da

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in aiskillstore/marketplace, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Find Replace next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Find Replace compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Find Replace this skillaiskillstore/marketplace4301 repos~527Automated safety check: NotesMIT
Batchasgeirtj/system_prompts_leaks69k—~1.3kAutomated safety check: PassCC0-1.0
Batchcodewhale-hq/Codewhale41k—~157Automated safety check: PassMIT
Resume Modernnexu-io/open-design100k—~398Automated safety check: PassApache-2.0
Modern Formatthedaviddias/Front-End-Checklist74k—~780Automated safety check: PassMIT
React Modernizationwshobson/agents40k10 repos~1.7kAutomated safety check: PassMIT

Similar skills

  • Batch

    asgeirtj/system_prompts_leaks

    Research and plan a large-scale change, then execute it in parallel across 5–30 isolated worktree agents that each open a PR.

    69k GitHub stars~1.3k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Batch

    codewhale-hq/Codewhale

    Break a large, parallelizable goal into bounded work units, coordinate existing agent/worktree machinery, integrate, and verify.

    41k GitHub stars~157 tokensUpdated today
    DevelopmentAuto-check passed
  • Resume Modern

    nexu-io/open-design

    Modern minimal resume, single A4 page, ready for print or PDF export.

    100k GitHub stars~398 tokensUpdated today
    Documents & OfficeAuto-check passed
  • Modern Format

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing image assets, markup, and CDN or build transforms related to Use modern image formats (WebP, AVIF).

    74k GitHub stars~780 tokensUpdated yesterday
    Auto-check passed
  • React Modernization

    wshobson/agents

    Upgrade React applications to latest versions, migrate from class components to hooks, and adopt concurrent features.

    40k GitHub starsUsed in 10 repos~1.7k tokens
    DevelopmentAuto-check passed
  • Doc And Modernize

    github/awesome-copilot

    Official

    Two related workflows for a locally-cloned codebase, in one skill.

    40k GitHub stars~12k tokensUpdated today
    DevelopmentAuto-check passed

More from aiskillstore/marketplace

All 1,085 skills in this repo
  • Code Stats

    aiskillstore/marketplace

    Analyze codebase with tokei (fast line counts by language) and difft (semantic AST-aware diffs).

    430 GitHub starsUsed in 2 repos~697 tokens
    Auto-check: notes
  • Data Processing

    aiskillstore/marketplace

    Process JSON with jq and YAML/TOML with yq. An agent skill from aiskillstore/marketplace.

    430 GitHub starsUsed in 1 repo~720 tokens
    Auto-check: notes
  • Doc Scanner

    aiskillstore/marketplace

    Scans for project documentation files (AGENTS.md, CLAUDE.md, GEMINI.md, COPILOT.md, CURSOR.md, WARP.md, and 15+ other formats) and synthesizes guidance.

    430 GitHub starsUsed in 1 repo~644 tokens
    Auto-check: notes
  • File Search

    aiskillstore/marketplace

    Modern file and content search using fd, ripgrep (rg), and fzf.

    430 GitHub starsUsed in 1 repo~598 tokens
    Auto-check: notes
  • Investigating Codebases

    aiskillstore/marketplace

    Automatically activated when user asks how something works, wants to understand unfamiliar code, needs to explore a new codebase, or asks questions like "where is X implemented?", "how does Y…

    430 GitHub starsUsed in 1 repo~2.7k tokens
    Auto-check: notes
  • Project Planner

    aiskillstore/marketplace

    Detects stale project plans and suggests session commands. An agent skill from aiskillstore/marketplace.

    430 GitHub starsUsed in 1 repo~504 tokens
    Auto-check passed

Questions about Find Replace

What does Find Replace do?

Modern find-and-replace using sd (simpler than sed) and batch replacement patterns. Find Replace is an agent skill from aiskillstore/marketplace. Modern find-and-replace using sd (simpler than sed) and batch replacement patterns.

When should I use Find Replace?

Find Replace fits situations like: sed replacement; string replacement.

How do I install Find Replace in Claude Code?

Run `npx skills add aiskillstore/marketplace --skill find-replace -a claude-code`. Or copy the skill folder (skills/0xdarkmatter/find-replace in aiskillstore/marketplace) into .claude/skills/find-replace in your project. Claude Code loads it when a task matches its description.

How do I install Find Replace in Codex?

Run `npx skills add aiskillstore/marketplace --skill find-replace -a codex`. Or copy the skill folder (skills/0xdarkmatter/find-replace in aiskillstore/marketplace) into .agents/skills/find-replace in your project. Codex loads it when a task matches its description.

Can I use Find Replace in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aiskillstore/marketplace --skill find-replace -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/find-replace, .gemini/skills/find-replace, .github/skills/find-replace and .opencode/skills/find-replace in your project.

What does Find Replace need to run?

Going by SKILL.md and its folder, Find Replace needs the command-line tools its instructions call (rg and git). Its frontmatter pre-approves these tools: Bash. Compatibility (from SKILL.md): Requires sd CLI tool. Install: brew install sd (macOS) or cargo install sd (cross-platform)..

Does Find Replace access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Find Replace safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Find Replace use?

Find Replace is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Find Replace use?

About 527 tokens (SKILL.md is roughly 2.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.4k tokens, read only when the agent opens those files.

What are the alternatives to Find Replace?

Skills that share tags, products or a category with Find Replace: Batch (asgeirtj/system_prompts_leaks, 69k stars), Batch (codewhale-hq/Codewhale, 41k stars), Resume Modern (nexu-io/open-design, 100k stars) and Modern Format (thedaviddias/Front-End-Checklist, 74k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Find Replace?

aiskillstore (a GitHub organization) maintains it in aiskillstore/marketplace, which has 430 GitHub stars. The repository holds 1,085 skills in this directory. The repository was last updated on October 7, 2026.

Source: aiskillstore/marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.