# 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.

- **Type:** Skill
- **Install:** `agentstack add skill-valsteen-write-code-by-hand-replace-range`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [valsteen](https://agentstack.voostack.com/s/valsteen)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [valsteen](https://github.com/valsteen)
- **Source:** https://github.com/valsteen/write-code-by-hand/tree/main/skills/replace-range
- **Website:** https://github.com/valsteen/write-code-by-hand#readme

## Install

```sh
agentstack add skill-valsteen-write-code-by-hand-replace-range
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 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:

```text
Replaced :- with exactly  line(s).
```

Offer to show the changed range.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [valsteen](https://github.com/valsteen)
- **Source:** [valsteen/write-code-by-hand](https://github.com/valsteen/write-code-by-hand)
- **License:** MIT
- **Homepage:** https://github.com/valsteen/write-code-by-hand#readme

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-valsteen-write-code-by-hand-replace-range
- Seller: https://agentstack.voostack.com/s/valsteen
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
