patricio0312rev avatar

Ai Agent Orchestrator

This gives you the building blocks for coordinating multiple AI agents that can hand work between each other. You get a base agent class with memory, specialized agents for different roles (research, writing, review), and two orchestration patterns: a simple sequential flow and a supervisor mode where an LLM decides which agent runs next. The shared context system lets agents build on each other's outputs, and there's handoff logic so agents can pass tasks along. It's basically the plumbing you need when one LLM call isn't enough and you want to chain different specialized prompts together with some coordination logic. The supervisor pattern is the more interesting piece since it can adapt the workflow based on results.

skills.sh installs
362
GitHub stars
63
last updated
Aug 21, 2026

Install

$ npx -y skills add patricio0312rev/skills --skill ai-agent-orchestrator --agent claude-code

Installs into .claude/skills of the current project.

Files

AI Agent Orchestrator

Build coordinated multi-agent systems for complex task automation.

Core Workflow

  1. Define agents: Create specialized agents
  2. Design workflow: Plan agent coordination
  3. Implement handoffs: Agent-to-agent communication
  4. Add shared memory: Persistent context
  5. Create supervisor: Orchestrate execution
  6. Monitor execution: Track agent activities

Agent Architecture

Agent Definition

// agents/base.ts
import { ChatOpenAI } from '@langchain/openai';
import { SystemMessage, HumanMessage, AIMessage } from '@langchain/core/messages';

export interface AgentConfig {
  name: string;
  role: string;
  systemPrompt: string;
  tools?: Tool[];
  model?: string;
}

export interface AgentResponse {
  content: string;
  toolCalls?: ToolCall[];
  nextAgent?: string;
  completed?: boolean;
}

export class Agent {
  private model: ChatOpenAI;
  private config: AgentConfig;
  private messageHistory: BaseMessage[] = [];

  constructor(config: AgentConfig) {
    this.config = config;
    this.model = new ChatOpenAI({
      modelName: config.model || 'gpt-4-turbo-preview',
      temperature: 0.7,
    });
  }

Sponsors

Details

Repository
github.com/patricio0312rev/skills
Categories
AI & Agent Building, Automation & Workflows
First seen
Jun 3, 2026

More from patricio0312rev/skills

All 138
1affaan-m avatarllm-trading-agent-securityaffaan-m/eccSecurity patterns for autonomous trading agents with wallet or transaction authority. Covers prompt injection, spend limits, pre-send simulation, circuit breake5.6Kskills.sh installs
2giuseppe-trisciuoglio avatarspring-ai-mcp-server-patternsgiuseppe-trisciuoglio/developer-kitProvides Spring Boot MCP server patterns that create Model Context Protocol servers with Spring AI by defining tool handlers, exposing resources, configuring pr3.9Kskills.sh installs
3muratcankoylan avatarmulti-agent-patternsmuratcankoylan/agent-skills-for-context-engineeringThis walks you through the three main patterns for splitting work across multiple LLM instances: supervisor (centralized control), swarm...329skills.sh installs
4andrelandgraf avatarai-agent-workflowandrelandgraf/fullstackrecipesBuild resumable multi-agent workflows with durable execution, tool loops, and automatic stream recovery on client reconnection.128skills.sh installs
5claude-office-skills avatarai-agent-builderclaude-office-skills/skillsBuild AI agents with tools, memory, and multi-step reasoning - ChatGPT, Claude, Gemini integration patterns5Kskills.sh installs
6aradotso avataredict-multi-agent-orchestrationaradotso/trending-skillsedict multi agent orchestration1.4Kskills.sh installs