sd

scriptableproductivity
$ brew install sd
Summary

Find 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.
github-sd-SKILL.md

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

Installbrew install sd
Verifysd --version
First real commandsd 'foo' 'bar' file.txt

Open 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 pairing

Open CLI recommends this skills.sh skill because it fits productivity workflows. Turn repeated CLI sequences into cleaner, more reliable agent workflows.

View on skills.sh
$ npx skills add https://github.com/supercent-io/skills-template --skill workflow-automation
Starter prompt

Use 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.txt

Safe start

Step 1

Install sd.

Step 2

Run `sd --version` first.

Step 3

Start with `sd 'foo' 'bar' file.txt`.

Step 4

Install the CLI and make sure it is on your PATH.

Alternatives worth considering