sed

Installation
SKILL.md

sed - Stream Editor with Interactive Preview

The sed module extends the classic stream editor by adding an interactive preview mode. Users can test their regex substitutions and see context differences (ctrl-s) in real-time before modifying files.

When to Activate

  • When the user wants to perform text search and replace operations.
  • When an interactive preview of regex effects is needed to avoid errors.
  • When performing bulk line deletions or insertions in files.
  • When using extended regular expressions for complex text manipulation.

Core Principles & Rules

  • Preview First: Encourage using the --fzfapp mode to verify changes visually.
  • Context Differences: Use ctrl-s within the interactive app to view diffs.
  • In-place Safety: Use -i carefully, preferably with a backup suffix.

Patterns & Examples

Installs
3
Repository
x-cmd/skill
GitHub Stars
21
First Seen
Apr 10, 2026
sed — x-cmd/skill