Quickstart

From javimosch/supercli · View interactive version

Quickstart is an AI agent skill from the GitHub repository javimosch/supercli. Use this skill when the user wants to find and replace text in files, especially with regex patterns, or when they need an easier alternative to sed for text transformation.

How to use this skill

Skill file

sd Plugin

Intuitive find & replace CLI — sed alternative with regex support. ~11x faster than sed.

Commands

Find & Replace

Args (all structured commands)

Usage Examples

Installation

cargo install sd
sc plugins install ./plugins/sd --on-conflict replace --json

sc Command Examples

# In-place replacement
sc sd replace file --find "before" --replace "after" --file config.txt

# Preview (no modification)
sc sd replace preview --find "before" --replace "after" --file config.txt

# Fixed literal string (no regex)
sc sd replace fixed --find "hello.world" --replace "hi" --file config.txt

# Capture groups
sc sd replace file --find "(\w+)=(\w+)" --replace "$1: $2" --file env.txt

# Multi-file (via replace run)
sc sd replace run --find "oldname" --replace "newname" --files "*.txt"

# Cross-line (dot matches \n)
sc sd replace across --find "hello.world" --replace "hi universe" --file data.txt

Raw sd examples (via passthrough)

# Trim trailing whitespace
echo "lorem ipsum 23   " | sd '\s+$' ''

# Capture groups on stdin
echo "cargo +nightly watch" | sd '(\w+)\s+\+(\w+)\s+(\w+)' 'cmd: $1, channel: $2, subcmd: $3'

Key Features

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.