sd
$ brew install sdFind and replace, code mods, and regex-lite edits from the terminal.
- sd fits git & github well, especially for find and replace, code mods, and regex-lite edits from the terminal.
- 2,459 homebrew installs (30d).
- Easy to automate.
- Good fit for coding-agent workflows and repeatable scripts.
- Output is mostly text-first, so verify results before scripting around it.
Sd guide
Find and replace, code mods, and regex-lite edits from the terminal. Built by chmln.
Open CLI packages the install path, verify step, and safe-start workflow so this tool can move from “interesting CLI” to something you can actually use. It also integrates with skills.sh so each CLI comes with the right companion skills, not just a binary and a docs link.
When to apply
- find and replace, code mods, and regex-lite edits from the terminal.
- You need productivity workflows in both local dev and CI.
- You need find and replace.
- You need code mods.
- You need regex-lite edits.
Quick reference
brew install sdsd --versionsd 'foo' 'bar' file.txtOpen CLI × skills.sh
Open CLI integrates sd with the right skills.sh companions so you get the tool and the workflow together.
Workflow Automation
Recommended pairingOpen CLI recommends this skills.sh skill because it fits productivity workflows. Turn repeated CLI sequences into cleaner, more reliable agent workflows.
$ npx skills add https://github.com/supercent-io/skills-template --skill workflow-automationUse sd together with the Workflow Automation skills.sh skill. Start with safe inspection commands, summarize what you find, and ask before any step with side effects.
Why this tool
- sd fits git & github well, especially for find and replace, code mods, and regex-lite edits from the terminal.
- 2,459 homebrew installs (30d).
- Easy to automate.
Watch-outs
- Output is mostly plain text.
- Start with read-only or dry-run commands.
Example workflow
1. sd 'foo' 'bar' file.txtSafe start
Install sd.
Run `sd --version` first.
Start with `sd 'foo' 'bar' file.txt`.
Install the CLI and make sure it is on your PATH.