Claude Skills
CollectionsCompareWorkflowsNominate
Sign inSign up
© 2026 Curated Agent Skills·Learn more about Agent Skills
Back to repository

agent-workflow-patterns

verified

AI agent workflow patterns including ReAct agents, multi-agent systems, loop control, tool orchestration, and autonomous agent architectures. Use when building AI agents, implementing workflows, creating autonomous systems, or when user mentions agents, workflows, ReAct, multi-step reasoning, loop control, agent orchestration, or autonomous AI.

View on GitHub

Marketplace

ai-dev-marketplace

vanman2024/ai-dev-marketplace

Plugin

vercel-ai-sdk

development

Repository

vanman2024/ai-dev-marketplace
2stars

plugins/vercel-ai-sdk/skills/agent-workflow-patterns/SKILL.md

Last Verified

February 1, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/vanman2024/ai-dev-marketplace/blob/main/plugins/vercel-ai-sdk/skills/agent-workflow-patterns/SKILL.md -a claude-code --skill agent-workflow-patterns

Installation paths:

Claude
.claude/skills/agent-workflow-patterns/
Powered by add-skill CLI

Instructions

# Agent Workflow Patterns

**Purpose:** Provide production-ready agent architectures, workflow patterns, and loop control strategies for building autonomous AI systems with Vercel AI SDK.

**Activation Triggers:**
- Building autonomous AI agents
- Implementing multi-step reasoning
- Creating agent workflows
- Tool orchestration and coordination
- Loop control and iteration management
- Multi-agent system architectures
- ReAct (Reasoning + Acting) patterns

**Key Resources:**
- `templates/react-agent.ts` - ReAct agent pattern
- `templates/multi-agent-system.ts` - Multiple specialized agents
- `templates/workflow-orchestrator.ts` - Workflow coordination
- `templates/loop-control.ts` - Iteration and safeguards
- `templates/tool-coordinator.ts` - Tool orchestration
- `scripts/validate-agent.sh` - Validate agent configuration
- `examples/` - Production agent implementations (RAG agent, SQL agent, etc.)

## Core Agent Patterns

### 1. ReAct Agent (Reasoning + Acting)

**When to use:** Complex problem-solving requiring iterative thought and action

**Template:** `templates/react-agent.ts`

**Pattern:**
```typescript
async function reactAgent(task: string, maxIterations: number = 5) {
  const tools = { /* tool definitions */ }
  let iteration = 0

  while (iteration < maxIterations) {
    // Reasoning step
    const thought = await generateText({
      model: openai('gpt-4o')
      messages: [
        { role: 'system', content: 'Think step-by-step...' }
        { role: 'user', content: task }
      ]
    })

    // Acting step (tool calls)
    const action = await generateText({
      model: openai('gpt-4o')
      tools
      toolChoice: 'auto'
      messages: [/* ... */]
    })

    // Check if task complete
    if (isComplete(action)) break
    iteration++
  }

  return result
}
```

**Best for:** Research, analysis, complex planning

### 2. Multi-Agent System

**When to use:** Complex domains requiring specialized expertise

**Template:** `templates/multi-agent-system.ts

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
5323 chars