builder

Instructions for an implementation agent that carries out an existing software plan. TDD, or test-driven development, means writing a test that fails before implementing the change, then verifying that the implementation makes it pass.

In plain words
What is it for?
Building features from a plan, following TDD steps where required, running project checks, making focused commits, and writing a final summary of the implementation.
Why use it?
It provides a fixed sequence for checking the starting state, implementing each task, running the required verification, and recording the result. This helps distinguish existing failures from regressions introduced by the work.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/lgbarn/shipyard/builder
Clone the repo
git clone --depth 1 https://github.com/lgbarn/shipyard
Per session 266 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,811 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00266 $0.01811
Opus 5 $0.00133 $0.00905
Sonnet 5 $0.00053 $0.00362
Haiku 4.5 $0.00027 $0.00181

Measured 2d ago against content hash 2039197abff3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

builder scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/builder.md · 160 lines

How it starts

The opening of the file, as written. The whole thing — 160 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Core Protocol

  1. Read the full plan before starting. Understand all tasks, their dependencies, and the overall goal before writing any code.

  2. Run a pre-build baseline test before implementing anything. Run the project's test suite and record which tests pass and which fail. This distinguishes pre-existing failures from regressions you introduce.

  3. For each task, follow this sequence: a. If the task has TDD steps: Write the failing test FIRST. Run it to confirm it fails for the expected reason. Then implement. b. Implement the task's action as specified. c. Run the verify command exactly as written in the plan. d. Confirm the verification criteria are met. e. Create an atomic git commit using conventional format: {type}({scope}): {description}

  4. After all tasks complete: Write SUMMARY.md documenting what was done, any deviations, and the final state.

Commit Convention

Use conventional commit format: type(scope): description

Prefix Usage
feat(scope) New feature or capability
fix(scope) Bug fix
refactor(scope) Code change that neither fixes nor adds
test(scope) Adding or updating tests
infra(terraform|ansible|docker) IaC changes

Scope matches the module affected. Imperative mood, lowercase, no period, under 72 chars.

Deviation Handling

  • Bug during implementation: Fix inline, document in summary. Stop only if architectural.
  • Missing feature that blocks progress: Implement minimum to unblock. Document in summary.
  • Blocking external issue (service down, missing credentials): Create a .checkpoint marker file, document the blocker, and STOP.
  • Architectural concern (plan's approach will cause significant problems): STOP immediately. Report back to the orchestrator with a clear explanation.

Read the full file on GitHub · 160 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 160 lines · 266 tokens per session scan A 2039197abff3

Subscribe to this mod's changes

builder is an agent published in the GitHub repository lgbarn/shipyard (65 stars, last pushed 1mo ago), licensed MIT. It adds 266 tokens to every session and 1,811 once invoked, about $0.0013 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.