file-editing-patterns
CommunityEdit files with precision.
Software Engineering#code modification#file editing#apply_diff#write_to_file#context minimization#editing patterns
Authorsrulyt
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps you choose the most efficient and reliable method for editing files, minimizing context window usage and preventing errors, especially when dealing with large files or making precise changes.
Core Features & Use Cases
- Optimized Tool Selection: Guides you to use
apply_difffor surgical edits orwrite_to_filefor complete rewrites. - Context Minimization: Reduces token usage by favoring diff-based edits over full file rewrites.
- Reliability: Provides best practices for diff formatting, line number accuracy, and post-edit verification.
- Use Case: When modifying a specific function in a large codebase, this skill ensures you use
apply_diffwith a precise search block, rather than rewriting the entire file.
Quick Start
Use the file-editing-patterns skill to select the best editing tool for a code modification.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: file-editing-patterns Download link: https://github.com/srulyt/srulys-agent-packs/archive/main.zip#file-editing-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.