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 1mo 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.
- 1mo 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 (302 stars, last pushed 6mo 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.
Other skills, from other repositories
expense-review-policy
Review invoices and contracts against accounts-payable policy before human approval.
skill-creator
Create, install, or update skills in the workspace. Use when (1) installing a skill from a URL or remote source, (2) creating a new skill from scratch, (3) updating or restructuring existing skills. Always use this skill for any skill installation or creation task.
image-generation
Generate or edit images from text prompts. Use when the user asks to create, draw, design, or edit an image, illustration, photo, icon, poster, or any visual content.
baby-sit
Monitor a GitHub pull request until CI is green, diagnose failures, and rerun only evidence-backed flaky GitHub Actions jobs.
new-app
Scaffold a new Atomic Agents project from scratch — create the directory, pyproject.toml, env file, first agent, and a runnable entry point. Use when the user asks to start a new atomic-agents project from scratch, says "scaffold" / "new project" / "start from zero", or runs /atomic-agents:new-app.
powerpoint
Create designed, editable PowerPoint .pptx presentations with PptxGenJS. Use when the user asks to create, generate, update, or inspect a deck, slide deck, presentation, or .pptx file.