Skip to content

jeremylongshore/tons-of-skills-marketplace / plugins/ai-ml/ai-sdk-agents/skills/orchestrating-multi-agent-systems

orchestrating-multi-agent-systems

Verified

Execute orchestrate multi-agent systems with handoffs, routing, and workflows across AI providers. Use when building complex AI systems requiring agent collaboration, task delegation, or workflow coordination. Trigger with phrases like "create multi-agent system", "orchestrate agents", or "coordinate agent workflows".

FileKindSize
SKILL.mdskill md5.4 KB
assets/README.mdmarkdown333 B
assets/agent_template.tsscript3.8 KB
assets/example_coordinator.tsscript3.7 KB
assets/example_workflow.jsonconfig6.7 KB
references/README.mdmarkdown56 B
references/errors.mdmarkdown1.1 KB
references/examples.mdmarkdown12.6 KB
references/implementation.mdmarkdown1.5 KB
scripts/README.mdmarkdown380 B
scripts/agent_setup.pyexecutablescript2.5 KB
scripts/dependency_installer.pyexecutablescript2.7 KB
scripts/env_setup.pyexecutablescript2.5 KB

assets/example_workflow.json

View on GitHub
{
  "_comment": "Example workflow definition for a multi-agent system powered by AI SDK v5.",
  "workflow_name": "Customer Service and Issue Resolution",
  "description": "A workflow that handles customer inquiries, escalates issues to specialists, and provides final resolutions.",
  "agents": [
    {
      "agent_id": "customer_service_agent",
      "name": "Customer Service Agent",
      "description": "First point of contact for all customer inquiries. Triages requests and routes them to appropriate specialists.",
      "model_provider": "anthropic",
      "model_name": "claude-3-opus-20240229",
      "prompt": "You are a friendly and helpful customer service agent.  Your primary task is to understand the customer's issue and route it to the correct specialist.  If you can resolve the issue directly, do so. Otherwise, summarize the problem clearly and pass it on. Be polite and professional at all times.  If the customer is angry, use calming language.",
      "initial_state": true,
      "routing_rules": [
        {
          "condition": "The customer's issue is related to billing or payment.",
          "next_agent": "billing_specialist",
          "action": "Summarize the billing issue and forward it to the Billing Specialist."
        },
        {
          "condition": "The customer's issue is technical and requires expert assistance.",
          "next_agent": "technical_support_agent",
          "action": "Summarize the technical issue and forward it to the Technical Support Agent."
        },
        {
          "condition": "The customer is requesting information about products or services.",
          "next_agent": "sales_agent",
          "action": "Forward the inquiry to the Sales Agent."
        },
        {
          "condition": "The customer's issue can be resolved with readily available information.",
          "next_agent": null,
          "action": "Answer the customer's question directly and end the interaction."
        }
      ]
    },
    {
      "agent_id": "billing_specialist",
      "name": "Billing Specialist",
      "description": "Handles all billing and payment-related inquiries. Resolves billing disputes and provides payment options.",
      "model_provider": "openai",
      "model_name": "gpt-4-turbo-preview",
      "prompt": "You are a billing specialist.  Your primary task is to resolve billing issues for customers.  Clearly explain billing policies and provide payment options. If you cannot resolve the issue, escalate to a billing manager.",
      "routing_rules": [
        {
          "condition": "The billing issue is complex and requires managerial approval.",
          "next_agent": "billing_manager",
          "action": "Summarize the issue and forward it to the Billing Manager."
        },
        {
          "condition": "The billing issue can be resolved.",
          "next_agent": null,
          "action": "Resolve the billing issue and notify the customer."
        }
      ]
    },
    {
      "agent_id": "technical_support_agent",
      "name": "Technical Support Agent",
      "description": "Provides technical assistance to customers. Diagnoses and resolves technical issues.",
      "model_provider": "google",
      "model_name": "gemini-1.5-pro",
      "prompt": "You are a technical support agent. Your primary task is to diagnose and resolve technical issues reported by customers. Provide clear and concise instructions. If the issue requires a software update, guide the customer through the process.",
      "routing_rules": [
        {
          "condition": "The technical issue requires a software update.",
          "next_agent": null,
          "action": "Guide the customer through the software update process and verify the resolution."
        },
        {
          "condition": "The technical issue is beyond your expertise.",
          "next_agent": "escalation_team",
          "action": "Escalate the issue to the escalation team with a detailed description."
        },
        {
          "condition": "The technical issue is resolved.",
          "next_agent": null,
          "action": "Confirm the resolution with the customer and close the ticket."
        }
      ]
    },
    {
      "agent_id": "sales_agent",
      "name": "Sales Agent",
      "description": "Provides information about products and services and assists with sales inquiries.",
      "model_provider": "anthropic",
      "model_name": "claude-3-opus-20240229",
      "prompt": "You are a sales agent. Your primary task is to answer questions about our products and services and assist customers with their sales inquiries.  Highlight key features and benefits.  Offer promotions where available.",
      "routing_rules": [
        {
          "condition": "The customer is ready to make a purchase.",
          "next_agent": null,
          "action": "Guide the customer through the purchase process."
        },
        {
          "condition": "The customer has specific product questions.",
          "next_agent": null,
          "action": "Answer the customer's questions and provide relevant information."
        }
      ]
    },
    {
      "agent_id": "billing_manager",
      "name": "Billing Manager",
      "description": "Handles escalated billing issues that require managerial approval.",
      "model_provider": "openai",
      "model_name": "gpt-4-turbo-preview",
      "prompt": "You are a billing manager. Your primary task is to review and resolve escalated billing issues.  Make decisions on exceptions and adjustments.  Ensure compliance with billing policies.",
      "routing_rules": [
        {
          "condition": "The issue requires further investigation.",
          "next_agent": null,
          "action": "Investigate the issue and make a final decision."
        },
        {
          "condition": "The issue can be resolved with an exception.",
          "next_agent": null,
          "action": "Approve the exception and resolve the billing issue."
        }
      ]
    },
    {
      "agent_id": "escalation_team",
      "name": "Escalation Team",
      "description": "Handles complex technical issues that require specialized expertise.",
      "model_provider": "google",
      "model_name": "gemini-1.5-pro",
      "prompt": "You are part of the escalation team. Your primary task is to resolve complex technical issues that have been escalated. Collaborate with other experts and conduct thorough investigations.",
      "routing_rules": [
        {
          "condition": "The issue requires a code fix.",
          "next_agent": null,
          "action": "Develop and deploy a code fix to resolve the issue."
        },
        {
          "condition": "The issue requires hardware replacement.",
          "next_agent": null,
          "action": "Coordinate hardware replacement with the customer and resolve the issue."
        }
      ]
    }
  ]
}
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 323kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 323kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 323kUpdated Claude CodeCodexVerifiedInstall