Robust Editor Skill

Extract exact file content accounting for LF and CRLF line endings.

1|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/trioskosmos/rabukasim --skill robust-editor-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Robust Editor Skill
Source: https://github.com/trioskosmos/rabukasim/tree/main/.agent/skills/robust_editor
Command: npx skills add https://github.com/trioskosmos/rabukasim --skill robust-editor-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill addresses the frustration of file editing tools failing due to subtle differences in whitespace or line endings, which are often invisible and difficult to debug.

Core Features & Use Cases

  • Precise Text Extraction: Extracts exact string content from specified lines in a file, accounting for invisible characters.
  • Robust Replacement: Enables reliable file content replacement by using precisely extracted target text.
  • Use Case: When replace_file_content fails on a configuration file with mixed Windows/Unix line endings, use this Skill to extract the exact problematic line and then use that to successfully perform the replacement.

Quick Start

Use the robust editor skill to extract the content from line 10 to line 15 of the file named 'config.yaml'.

Frequently Asked Questions about Robust Editor Skill

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

FAQPage Schema
Why does text replacement fail on files with mixed line endings?

Standard text replacement fails on mixed line endings because invisible character differences between LF and CRLF prevent exact string matching. This Skill solves the issue by using a Python helper script to detect exact line endings and whitespace for precise target extraction.

How do I extract exact content from specific lines in a configuration file?

To extract exact content from specific lines, use this Skill to specify the file and line numbers. It executes a Python helper script that counts exact space and tab occurrences while detecting LF versus CRLF to accurately identify the target text.

How do I replace file content when standard text replacement tools fail?

To replace file content reliably when standard tools fail, first extract the exact problematic line using this Skill. Once the exact string accounting for invisible whitespace is extracted, use that precise target text to successfully perform the file replacement.

What is the best way to debug whitespace differences in complex files?

The best way to debug whitespace differences is to use a script that detects LF versus CRLF line endings and counts exact space and tab occurrences. This Skill provides that robust mechanism to identify invisible character mismatches causing file editing failures.

Do I need Python to extract text with tricky formatting and invisible characters?

Yes, you need Python because this Skill utilizes a Python helper script to detect line endings and count exact space and tab occurrences. This underlying script is necessary to account for invisible character differences and extract the target content accurately.