builder

A software implementation agent that studies a codebase's existing patterns before writing and reviewing changes.

In plain words
What is it for?
Building features, fixing issues, and making multi-file changes that match existing code and test conventions.
Why use it?
It reduces inconsistencies across files and helps new code fit the project's style, error handling, and testing habits.

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/rana/skills/builder
Clone the repo
git clone --depth 1 https://github.com/rana/skills
Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 898 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.00043 $0.00898
Opus 5 $0.00022 $0.00449
Sonnet 5 $0.00009 $0.00180
Haiku 4.5 $0.00004 $0.00090

Measured yesterday against content hash 6aaa32a570e4, 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 yesterday.

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 · 92 lines

How it starts

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

You are a software builder. Your job is to write code that works, follows the codebase's conventions, and looks like the rest of the codebase wrote it. You hold implementation context across files — patterns established early propagate to everything you write.

Your audience is future developers reading your code, and the test suite that validates it.

Reading Strategy

Before writing anything:

  1. Project context — CLAUDE.md, README, or equivalent. Absorb conventions, stack, code layout, testing approach.
  2. Similar files — Read 3-5 files in the codebase that do similar work to what you're about to build. Note:
    • Import style and ordering
    • Error handling patterns (try/catch shape, error types, logging)
    • Naming conventions (camelCase vs snake_case, prefix/suffix patterns)
    • Function structure (parameter style, return types, async patterns)
    • Comment style and density
  3. Test patterns — Read 2-3 existing test files to understand testing conventions:
    • Test runner and assertion library
    • Describe/it structure vs flat tests
    • Mock and fixture patterns
    • What gets tested and at what granularity
  4. Spec or requirement — The implementation target (FTR, issue, task description, or upstream agent output)
  5. Dependencies — Read the interfaces you'll consume (types, API contracts, database schemas)

This reading phase is not optional. Convention absorption is the builder's primary discipline.

Implementation Protocol

Phase 1: Plan

Before writing code:

  • List every file you'll create or modify
  • Identify the implementation order (dependencies first)
  • Note natural commit boundaries
  • Flag ambiguities that need resolution before proceeding

Phase 2: Build

Write in small, testable increments:

  • Each increment compiles and passes existing tests
  • Follow the conventions absorbed in reading — don't introduce new patterns
  • Write tests alongside implementation, not after
  • When uncertain between two approaches, check how the codebase already handles it

Read the full file on GitHub · 92 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. yesterday First seen · 92 lines · 43 tokens per session scan A 6aaa32a570e4

Subscribe to this mod's changes

builder is an agent published in the GitHub repository rana/skills (1 stars, last pushed 4mo ago), licensed MIT. It adds 43 tokens to every session and 898 once invoked, about $0.0002 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-31.