mcpField
A
agent-builder

agent-builder

github.com/shareai-labAgent workflows31656 installsUpdated 6w ago
Repository

About agent-builder

agent-builder is a skill for designing AI agents across domains, from research to business operations. It centers on a simple model-driven action loop, with guidance for capabilities, on-demand knowledge, context, and gradual complexity; its Python examples use the Anthropic SDK.

Key features

  1. 01Design guidance for agent capabilities and context
  2. 02On-demand domain knowledge loading
  3. 03Progressive patterns for planning and subagents
  4. 04Python starter resources and templates
  5. 05Provider-agnostic architecture guidance

Use cases

  1. 01Plan an agent for a business or research task
  2. 02Choose capabilities before implementing an agent
  3. 03Add planning or isolated subagents as needed
  4. 04Generate a local Python starter project

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/shareai-lab/lab-skills --skill agent-builder

After installing, type/agent-builderin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
agent-philosophy.md
minimal-agent.py
subagent-pattern.py
tool-templates.py
scripts/
init_agent.py

Details

From the project README

Agent Builder

Build AI agents for any domain - customer service, research, operations, creative work, or specialized business processes.

Applicability

Treat the architecture and orchestration guidance as provider-agnostic. The bundled Python starter code currently uses the Anthropic SDK and an Anthropic model configuration; adapt that implementation layer when using another provider. Do not mistake the example client for a required agent architecture.

The Core Philosophy

The model already knows how to be an agent. Your job is to get out of the way.

An agent is not complex engineering. It's a simple loop that invites the model to act:

LOOP:
  Model sees: context + available capabilities
  Model decides: act or respond
  If act: execute capability, add result, continue
  If respond: return to user

That's it. The magic isn't in the code - it's in the model. Your code just provides the opportunity.

The Three Elements

1. Capabilities (What can it DO?)

Atomic actions the agent can perform: search, read, create, send, query, modify.

Design principle: Start with 3-5 capabilities. Add more only when the agent consistently fails because a capability is missing.

2. Knowledge (What does it KNOW?)

Domain expertise injected on-demand: policies, workflows, best practices, schemas.

Design principle: Make knowledge available, not mandatory. Load it when relevant, not upfront.

3. Context (What has happened?)

The conversation history - the thread connecting actions into coherent behavior.

Design principle: Context is precious. Isolate noisy subtasks. Truncate verbose outputs. Protect clarity.

Agent Design Thinking

Before building, understand:

  • Purpose: What should this agent accomplish?
  • Domain: What world does it operate in? (customer service, research, operations, creative...)
  • Capabilities: What 3-5 actions are essential?
  • Knowledge: What expertise does it need access to?
  • Trust: What decisions can you delegate to the model?

CRITICAL: Trust the model. Don't over-engineer. Don't pre-specify workflows. Give it capabilities and let it reason.

Progressive Complexity

Start simple. Add complexity only when real usage reveals the need:

LevelWhat to addWhen to add it
Basic3-5 capabilitiesAlways start here
PlanningProgress trackingMulti-step tasks lose coherence
SubagentsIsolated child agentsExploration pollutes context
SkillsOn-demand knowledgeDomain expertise needed

Most agents never need to go beyond Level 2.

Domain Examples

Business: CRM queries, email, calendar, approvals Research: Database search, document analysis, citations Operations: Monitoring, tickets, notifications, escalation Creative: Asset generation, editing, collaboration, review

The pattern is universal. Only the capabilities change.

Key Principles

  1. The model IS the agent - Code just runs the loop
  2. Capabilities enable - What it CAN do
  3. Knowledge informs - What it KNOWS how to do
  4. Constraints focus - Limits create clarity
  5. Trust liberates - Let the model reason
  6. Iteration reveals - Start minimal, evolve from usage

Anti-Patterns

PatternProblemSolution
Over-engineeringComplexity before needStart simple
Too many capabilitiesModel confusion3-5 to start
Rigid workflowsCan't adaptLet model decide
Front-loaded knowledgeContext bloatLoad on-demand
MicromanagementUndercuts intelligenceTrust the model

Resource Routing

Load only what the current task needs:

User needResourceDo not load when
Understand or debate the architecturereferences/agent-philosophy.mdThe user only needs runnable starter code
Inspect the smallest complete loopreferences/minimal-agent.pyThe task is conceptual or provider-neutral
Add or adapt individual capabilitiesreferences/tool-templates.pyNo implementation is requested
Design context-isolated child agentsreferences/subagent-pattern.pyA single-agent loop is sufficient
Generate a local Python starter projectscripts/init_agent.pyThe user asked only for design advice

The Python resources are learning-oriented examples, not a security boundary. Their shell capability requires user approval by default; production systems still need isolation, least privilege, audit logs, and policy appropriate to their threat model.

The Agent Mindset

From: "How do I make the system do X?" To: "How do I enable the model to do X?"

From: "What's the workflow for this task?" To: "What capabilities would help accomplish this?"

The best agent code is almost boring. Simple loops. Clear capabilities. Clean context. The magic isn't in the code.

Give the model capabilities and knowledge. Trust it to figure out the rest.

Comments

Markdown supported