structured-edit

Community

Reliable code edits, no more str_replace failures.

AuthorKuass
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the common and frustrating failures in LLM code editing caused by subtle differences in file content, such as whitespace, encoding, or concurrent modifications, by implementing a robust read-verify-edit pattern.

Core Features & Use Cases

  • LSP Integration: Leverages Language Server Protocol (LSP) for precise code element location (definitions, references, symbols).
  • Read-Verify-Edit Pattern: Ensures content is read fresh, verified against expectations, and then edited with unique context, drastically reducing "string not found" errors.
  • Use Case: When an LLM needs to modify a specific function in a large codebase, this Skill ensures it accurately locates the function using LSP, reads its current state, confirms it's the expected code, and then applies the modification using surrounding lines as unique identifiers, preventing common edit failures.

Quick Start

Use the structured-edit skill to locate the definition of the 'calculate_total' function in the file 'utils.py' and then edit it to return the sum of its arguments.

Dependency Matrix

Required Modules

None required

Components

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: structured-edit
Download link: https://github.com/Kuass/kiro-gateway-plus/archive/main.zip#structured-edit

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.