Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Ai Sdk Agents

ASecurity

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".

21 stars
0 votes
0 copies
0 views
Added 2/7/2026
developmenttypescriptgobashnodetestingapidocumentation

Works with

api

Security Analysis

A92/100
mediumInstalls packages at runtime which could introduce malicious dependencies

Scanned 2/12/2026

Install to Claude Code

$npx -y skills add BbgnsurfTech/claude-skills-collection --skill ai-sdk-agents --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ai Sdk Agents?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Ai Sdk Agents
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bbgnsurftech-ai-sdk-agents/badge)](https://www.skillsdirectory.com/skills/bbgnsurftech-ai-sdk-agents)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: orchestrating-multi-agent-systems
version: 1.0.0
description: |
  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".
allowed-tools: Read, Write, Edit, Grep, Glob, Bash(npm:*, node:*)
license: MIT
---

## Prerequisites

Before using this skill, ensure you have:
- Node.js 18+ installed for TypeScript agent development
- AI SDK v5 package installed (`npm install ai`)
- API keys for AI providers (OpenAI, Anthropic, Google, etc.)
- Understanding of agent-based architecture patterns
- TypeScript knowledge for agent implementation
- Project directory structure for multi-agent systems

## Instructions

### Step 1: Initialize Project Structure
Set up the foundation for your multi-agent system:
1. Create project directory with necessary subdirectories
2. Initialize npm project with TypeScript configuration
3. Install AI SDK v5 and provider-specific packages
4. Set up configuration files for agent orchestration

### Step 2: Define Agent Roles
Identify and specify specialized agents needed:
- Determine agent responsibilities and capabilities
- Define agent system prompts with clear instructions
- Specify tools each agent can access
- Establish agent communication protocols

### Step 3: Implement Agents
Create individual agent files with proper configuration:
1. Write agent initialization code with AI SDK
2. Configure system prompts for agent behavior
3. Define tool functions for agent capabilities
4. Implement handoff rules for inter-agent delegation

### Step 4: Configure Orchestration
Set up coordination between agents:
- Define workflow sequences for task processing
- Implement routing logic for task distribution
- Configure handoff mechanisms between agents
- Set up state management for multi-step workflows

### Step 5: Test and Refine
Validate the multi-agent system functionality:
- Test individual agent responses and behaviors
- Verify handoff execution between agents
- Validate routing logic with different input scenarios
- Monitor coordination and identify bottlenecks

## Output

The skill generates a complete multi-agent system including:

### Project Structure
```
{baseDir}/
├── agents/
│   ├── coordinator.ts       # Main orchestration agent
│   ├── specialist-1.ts      # Domain-specific agent
│   ├── specialist-2.ts      # Domain-specific agent
│   └── [additional agents]
├── orchestration/
│   ├── workflow.ts          # Workflow definitions
│   ├── routing.ts           # Routing logic
│   └── handoffs.ts          # Handoff configurations
├── tools/
│   └── [agent tools]        # Shared tool implementations
├── config/
│   └── agents.config.ts     # Agent configurations
└── package.json             # Dependencies
```

### Agent Implementation Files
- TypeScript files with AI SDK v5 integration
- System prompts tailored to each agent role
- Tool definitions and implementations
- Handoff rules and coordination logic

### Orchestration Configuration
- Workflow definitions for task sequences
- Routing rules for intelligent task distribution
- State management for multi-step processes
- Error handling and fallback mechanisms

### Documentation
- Agent role descriptions and capabilities
- Workflow diagrams showing agent interactions
- API documentation for agent endpoints
- Usage examples for common scenarios

## Error Handling

Common issues and solutions:

**Agent Initialization Failures**
- Error: AI SDK provider configuration invalid
- Solution: Verify API keys in environment variables, check provider-specific setup requirements

**Handoff Execution Errors**
- Error: Agent handoff fails or creates circular dependencies
- Solution: Review handoff rules for clarity, implement handoff depth limits, add fallback agents

**Routing Logic Failures**
- Error: Tasks routed to incorrect agent or no agent
- Solution: Refine routing criteria, add default routing rules, implement topic classification improvement

**Tool Access Violations**
- Error: Agent attempts to use unauthorized tools
- Solution: Review tool permissions per agent, implement proper access control, validate tool configurations

**Workflow Deadlocks**
- Error: Multi-agent workflow stalls without completion
- Solution: Implement timeout mechanisms, add workflow monitoring, design escape conditions for stuck states

## Resources

### AI SDK Documentation
- AI SDK v5 official documentation for agent creation
- Provider-specific integration guides (OpenAI, Anthropic, Google)
- Tool definition and implementation examples
- Handoff and routing pattern references

### Multi-Agent Architecture Patterns
- Coordinator-worker pattern for task distribution
- Pipeline pattern for sequential processing
- Hub-and-spoke pattern for centralized coordination
- Peer-to-peer pattern for collaborative agents

### Agent Design Best Practices
- Single responsibility principle for agent specialization
- Clear handoff criteria and routing rules
- Comprehensive error handling and fallbacks
- State management for complex workflows
- Testing strategies for multi-agent systems

### Example Use Cases
- Code generation pipelines with specialized agents
- Customer support routing systems
- Research and analysis workflows
- Content creation and review pipelines
- Data processing and validation systems

Attribution

BbgnsurfTechBbgnsurfTech
View sourceMore from BbgnsurfTech →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Browser Extension Developer

Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.

284072 votes

Seo Optimizer

SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.

2192 votes

Google Official Seo Guide

Official Google SEO guide covering search optimization, best practices, Search Console, crawling, indexing, and improving website search visibility based on official Google documentation

1862 votes

Tanstack Start

Build a full-stack TanStack Start app on Cloudflare Workers from scratch — SSR, file-based routing, server functions, D1+Drizzle, better-auth, Tailwind v4+shadcn/ui. Use whenever the user mentions TanStack Start, asks to scaffold a full-stack Cloudflare app with SSR, wants an SSR dashboard, or asks for a React 19 + Cloudflare Workers app with file-based routing and server functions — even if they don't name TanStack Start specifically. No template repo — Claude generates every file fresh per ...

9881 votes

Pentest

PTES-aligned adversarial security audit for backend, frontend, and mobile applications. Produces a CVSS-scored Hacker Report with verified PoCs and phased remediation.

5491 votes
View all in development →