sedx

Perform sed-style text replacement with backups, previews, and rollback.

Updated Jan 6, 2026
One-click install
npx skills add https://github.com/InkyQuill/sedx --skill sedx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sedx
Source: https://github.com/InkyQuill/sedx/tree/main/.claude/skills/sedx
Command: npx skills add https://github.com/InkyQuill/sedx --skill sedx

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you perform sed-style file editing without the usual risk of destructive in-place changes. It is designed for safe text replacement, bulk edits, and stream processing while preserving the ability to preview results and recover from mistakes.

Core Features & Use Cases

  • Safe file modification: Replaces risky sed -i workflows with automatic backups, rollback support, and dry-run previews.
  • Flexible regex workflows: Supports PCRE by default while also handling ERE and GNU sed BRE compatibility for migration scenarios.
  • Large-file processing: Works well for very large files by switching to streaming behavior with low memory usage.
  • Use cases: Updating configuration files across a project, converting legacy GNU sed commands, cleaning log files, or making repeatable multi-step text transformations with safer defaults.

Quick Start

Ask to use the sedx skill to preview and apply a regex replacement in a file, then note the backup and rollback options.

Frequently Asked Questions about sedx

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I safely replace text in a file without losing the original content?

Safe text replacement requires automatic backup creation and dry-run preview capabilities. This skill performs sed-style edits while generating backups and allowing rollback to original content, preventing destructive in-place modifications during configuration updates or bulk rewrites.

What is the best way to migrate GNU sed scripts to PCRE regex?

Migrating GNU sed scripts to PCRE regex involves using default PCRE behavior with optional BRE or ERE compatibility. This skill handles migration scenarios by supporting multiple regex modes, allowing legacy sed commands to transition smoothly to PCRE-based transformations.

How do I perform stream editing on very large files without running out of memory?

Stream editing on very large files requires constant-memory processing to avoid exhaustion. This skill switches to streaming behavior for large-file processing, maintaining low memory usage while applying regex-based transformations and text replacements across extensive log files or datasets.

Can I preview a regex replacement before applying it to my configuration files?

Previewing regex replacements before applying them is possible through dry-run validation. This skill provides a preview mode that shows expected results before modifying configuration files, ensuring bulk content rewrites and multi-step text transformations are safe to execute.

Does this text replacement tool support automatic rollback for failed edits?

Automatic rollback support for failed edits allows recovery from mistakes during file modification. This skill provides rollback functionality alongside automatic backup management, ensuring that incorrect text replacements or configuration updates can be reverted to their original state.