ai-agent-workflow
Build resumable multi-agent workflows with durable execution, tool loops, and automatic stream recovery on client reconnection.
Best use case
ai-agent-workflow is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Build resumable multi-agent workflows with durable execution, tool loops, and automatic stream recovery on client reconnection.
Teams using ai-agent-workflow should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/ai-agent-workflow/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How ai-agent-workflow Compares
| Feature / Agent | ai-agent-workflow | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Build resumable multi-agent workflows with durable execution, tool loops, and automatic stream recovery on client reconnection.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
SKILL.md Source
# Multi-Agent Workflows Build resumable multi-agent workflows with durable execution, tool loops, and automatic stream recovery on client reconnection. ## Prerequisites Complete these recipes first (in order): ### Type-Safe Environment Configuration with better-env Use better-env config modules for type-safe server/public env access, feature flags, and either-or credential constraints. ```bash curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/config-schema-setup ``` ### Neon + Drizzle Setup Connect a Next.js app to Neon Postgres using Drizzle ORM with optimized connection pooling for Vercel serverless functions. ```bash curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/neon-drizzle-setup ``` ### Better Auth Setup Add user authentication using Better Auth with Drizzle ORM and Neon Postgres. Base setup with email/password authentication. ```bash curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/better-auth-setup ``` ### AI Chat Persistence with Neon Persist AI chat conversations to Neon Postgres with full support for AI SDK message parts including tools, reasoning, and streaming. Uses UUID v7 for chronologically-sortable IDs. ```bash curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/ai-chat-persistence ``` ### Pino Logging Setup Configure structured logging with Pino. Outputs human-readable colorized logs in development and structured JSON in production for log aggregation services. ```bash curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/pino-logging-setup ``` ## Cookbook - Complete These Recipes in Order ### Workflow Development Kit Setup Install and configure the Workflow Development Kit for resumable, durable AI agent workflows with step-level persistence, stream resumption, and agent orchestration. ```bash curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/workflow-setup ``` ### Resumable AI Response Streams Add automatic stream recovery to AI chat with WorkflowChatTransport, start/resume API endpoints, and the useResumableChat hook. ```bash curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/resumable-ai-streams ``` ### Custom Durable Agent Build a custom durable AI agent with full control over streamText options, provider configs, and tool loops. Compatible with the Workflow Development Kit. ```bash curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/custom-durable-agent ``` ### Working with Workflows Create and run durable workflows with steps, streaming, and agent execution. Covers starting, resuming, and persisting workflow results. ```bash curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/using-workflows ```
Related Skills
workflow-setup
Install and configure the Workflow Development Kit for resumable, durable AI agent workflows with step-level persistence, stream resumption, and agent orchestration.
using-workflows
Create and run durable workflows with steps, streaming, and agent execution. Covers starting, resuming, and persisting workflow results.
env-workflow-vercel
Manage environment variables across Vercel environments. Sync with Vercel CLI, handle local overrides, and load env vars in scripts.
url-state-management
Sync React state to URL query parameters for shareable filters, search, and deep-linkable dialogs with nuqs.
testing
Complete testing setup with Neon database branching, Playwright browser tests, integration tests, and unit tests. Isolated branches with automatic TTL cleanup.
stripe-subscriptions
Complete subscription billing system with Stripe integration, feature flags for plan gating, webhook handling, and billing portal.
ralph-loop
Complete setup for automated agent-driven development. Define features as user stories with testable acceptance criteria, then run AI agents in a loop until all stories pass.
observability-monitoring
Complete observability stack with structured logging, error tracking, and web analytics.
env-management
Complete better-env workflow: typed config schema, Vercel sync, and prebuild validation.
base-app-setup
Complete setup guide for a Next.js app with Shadcn UI, Neon Postgres, Drizzle ORM, and AI SDK.
authentication
Complete authentication system with Better Auth, email verification, password reset, protected routes, and account management.
ai-chat
Build a complete AI chat application with database persistence, chat list management, and automatic title generation.