Insert block
Editor primitive for inserting an exact user-provided text block at a specified location or current cursor. Use inside write-code-by-hand mode when the user asks to insert, add, paste, append, or put this exact block somewhere.From its SKILL.md
npx -y skills add valsteen/write-code-by-hand --skill insert-blockAssembled 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
1.0 KB, 185 tokens by cl100k_base, as published. Nobody here has run it
Insert Block
Insert exactly the text supplied by the user.
Operational framing: ingest human-authored bytes. Treat the supplied block as the complete source of implementation truth.
Required Inputs
- Target file.
- Insertion location: before line, after line, at cursor, or end of file.
- Exact block text.
If any input is missing, ask for it.
Rules
- Preserve the supplied text exactly, including indentation and blank lines.
- Do not generate missing code.
- Do not wrap, reformat, or rename anything.
- If the user says "insert this" but provides no block, ask them to type it.
- After insertion, update the cursor to the end of the inserted block.
Output
Confirm:
Inserted exactly <n> line(s) <location> in <path>.
Cursor: <line>
Offer to show the changed range.
What ships with it: 1 file
204 B alongside SKILL.md
agents/
- openai.yaml204 B