gorango/flowcraft/scaling-workflows

Claude Code and agent skill by gorango/flowcraft

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Scale Flowcraft workflows from in-memory to distributed execution using adapters (BullMQ, SQS, RabbitMQ, GCP, Azure, Kafka, Cloudflare). Covers durable primitives, middleware, and observability. Use when deploying workflows to production, configuring distributed execution, setting up message queues, adding middleware, or enabling observability.

Install

npx vskill@latest install gorango/flowcraft/scaling-workflows

SKILL.md

Scaling Workflows

Flowcraft workflows scale from in-memory to distributed systems without changing core business logic. Adapters abstract the queue technology.

Architecture

In-Memory (development) Distributed (production)
FlowRuntime FlowRuntime + Adapter
Direct execute Queue-based execute
Single process Multi-worker/process

Distributed adapters

All adapters extend BaseDistributedAdapter and implement:

  • createContext() — initialize coordination state
  • processJobs() — handle incoming node executions
  • enqueueJob() — dispatch nodes to workers
  • publishFinalResult() — emit workflow completion
Available adapters
AdapterQueue TechnologySee
BullMQRedisadapters/bullmq.md
SQSAWS SQSadapters/sqs.md
RabbitMQRabbitMQ/AMQPadapters/rabbitmq.md
GCPGoogle Cloud Tasksadapters/cloud.md
AzureAzure Service Busadapters/cloud.md
KafkaApache Kafkaadapters/cloud.md
CloudflareCloudflare Queuesadapters/cloud.md
VercelVercel Queuesadapters/cloud.md
Adapter setup pattern
typescript
import { FlowRuntime } from 'flowcraft'
import { BullMQAdapter } from '@flowcraft/adapter-bullmq'
const adapter = new BullMQAdapter({
connection: { host: 'localhost', port: 6379 },
prefix: 'flowcraft',
})
const runtime = new FlowRuntime()
const result = await adapter.run(blueprint, initialState, {
functionRegistry,
maxConcurrency: 10,
})

Durable primitives

SleepNode — durable timers
typescript
.flow.sleep('delay', { duration: 5000 })

Use runtime.startScheduler() to auto-resume.

WaitNode — human-in-the-loop
typescript
.flow.wait('approval')

Resume with: await runtime.resume(blueprint, serializedContext, resumeData)

WebhookNode — external triggers
typescript
.flow.node('webhook', {
uses: 'webhook',
params: { path: '/hooks/payment', secret: 'wh_secret' },
})
SubflowNode — nested workflows
typescript
.flow.node('sub', {
uses: 'subflow',
params: { blueprintId: 'child-workflow' },
inputs: { data: 'parent-node' },
})

Middleware pipeline

typescript
const middleware: Middleware[] = [
{
async beforeNode(ctx) {
console.log(`Starting ${ctx.nodeId}`)
},
async afterNode(ctx, result) {
console.log(`Finished ${ctx.nodeId}`)
},
async aroundNode(ctx, next) {
const start = Date.now()
const result = await next()
console.log(`${ctx.nodeId} took ${Date.now() - start}ms`)
return result
},
},
]
const runtime = new FlowRuntime({ middleware })

Lifecycle order:

  1. beforeNode hooks (in order)
  2. aroundNode hooks (wrap in reverse order)
  3. Node execution (prep → exec → post)
  4. afterNode hooks (in order)

Observability

OpenTelemetry
typescript
import { OpenTelemetryMiddleware } from '@flowcraft/middleware-opentelemetry'
const runtime = new FlowRuntime({
middleware: [OpenTelemetryMiddleware()],
})
Event bus

Key event types: workflow:start/finish/stall/pause/resume, node:start/finish/error/retry, context:change, batch:start/finish.

Coordination patterns

Delta-based persistence

TrackedAsyncContext records only mutations, reducing payload by 80-95%.

Poison pill pattern

Failed nodes write cancellation pills to prevent stalling successors.

Fan-in joins

joinStrategy: 'all' (wait for all) or 'any' (first-come-wins with locking).

Advanced topics

  • Adapter configuration details: See adapter reference files linked above
  • Durable primitive patterns: See primitives.md
  • Custom middleware: See middleware.md

Security

  • Security scanPassed, 93 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
207
Repository forks
16
7-day trend score
27

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 7 Sep 2026, a month ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/gorango/flowcraft/scaling-workflows/badge)](https://verified-skill.com/skills/gorango/flowcraft/scaling-workflows)

Something wrong with this skill or its page? Tell us.