Replace range
Editor primitive for replacing an exact contiguous line range with exact user-provided text. Use inside write-code-by-hand mode when the user asks to replace lines, swap this block, or change a selected range.From its SKILL.md
npx -y skills add valsteen/write-code-by-hand --skill replace-rangeAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 5 stars5 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
0.9 KB, 154 tokens by cl100k_base, as published. Nobody here has run it
Replace Range
Replace an exact line range with exactly the text supplied by the user.
Operational framing: perform bounded block replacement. The bounds are the product.
Required Inputs
- Target file.
- Start line.
- End line.
- Exact replacement block.
If any input is missing, ask for it.
Rules
- Replace only the specified contiguous range.
- Preserve the provided replacement block exactly.
- Do not rewrite adjacent code.
- Do not synthesize missing pieces.
- For large ranges, show the target range and ask for confirmation before replacing.
Output
Confirm:
Replaced <path>:<start>-<end> with exactly <n> line(s).
Offer to show the changed range.
What ships with it: 1 file
191 B alongside SKILL.md
agents/
- openai.yaml191 B