code-edit-quality

Apply SEARCH/REPLACE blocks for deterministic code edits across files.

7|1|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/fratilanico/apex-os-bad-boy --skill code-edit-quality
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: code-edit-quality
Source: https://github.com/fratilanico/apex-os-bad-boy/tree/main/code-edit-quality
Command: npx skills add https://github.com/fratilanico/apex-os-bad-boy --skill code-edit-quality

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The skill automates precise code edits using controlled SEARCH/REPLACE blocks to reduce manual errors and ensure repeatable modifications.

Core Features & Use Cases

  • Deterministic edits: apply small, exact changes with minimal context.
  • Context-preserving: preserve comments, whitespace, and line integrity during updates.
  • Use Case: refactor a function across several files by swapping a pattern for an optimized implementation while maintaining formatting.

Quick Start

Provide a target file and a minimal patch, and the tool will apply a SEARCH/REPLACE block to modify that file precisely.

Frequently Asked Questions about code-edit-quality

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

FAQPage Schema
How do I automate precise code edits across multiple files without breaking formatting?▼

You can automate precise code edits using controlled SEARCH/REPLACE blocks that enforce unique-match verification and whitespace sensitivity. This deterministic patching method preserves comments and line integrity during updates to prevent regressions across multiple project files.

What is deterministic patching for code refactoring?▼

Deterministic patching applies small, exact code modifications using SEARCH/REPLACE blocks. It enforces unique-match verification and multi-block ordering to ensure refactoring changes are repeatable, controlled, and free from unintended matches.

How do I apply a search and replace block to modify a target file?▼

Provide a target file and a minimal patch to apply a SEARCH/REPLACE block. The tool modifies the file precisely by enforcing unique-match verification, ensuring the search context is small, unique, and accurately replaced without affecting surrounding code.

Can I use search and replace blocks to refactor a function across several files?▼

Yes, you can refactor a function across several files by swapping a pattern for an optimized implementation. The SEARCH/REPLACE blocks maintain formatting and apply deterministic modifications suitable for multiple project files.

Why do my automated code edits fail to match the correct lines?▼

Automated code edits fail when search patterns are not unique or whitespace sensitivity is not respected. The tool enforces unique-match verification to prevent ambiguous replacements and avoid applying patches to incorrect lines.

Does this code editing approach preserve existing comments and whitespace?▼

Yes, this code editing approach preserves comments, whitespace, and line integrity during updates. It applies context-preserving patches to ensure surrounding code structures remain unchanged while applying exact modifications.