agent-builder

agent-builder is a skill for Claude Code, Codex from testdouble/han. It costs 130 tokens per session (3,322 once invoked), scanned A, original, MIT.

Builds a new Claude Code agent (subagent) from scratch through a relentless, evidence-based interview that walks the agent's design tree decision-by-decision — entity fit, domain focus and vocabulary, role identity, anti-patterns, description, model tier, tools, and self-containment — then reviews the finished agent…

Skill for Claude CodeCodex

Installs and runs on its own, but its text points at files inside the plugin that ships it — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed.

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 skills/testdouble/han/agent-builder
Any agent
npx skills add testdouble/han --skill agent-builder
Clone the repo
git clone --depth 1 https://github.com/testdouble/han

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agent-builder

README.md
[![agentmods](https://agentmods.dev/badge/skills/testdouble/han/agent-builder.svg)](https://agentmods.dev/skills/testdouble/han/agent-builder)
Your own site
<a href="https://agentmods.dev/skills/testdouble/han/agent-builder"><img src="https://agentmods.dev/badge/skills/testdouble/han/agent-builder.svg" alt="Measured on agentmods" height="20"></a>
Per session 130 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,322 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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.00130 $0.03322
Opus 5 $0.00065 $0.01661
Sonnet 5 $0.00026 $0.00664
Haiku 4.5 $0.00013 $0.00332

Measured today against content hash 4d3877bb5f72, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

agent-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 today.

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.

han-plugin-builder/skills/agent-builder/SKILL.md · 201 lines

How it starts

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

Project Context

  • personal config directory: !bash "${CLAUDE_PLUGIN_ROOT}/scripts/han-config-dir.sh" 2>/dev/null || echo "$HOME/.claude"
  • project .han/config.md: !cat .han/config.md 2>/dev/null || echo ""

As your first action, use the Read tool on .han/config.md inside the personal config directory path above. A read that returns no file is no personal configuration: continue silently. When that file or the project .han/config.md probe supplies content, apply it per config-rule.md, which governs precedence between the two files, relative-path resolution, and what to do with a file that reads but cannot be used.

Guidance Location

The authoritative agent-authoring guidance ships in this plugin. Read the specific document a decision needs, when that decision is on the table — never read them all up front, because that defeats progressive disclosure and burns context on guidance the current agent does not touch.

  • Plugin-building guidance root: ${CLAUDE_PLUGIN_ROOT}/skills/guidance/references/
  • Agent-specific guidance: ${CLAUDE_PLUGIN_ROOT}/skills/guidance/references/agent-building-guidelines/

Map from decision to governing document (read just-in-time):

Decision on the table Read
Agent vs. skill vs. hook; one role (generate or evaluate) plugin-entity-taxonomy.md, agent-building-guidelines/agent-domain-focus.md
Domain focus, vocabulary, role identity, anti-patterns agent-building-guidelines/agent-domain-focus.md
The description field (four components, boundaries, length) agent-building-guidelines/agent-description-length.md, skill-building-guidance/skill-description-frontmatter.md
Model tier (opus / sonnet / haiku / inherit) agent-building-guidelines/agent-model-selection.md, specialization-and-model-selection.md
Self-containment — no references, scripts, or context injection agent-building-guidelines/agent-external-files.md
Which frontmatter fields are valid (and which plugins ignore) agent-building-guidelines/agent-external-files.md
Degraded environments (no git, missing tools) agent-building-guidelines/graceful-degradation.md
Whether this agent is justified at all; how it gets dispatched agent-building-guidelines/multi-agent-economics.md, skill-building-guidance/agent-dispatch-namespacing.md
New plugin needed (plugin.json, marketplace.json) claude-marketplace-and-plugin-configuration/ and templates/

Read the full file on GitHub · 201 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. today First seen · 201 lines · 130 tokens per session scan A 4d3877bb5f72

Subscribe to this mod's changes

agent-builder is a skill published in the GitHub repository testdouble/han (255 stars, last pushed 2d ago), licensed MIT. It adds 130 tokens to every session and 3,322 once invoked, about $0.0006 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-09-03.

Related

Other skills, from other repositories

router

Find the right doc before reading code. Use when asked "where is X documented", "is there a spec/ADR for X", "what's the roadmap", "open bugs", "read the docs about X", or "share the docs".

MedAdemBHA/docflow · 52 tokens

init

Set up docflow in a repo with no docs yet: scaffold the docs tree, write docflow.json, add agent guidance. Use when asked to "set up docflow", "initialize docs", "scaffold docs", or "make this repo use docflow".

MedAdemBHA/docflow · 56 tokens

check

Friendly docflow readiness check: one status, one reason, and the exact next command. Use when asked if docflow is set up, ready, or "what do I do next".

MedAdemBHA/docflow · 40 tokens

repair

Safe maintenance for an existing docflow setup. Regenerates INDEX.md, installs or refreshes recognized DocFlow-managed helper scripts, runs link checks, and reports placeholder/validation issues. Use when docflow exists, after adding or renaming docs, or when doctor recommends repair.

MedAdemBHA/docflow · 58 tokens

review

Reviews code changes for concrete bugs with P0-P2 prioritized findings. Uses parallel architectural and implementation reviewers, then validates findings to remove false positives. Use when reviewing a caller-supplied diff, branch, staged changes, file set, or pull request, and use fix mode with caller-supplied…

brsbl/ottonomous · 83 tokens

spec

Writes high-quality product specifications through codebase research, web research, a collaborative requirements interview, and independent review, then gives the user a link to the written spec. Use when planning a feature, defining requirements, revising an existing draft, or creating a spec/PRD. Accepts…

brsbl/ottonomous · 88 tokens