workflow-engine

Orchestrate type-safe multi-stage workflows with persistence and cost tracking.

1|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/bratsos/workflow-engine --skill workflow-engine
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: workflow-engine
Source: https://github.com/bratsos/workflow-engine/tree/main/packages/workflow-engine/skills/workflow-engine
Command: npx skills add https://github.com/bratsos/workflow-engine --skill workflow-engine

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

The Skill provides a robust framework for building and running AI-powered, multi-stage workflows with strong type-safety, persistence, and stage orchestration, reducing complexity in AI automation projects.

Core Features & Use Cases

  • Type-safe stage definitions: Define synchronous and async-batch stages with precise input/output schemas and execution semantics.
  • End-to-end workflow orchestration: Build pipelines using WorkflowBuilder, manage dependencies, and support suspend/resume across long-running tasks.
  • AI integration & cost tracking: Integrate AI helpers with hierarchical cost tracking across stages and runs.

Quick Start

Install the library, define a few stages with defineStage/defineAsyncBatchStage, assemble them with WorkflowBuilder, and run them with a runtime to process data end-to-end.

Frequently Asked Questions about workflow-engine

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I orchestrate AI-powered, multi-stage workflows with type safety and persistence?

You can orchestrate AI-powered workflows using a WorkflowBuilder to assemble synchronous and async-batch stages with type-safe schemas. The unified runtime manages pipeline execution, dependencies, and Prisma persistence for jobs, logs, and artifacts.

What is the best way to track AI API costs across multiple pipeline stages?

Tracking AI API costs across pipeline stages is handled via integrated AI helpers that provide hierarchical cost tracking. This monitors expenses across individual stages and throughout the entire suspended and resumed workflow execution.

Can I suspend and resume long-running tasks in a multi-stage workflow?

Yes, you can suspend and resume long-running tasks in a multi-stage workflow. The orchestration runtime supports suspended and resumed executions, allowing pipelines to pause during async-batch stages and continue processing reliably later.

How do I define type-safe input and output schemas for async-batch stages?

You define type-safe input and output schemas for async-batch stages using defineAsyncBatchStage. This ensures precise execution semantics and data validation across synchronous and asynchronous pipeline operations.

Does Prisma persistence support job logs and artifacts for AI workflow orchestration?

Yes, Prisma persistence supports job logs and artifacts for AI workflow orchestration. The unified runtime leverages Prisma to manage persistence, ensuring data and artifacts are stored securely across suspended and resumed executions.

When do I need type-safe stage definitions for AI automation pipelines?

You need type-safe stage definitions for AI automation pipelines when building multi-stage workflows that require strict input and output schema validation. This reduces complexity and prevents runtime errors across synchronous and async-batch executions.