Skip to content
Agentmart
Submit a tool

find-replace

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

Skill by claude-mods

IndexedMIT★ 443
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/aiskillstore-find-replace

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

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.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/find-replace

Tools it pre-approves 1

From allowed-tools in SKILL.md: the agent may use these without asking you each time.

  • Bash

What's inside

Skill 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.
License
MIT
Compatibility
Requires sd CLI tool. Install: brew install sd (macOS) or cargo install sd (cross-platform).
Allowed tools
Bash
Metadata
author: claude-mods
Instructions
85 lines in SKILL.md · view on GitHub

Before installing

  • Pre-approves any shell command

Files (5)

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

SKILL.md (first lines)

# 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

| sed | sd |
|-----|-----|
| `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

| Character | Escape |
|-----------|--------|
| `.` | `\.` |
| `*` | `\*` |
| `[` `]` | `\[` `\]` |
| `$` | `\$` |
| `\` | `\\` |

## Tips

| Tip | Reason |
|-----|--------|
| Always preview with `rg -r` first | Avoid mistakes |
| Use git before bulk changes | Easy rollback |
| Use `\b` for word boundaries | Avoid partial matches |
| Quote patterns | Prevent shell interpretation |

## Additional Resources

For detailed patterns, load:
- `./references/advanced-patterns.md` - Regex, batch workflows, real-world examples

From aiskillstore/marketplace, MIT.

More from aiskillstore/marketplace

Signals

Stars
443
Forks
48
Open issues
1
Last commit (this folder)
Jul 5, 2026 (3 months ago)
Last release
Jul 22, 2026 (3 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

Same skill elsewhere

Copies of this SKILL.md published by others; search shows only one of them.

More from claude-mods

Cite this page

find-replace skill. Agent Mart. https://agentmart.dev/skills/aiskillstore-find-replace (last updated 2026-10-24)