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.
npx skills add FareedKhan-dev/claude-code-from-scratch --skill agent-buildergit clone --depth 1 https://github.com/FareedKhan-dev/claude-code-from-scratchWrote 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.
[](https://agentmods.dev/skills/fareedkhan-dev/claude-code-from-scratch/agent-builder)<a href="https://agentmods.dev/skills/fareedkhan-dev/claude-code-from-scratch/agent-builder"><img src="https://agentmods.dev/badge/skills/fareedkhan-dev/claude-code-from-scratch/agent-builder/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/fareedkhan-dev/claude-code-from-scratch/agent-builder"><img src="https://agentmods.dev/badge/skills/fareedkhan-dev/claude-code-from-scratch/agent-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00034 | $0.01048 |
| Opus 5.5 | $0.00014 | $0.00419 |
| Sonnet 5.5 | $0.00007 | $0.00210 |
| Haiku 4.5 | $0.00003 | $0.00105 |
Grade A, and why
agent-builder scanned grade A with 1 finding 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 3mo 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.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
Bad: `output = subprocess.run("npm test", timeout=300)` How it starts
The opening of the file, as written. The whole thing — 147 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Agent Builder Skill
When to use this skill
Load this skill when the user wants to:
- Build a new agent from scratch
- Design a tool for an agent
- Structure a multi-agent system
- Debug an agent loop that isn't working
- Choose between agent architectures
Core principle
The agent is always the model. Your job is the harness.
Harness = Tools + Knowledge + Observation + Action + Permissions
Never try to encode intelligence in your harness code. Give the model clean tools, clear context, and get out of the way.
The minimal agent (always start here)
from anthropic import Anthropic
client = Anthropic()
def agent_loop(messages, tools, dispatch, system):
while True:
response = client.messages.create(
model="claude-sonnet-4-20250514",
system=system, messages=messages,
tools=tools, max_tokens=8000,
)
messages.append({"role": "assistant", "content": response.content})
if response.stop_reason != "tool_use":
return
results = []
for block in response.content:
if block.type == "tool_use":
output = dispatch[block.name](block.input)
results.append({"type": "tool_result",
"tool_use_id": block.id, "content": output})
messages.append({"role": "user", "content": results})
Do not add anything until you need it. Every mechanism should earn its place.
Tool design checklist
Before writing a tool, ask:
- Is the name a verb? (bash, read, write — not "file_manager")
- Does the description say WHEN to use it, not just what it does?
- Is the input schema minimal? No optional fields unless truly needed.
- Does it return plain text the model can reason about?
- Does it have a hard timeout?
- Is output truncated to a safe length (≤50k chars)?
Tool description formula
"[Action verb] [what it does]. Use when [specific situation].
[What it returns]. [Any important limits]."
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.
- 3mo ago First seen · 147 lines · 34 tokens per session scan A b058947ebaa8
agent-builder is a skill published in the GitHub repository FareedKhan-dev/claude-code-from-scratch (311 stars, last pushed 8mo ago), licensed MIT. It adds 34 tokens to every session and 1,048 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
agent-builder compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| agent-builderFareedKhan-dev/claude-code-from-scratch | Skill | 311 | 8mo ago | MIT | A | 34 | Claude Code, Codex |
| expense-review-policyopenai/openai-cookbook | Skill | 78k | 2d ago | MIT | A | 17 | Claude Code, Codex |
| skill-creatorzhayujie/CowAgent | Skill | 48k | yesterday | MIT | A | 61 | Claude Code, Codex |
| image-generationzhayujie/CowAgent | Skill | 48k | yesterday | MIT | A | 41 | Claude Code, Codex |
| baby-sitlangchain-ai/open-swe | Skill | 11k | today | MIT | A | 30 | Claude Code, Codex |
| powerpointthe-open-agent/openagent | Skill | 5.8k | yesterday | Apache-2.0 | A | 48 | Claude Code, Codex |
| ax-agent-rlmax-llm/ax | Skill | 3.0k | yesterday | Apache-2.0 | A | 88 | Claude Code, Codex |