Agent Skill
2/7/2026

agent-builder

Design and build AI agents for any domain. Use when users: (1) ask to "create an agent", "build an assistant", or "design an AI system" (2) want to understand agent architecture, agentic patterns, or autonomous AI (3) need help with capabilities, subagents, planning, or skill mechanisms (4) ask about Claude Code, Cursor, or similar agent internals (5) want to build agents for business, research, creative, or operational tasks Keywords: agent, assistant, autonomous, workflow, tool use, multi-step, orchestration

W
within
1GitHub Stars
2Views
npx skills add Within-7/minto-plugin-tools

SKILL.md

Nameagent-builder
DescriptionDesign and build AI agents for any domain. Use when users: (1) ask to "create an agent", "build an assistant", or "design an AI system" (2) want to understand agent architecture, agentic patterns, or autonomous AI (3) need help with capabilities, subagents, planning, or skill mechanisms (4) ask about Claude Code, Cursor, or similar agent internals (5) want to build agents for business, research, creative, or operational tasks Keywords: agent, assistant, autonomous, workflow, tool use, multi-step, orchestration

name: agent-builder description: | Design and build AI agents for any domain. Use when users: (1) ask to "create an agent", "build an assistant", or "design an AI system" (2) want to understand agent architecture, agentic patterns, or autonomous AI (3) need help with capabilities, subagents, planning, or skill mechanisms (4) ask about Claude Code, Cursor, or similar agent internals (5) want to build agents for business, research, creative, or operational tasks Keywords: agent, assistant, autonomous, workflow, tool use, multi-step, orchestration

Agent Builder

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

Quick Start

What are you trying to do?

GoalFirst StepResources
Understand how agents workRead philosophyreferences/agent-philosophy.md
Build your first agentStart with 3-5 capabilitiesreferences/minimal-agent.py
Fix context pollutionUse subagentsreferences/subagent-pattern.py
Generate agent scaffoldRun init scriptscripts/init_agent.py

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

PatternSymptomsWhy it failsFix
Over-engineeringComplex state machines, workflow engines, planning systems before seeing real usageYou're guessing what's needed. The model can reason if you give it capabilitiesStart with 3-5 capabilities. Add complexity only when real usage reveals the need
Too many capabilitiesAgent struggles to choose, makes irrelevant calls, gets stuck in loopsDecision paralysis. More options = harder to reason aboutStart with 3-5. Add one at a time when agent consistently fails without it
Rigid workflowsHardcoded step sequences, if-then chains, state machinesCan't adapt to edge cases. Model intelligence is wastedGive capabilities, let model decide order. Trust the reasoning
Front-loaded knowledgeMassive system prompts, always-load references, verbose policiesContext bloat. Expensive tokens, slower responses, degraded performanceLoad knowledge on-demand. Make it available, not mandatory
MicromanagementPre-specifying "first do X, then Y", validation rules on every stepUndercuts model intelligence. You're doing the thinkingGive goal + capabilities. Let model figure out the path
No context isolationLong conversations with multiple subtasks, exploration pollutes main threadContext window fills with irrelevant details. Model loses focusUse subagents for noisy subtasks. Return only summaries

NEVER Do These

  • Don't build a "planning system" before seeing if the model can plan on its own
  • Don't add 10+ capabilities "just in case"
  • Don't hardcode workflows with if-then chains
  • Don't load all knowledge upfront
  • Don't validate every step - let the model reason
  • Don't mix exploration and execution in the same context

Resources

Philosophy & Theory:

  • references/agent-philosophy.md - Deep dive into why agents work

Implementation:

  • references/minimal-agent.py - Complete working agent (~80 lines)
  • references/tool-templates.py - Capability definitions
  • references/subagent-pattern.py - Context isolation

Scaffolding:

  • scripts/init_agent.py - Generate new agent projects

Loading Instructions

MANDATORY - READ ENTIRE FILE: When user asks about agent philosophy, theory, or "why do agents work?", you MUST read references/agent-philosophy.md completely. NEVER set range limits when reading this file.

For implementation help:

TaskMust LoadDo NOT Load
First agent buildminimal-agent.pysubagent-pattern.py, agent-philosophy.md
Context pollution issuessubagent-pattern.pyminimal-agent.py
Generate scaffoldscripts/init_agent.pyAny reference files
Deep theory questionsagent-philosophy.mdImplementation files

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.

Skills Info
Original Name:agent-builderAuthor:within