A skill your agent uses when performing text find & replace, batch transformations across files, or when JavaScript-style regex syntax is preferred over sed

Apache-2.0Auto-check passedDevelopment

Install Replacing Text

skills CLI
$ npx skills add SebastienDegodez/copilot-instructions --skill replacing-text -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install SebastienDegodez/copilot-instructions replacing-text --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/SebastienDegodez/copilot-instructions.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/minimal-context-tools/skills/replacing-text .claude/skills/replacing-text && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
replacing-text
GitHub stars
198
Token cost
~850 tokens
SKILL.md length
334 words
Files
2
Skills in repo
19
Repo updated
First seen
Licence
Apache-2.0

At a glance

A skill your agent uses when performing text find & replace, batch transformations across files, or when JavaScript-style regex syntax is preferred over sed

  • Performing text find & replace
  • SKILL.md covers When to Use sd vs ripgrep, Default Strategy, Key Options and Core Principle, plus 2 more sections
  • Calls jq and rg
  • Batch transformations across files

What it does

Replacing Text is an agent skill from SebastienDegodez/copilot-instructions. Use when performing text find & replace, batch transformations across files, or when JavaScript-style regex syntax is preferred over sed

Its SKILL.md is about 850 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `reference/sd-guide.md`).

It sits in Development. It works with JavaScript. The repository describes itself as: A comprehensive codebase of best practices, coding rules, and workflow automation for AI-assisted development with GitHub Copilot. Includes DDD, Clean Architecture, testing… The licence is Apache-2.0.

When your agent uses it

  • Performing text find & replace
  • Batch transformations across files
  • JavaScript-style regex syntax is preferred over sed

Example prompts

  • “/replacing-text”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 0f0dccf. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • jq
    • rg

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Replacing Text loads about 850 tokens when it runs. Until then it costs about 38 tokens; SKILL.md has 334 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~38
When it runs · the whole SKILL.md, loaded when a task matches
~850

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from SebastienDegodez/copilot-instructions at commit 0f0dccf, republished under its Apache-2.0 licence (© SebastienDegodez). 334 words, ~850 tokens.

Download SKILL.mdSave it as .claude/skills/replacing-text/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
replacing-text
description
Use when performing text find & replace, batch transformations across files, or when JavaScript-style regex syntax is preferred over sed

sd: Fast Find & Replace

Always invoke replacing-text skill for find & replace operations - do not execute bash commands directly.

Use sd for intuitive text replacement that's 2-12x faster than sed.

When to Use sd vs ripgrep

Use sd when:

  • Performing replacements on known patterns
  • Batch text transformations across files
  • Need JavaScript-style regex syntax
  • Direct file modifications without search first

Use ripgrep when:

  • Finding unknown patterns or locations
  • Need search results without immediate changes
  • Complex file filtering and type matching
  • Want to preview before modifying

Common workflow: searching-text skill → replacing-text skill (search first, then replace)

Default Strategy

Invoke replacing-text skill for fast find & replace operations. Use when performing replacements on known patterns, batch text transformations across files, or need JavaScript-style regex syntax.

Common workflow: searching-text skill → replacing-text skill (search first, then replace) or finding-files skill → replacing-text skill for batch operations.

Key Options

  • -F for string-literal mode (no regex)
  • $1, $2 or ${var} for capture groups
  • --preview to preview changes
  • -- before patterns starting with -
  • $$ for literal $ in replacement

Core Principle

Replace text with familiar JavaScript/Python regex syntax - no sed escape hell.

Detailed Reference

For comprehensive find & replace patterns, regex syntax examples, and workflow tips, load sd guide when needing:

  • Advanced regex patterns with capture groups
  • Pipeline operations and batch processing
  • Escape sequence handling
  • Common text transformation recipes
  • Integration with other command-line tools

The guide includes:

  • String-literal vs regex mode usage
  • Capture group patterns and replacements
  • Pipeline operations and batch processing
  • Advanced regex patterns and edge cases
  • Integration with other command-line tools

Skill Combinations

For Discovery Phase
  • searching-text → replacing-text: Search patterns first, then replace across matches
  • finding-files → replacing-text: Find files and perform batch replacements
  • querying-json/querying-yaml → replacing-text: Extract data and transform to other formats
For Analysis Phase
  • replacing-text --preview → viewing-files: Preview changes with syntax highlighting
  • replacing-text → fuzzy-selecting: Interactive selection of changes to apply
  • replacing-text → querying-json/querying-yaml: Transform data back to structured formats
For Refactoring Phase
  • replacing-text → searching-text: Verify replacements didn't introduce issues
  • replacing-text → analyzing-code-structure: Follow up with structural changes if needed
  • replacing-text → analyzing-code: Measure impact of text-based changes
Integration Examples
bash
# Find and replace across project
fd -e js -x sd "oldPattern" "newPattern" --preview

# Chain transformations
cat config.json | jq '.version' | sd '"v' '' | sd '"' '' | xargs git tag

# Interactive replacement with preview
rg "deprecated" -l | fzf --multi | xargs sd "deprecated" "legacy" --preview | bat

© SebastienDegodez, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in plugins/minimal-context-tools/skills/replacing-text of SebastienDegodez/copilot-instructions.

  • SKILL.md
  • reference/sd-guide.md

Open the folder on GitHubat commit 0f0dccf

Compare with similar skills

Replacing Text next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Replacing Text compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Replacing Text this skillSebastienDegodez/copilot-instructions198—~850Automated safety check: PassApache-2.0
Code Review ChecklistshareAI-lab/learn-claude-code78k5 repos~1.1kAutomated safety check: PassMIT
@pierre/diffs Code Renderingpierrecomputer/pierre6.3k2 repos~803Automated safety check: PassApache-2.0
Install Anti-Slop Oxlint Rulesdmmulroy/anti-slop5.3k—~2.2kAutomated safety check: PassMIT
Generate Release Notesteambit/bit18k—~2.2kAutomated safety check: PassCustom licence
Pnpm Engineteambit/bit18k—~1.9kAutomated safety check: PassCustom licence

Similar skills

  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 5 repos~1.1k tokens
    DevelopmentAuto-check passed
  • @pierre/diffs Code Rendering

    pierrecomputer/pierre

    Guides an agent through using @pierre/diffs to render syntax-highlighted files and diffs, and to build editing and review surfaces in React or plain JavaScript.

    6.3k GitHub starsUsed in 2 repos~803 tokens
    DevelopmentAuto-check passed
  • Installs, updates or migrates the vendored anti-slop Oxlint plugin in a repository, keeping local rule changes and the plugin's license and provenance files.

    5.3k GitHub stars~2.2k tokensUpdated 28 days ago
    DevelopmentAuto-check passed
  • Generate comprehensive release notes for Bit from git commits and pull requests.

    18k GitHub stars~2.2k tokensUpdated today
    DevelopmentAuto-check passed
  • Pnpm Engine

    teambit/bit

    Work on the pnpm Rust engine (@pnpm/napi, the pacquet crates) that bit install runs through.

    18k GitHub stars~1.9k tokensUpdated today
    DevelopmentAuto-check passed
  • Moves a legacy internal Ghost package from JavaScript and CommonJS to TypeScript and ESM in three focused commits that keep git file history intact.

    56k GitHub stars~1.2k tokensUpdated today
    DevelopmentAuto-check passed

More from SebastienDegodez/copilot-instructions

All 19 skills in this repo
  • Setup Husky Dotnet

    SebastienDegodez/copilot-instructions

    A skill your agent uses when configuring Git hooks in .NET projects before team commits occur, to enforce commit message standards and code formatting automatically

    198 GitHub stars~1.3k tokensUpdated 2 days ago
    Auto-check passed
  • Clean Architecture Dotnet

    SebastienDegodez/copilot-instructions

    A skill your agent uses when domain logic leaks into API/Infrastructure, project references violate layer boundaries, or you need to decide between CQS (always), CQRS bus (complex domains), and DDD…

    198 GitHub stars~5.1k tokensUpdated 2 days ago
    Auto-check passed
  • Outside In TDD

    SebastienDegodez/copilot-instructions

    A skill your agent uses when writing tests from the outside-in, defining behavior before code, or any feature where tests should start from observable business behavior and let internal design emerge

    198 GitHub stars~1.8k tokensUpdated 2 days ago
    Auto-check passed
  • Creating Dotnet MCP Servers

    SebastienDegodez/copilot-instructions

    A skill your agent uses when building Model Context Protocol (MCP) servers in .NET, configuring tools, transports (SSE/stdio), JSON serialization for AOT, or testing MCP endpoints

    198 GitHub stars~1.3k tokensUpdated 2 days ago
    Auto-check passed
  • Generate Microcks Openapi Samples

    SebastienDegodez/copilot-instructions

    A skill your agent uses when creating OpenAPI mock examples for Microcks, setting up request/response routing with dispatchers, or mapping request fields to mock responses

    198 GitHub stars~2.5k tokensUpdated 2 days ago
    Auto-check passed
  • Analyzing Code

    SebastienDegodez/copilot-instructions

    A skill your agent uses when understanding project composition by language, measuring code change impact, or generating code statistics for CI/CD metrics

    198 GitHub stars~1k tokensUpdated 2 days ago
    Auto-check passed

Works with

Categories

Questions about Replacing Text

What does Replacing Text do?

A skill your agent uses when performing text find & replace, batch transformations across files, or when JavaScript-style regex syntax is preferred over sed. Replacing Text is an agent skill from SebastienDegodez/copilot-instructions.

When should I use Replacing Text?

Replacing Text fits situations like: performing text find & replace; batch transformations across files; javaScript-style regex syntax is preferred over sed.

How do I install Replacing Text in Claude Code?

Run `npx skills add SebastienDegodez/copilot-instructions --skill replacing-text -a claude-code`. Or copy the skill folder (plugins/minimal-context-tools/skills/replacing-text in SebastienDegodez/copilot-instructions) into .claude/skills/replacing-text in your project. Claude Code loads it when a task matches its description.

How do I install Replacing Text in Codex?

Run `npx skills add SebastienDegodez/copilot-instructions --skill replacing-text -a codex`. Or copy the skill folder (plugins/minimal-context-tools/skills/replacing-text in SebastienDegodez/copilot-instructions) into .agents/skills/replacing-text in your project. Codex loads it when a task matches its description.

Can I use Replacing Text in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add SebastienDegodez/copilot-instructions --skill replacing-text -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/replacing-text, .gemini/skills/replacing-text, .github/skills/replacing-text and .opencode/skills/replacing-text in your project.

What does Replacing Text need to run?

Going by SKILL.md and its folder, Replacing Text needs the command-line tools its instructions call (jq and rg). Our summary lists: Python 3.

Does Replacing Text access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Replacing Text safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Replacing Text use?

Replacing Text is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Replacing Text use?

About 850 tokens (SKILL.md is roughly 3.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Replacing Text?

Skills that share tags, products or a category with Replacing Text: Code Review Checklist (shareAI-lab/learn-claude-code, 78k stars), @pierre/diffs Code Rendering (pierrecomputer/pierre, 6.3k stars), Install Anti-Slop Oxlint Rules (dmmulroy/anti-slop, 5.3k stars) and Generate Release Notes (teambit/bit, 18k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Replacing Text?

SebastienDegodez (a GitHub user) maintains it in SebastienDegodez/copilot-instructions, which has 198 GitHub stars. The repository holds 19 skills in this directory. The repository was last updated on October 6, 2026.

Source: SebastienDegodez/copilot-instructions on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.