mcpField
A
ai-agent-workflow

ai-agent-workflow

github.com/andrelandgrafAgent workflows23128 installsUpdated 20w ago
Repository

About ai-agent-workflow

A recipe-based skill for building resumable, durable AI agent workflows in Next.js, covering stream recovery, persisted chat, and custom agents using the Workflow Development Kit.

Key features

  1. 01Durable workflow setup
  2. 02Resumable AI response streams
  3. 03Custom durable agent construction
  4. 04Tool loop implementation
  5. 05Workflow execution best practices

Use cases

  1. 01Recovering chat streams after reconnects
  2. 02Persisting AI chat conversations
  3. 03Building agents with durable execution

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/andrelandgraf/fullstackrecipes --skill ai-agent-workflow

After installing, type/ai-agent-workflowin Claude Code to confirm it loaded.

Details

From the project README

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.

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.

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.

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.

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.

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.

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.

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.

curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/custom-durable-agent
Workflow Best Practices

Create and run durable workflows with steps, streaming, and agent execution. Covers starting, resuming, and persisting workflow results.

bunx skills add andrelandgraf/fullstackrecipes/skills -s workflow-best-practices

Comments

Markdown supported