# Coding Agent Scaffold

> >-

- **Type:** Skill
- **Install:** `agentstack add skill-pebeto-agent-stdlib-coding-agent-scaffold`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [pebeto](https://agentstack.voostack.com/s/pebeto)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [pebeto](https://github.com/pebeto)
- **Source:** https://github.com/pebeto/agent-stdlib/tree/main/skills/coding-agent-scaffold

## Install

```sh
agentstack add skill-pebeto-agent-stdlib-coding-agent-scaffold
```

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

## About

# Coding agent scaffold

Source: [Raising the bar on SWE-bench Verified with Claude 3.5 Sonnet](https://www.anthropic.com/engineering/swe-bench-sonnet). The procedure circulates as tutorials and reference codebases (Thorsten Ball's "How to build an agent" is the canonical one). None ship it as a skill focused on tool-interface design, which is the part that decides reliability.

A strong coding agent does not need elaborate scaffolding. It needs two tools designed with the care you would give a UI, and the freedom to decide its own order of operations. The scaffolding encodes your guesses about what the model cannot do, and those guesses age badly as models improve. Keep it thin.

## Give the model control, suggest the order

Do not hard-code a rigid pipeline. In the prompt, suggest a shape and let the model deviate when the task calls for it: explore the code, reproduce the problem, make the fix, verify it, then check edge cases. A suggested sequence guides without boxing in a model that often knows a better route for the specific bug.

Let the agent keep sampling until it finishes or hits the context limit. Expect a high token and turn count on hard tasks; that is the cost of letting the model work the problem.

## Tool 1: bash

One parameter, a single command string. No XML wrapping, no escaping scheme the model has to satisfy on top of normal shell quoting.

Write the description the way you would brief a careful new engineer on an unfamiliar machine. Cover the things the model cannot see and will otherwise assume wrong:

- how shell quoting and escaping work in this environment
- which packages and interpreters are available
- whether state persists between calls (does `cd` or an exported variable survive to the next command)
- how to run something in the background, and how to read its output later

Steer the model away from commands that dump huge output into the context. A `find /` or an unbounded log tail wastes the window it needs for the actual task.

## Tool 2: file editor

Give it a small, explicit verb set: `view`, `create`, `str_replace`, `insert`, `undo_edit`. Two design choices prevent most edit failures:

- **Absolute paths only.** Relative paths depend on a working directory the model is tracking in its head, and it tracks it wrong often enough to matter.
- **`str_replace` matches exactly one occurrence.** The old string must appear once. If it appears zero times or several times, the tool refuses and says which, instead of editing the wrong line and corrupting the file. This single rule removes a whole class of silent damage.

## Error-proof the descriptions (poka-yoke)

Every recurring mistake the model makes is a gap in a tool description, not a flaw in the model. When you watch a transcript and see the agent trip on the same thing twice, write the limitation and the edge case directly into the tool description so the mistake becomes hard to make:

- the editor rejects a non-unique `str_replace` and tells the model to add surrounding context until the match is unique
- the bash tool states its output is truncated past some size, so the model pipes through `head` or greps instead of paging everything
- the editor states paths must be absolute, with an example

This is the highest-leverage work in the whole scaffold. A tool that explains its own failure modes turns a confused agent into a competent one without touching the model.

## Source & license

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

- **Author:** [pebeto](https://github.com/pebeto)
- **Source:** [pebeto/agent-stdlib](https://github.com/pebeto/agent-stdlib)
- **License:** MIT

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-pebeto-agent-stdlib-coding-agent-scaffold
- Seller: https://agentstack.voostack.com/s/pebeto
- 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%.
