agent-builder
Skill296 starsChanged 8 months agoMITView on GitHub
Use when building a new agent harness, designing tool systems, or structuring multi-agent workflows. Provides patterns, templates, and decision trees for harness engineering.
62 other projects use a version of this.
Adopted by
Most recently taken up by
- 17lijunyi/claude-code-harness-studytheir own version, first seen Nov 29, 2026
- JAndy9179/Learn-Claude-Codetheir own version, first seen Nov 22, 2026
- wdmhswj/my_claude_codetheir own version, first seen Nov 22, 2026
- tdotlab/agent-buildertheir own version, first seen Nov 22, 2026
- DonyLeno/learn-claude-code-qwentheir own version, first seen Nov 15, 2026
- dvy1987/agent-loomtheir own version, first seen Nov 15, 2026
Used with
Projects with it also use workflow-builder, mcp-builder and 7 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
Hussain-ElfalahSkillworkflow-builder
Also in 3 projects that use this
MicrosoftSkillmcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
Also in 33 projects that use this
dragonflydbSkillbenchmark
Benchmark Dragonfly (and compare against Valkey/Redis) on local or remote cloud instances, then produce a performance + memory report with charts and a raw-data appendix. Use this whenever the user runs /benchmark, or asks to benchmark / load-test / measure throughput, QPS, latency, or memory efficiency of Dragonfly or another Redis-compatible server, to compare Dragonfly vs Valkey or Redis, or to generate a benchmark report. Trigger it even when the user just describes the goal ("see how fast Dragonfly is on this box", "compare memory per key vs Valkey") without saying the word "benchmark".
Also in 3 projects that use this
builtbygeoSkilldesign-review
Also in 3 projects that use this
SentrySkillonboard
Onboard a service to sentry-options. Use when integrating a new service, creating schemas, or setting up the multi-repo sentry-options workflow.
Also in 3 projects that use this
OpenAISkillaudit
Audit or critique a product flow, journey, workflow, funnel, onboarding path, checkout path, settings path, screen, or multi-step product experience by capturing screenshots first, then reporting UX, design, and accessibility findings inline from that evidence. Use Figma only when the user explicitly asks for a board. Use when the user asks to audit, review, critique, inspect, assess, analyze, evaluate, or give feedback on a product experience.
Also in 3 projects that use this
Other versions62 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 62
- shareAI-lab/analysis_claude_code★ 80ksame name
- shareAI-lab/learn-claude-code★ 80ksame name
- NangoHQ/nango★ 13ksame name
- DenchHQ/DenchClaw★ 1.7ksame name
- DenchHQ/ironclaw★ 1.7ksame name
- block/berd★ 1.1ksame name
- Southclaws/storyden★ 350same name
- Mathews-Tom/armory★ 340same name
- wulawulu/learn-claude-code-rs★ 154same name
- pr-pm/prpm★ 124same name
52 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository2 other files it gives its agents.
- code-reviewSkill
- pdfSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 58 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
Never try to encode intelligence in your harness code.
- Distinctive: line 52
Do not add anything until you need it.
- Distinctive: line 56
Before writing a tool, ask:
“Common” is measured: kept by at least 6 in 10 of the 58 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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 + PermissionsNever 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]."Example:
"Read a file and return numbered lines. Use when you need to inspect
file content or reference specific line numbers. Returns up to 50,000
characters. Use start_line/end_line for large files."Architecture decision tree
One task, one user, no persistence needed?
→ s01: minimal loop + bash
Need file read/write/search?
→ s02: extended tool dispatch
Need the agent to plan before acting?
→ s03: add todo_write tool
Task too big for one context window?
→ s04: subagent isolation
Need domain-specific knowledge?
→ s05: skill loading
Long-running session, context will overflow?
→ s06: compression + memory file
Complex multi-step project spanning sessions?
→ s07: task graph with dependencies
Slow operations (builds, tests)?
→ s08: background tasks
Work that parallelises across specialties?
→ s09+: agent teams with mailboxes
Need isolation between parallel tasks?
→ s12/s23: git worktreesCommon mistakes
Putting logic in the harness instead of trusting the model
Bad: if "error" in output: retry_with_different_approach()
Good: return the error to the model and let it decide
Giant system prompts Bad: 5,000-word system prompt covering every scenario Good: load domain knowledge on-demand via skills (s05)
Blocking the loop on slow operations
Bad: output = subprocess.run("npm test", timeout=300)
Good: run in background thread, notify when done (s08)
Shared mutable state between subagents Bad: subagents writing to the same dict/file without locks Good: each subagent has its own isolated context (s04, s12)
Subagent pattern template
def spawn_subagent(prompt: str, tools=EXTENDED_TOOLS, dispatch=EXTENDED_DISPATCH) -> str:
messages = [{"role": "user", "content": prompt}]
while True:
response = client.messages.create(
model=MODEL, system=SUBAGENT_SYSTEM,
messages=messages, tools=tools, max_tokens=8000,
)
messages.append({"role": "assistant", "content": response.content})
if response.stop_reason != "tool_use":
break
results = dispatch_tools(response.content, dispatch)
messages.append({"role": "user", "content": results})
return "".join(b.text for b in messages[-1]["content"] if hasattr(b, "text"))Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

