duraflows-developer

Build and validate durable workflows with Duraflows core, pg, and nestjs.

4|Updated Mar 28, 2026
One-click install
npx skills add https://github.com/camcima/duraflows --skill duraflows-developer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: duraflows-developer
Source: https://github.com/camcima/duraflows/tree/main/skills/duraflows-developer
Command: npx skills add https://github.com/camcima/duraflows --skill duraflows-developer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides domain expertise for developing durable workflows with the Duraflows packages (@duraflows/core, @duraflows/pg, and @duraflows/nestjs). Use when writing, reviewing, or debugging code that imports duraflows packages, defines WorkflowDefinition objects, implements WorkflowCommand handlers, configures WorkflowModule, or works with workflow states, events, timeouts, or onEnter chains.

Core Features & Use Cases

  • Guidance on building and validating durable workflows end-to-end in TypeScript projects using Duraflows core, persistence adapters, and NestJS integration.
  • Best practices for defining definitions, commands, guards, observers, timeouts, and onEnter chains with robust error handling and auditing.
  • Real-world scenarios and patterns for testing, deployment, and maintenance of workflow modules in both standalone and NestJS environments.

Quick Start

Create a small sample workflow using @duraflows/core and @duraflows/nestjs in a NestJS app to validate the runtime's transaction semantics.

Frequently Asked Questions about duraflows-developer

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

FAQPage Schema
How do I build durable workflows in a NestJS application?

You can build durable workflows in NestJS by defining a WorkflowDefinition object and configuring the WorkflowModule using @duraflows/nestjs. This integration enables robust command handling, guards, and onEnter chains within your application's transaction semantics.

What are durable workflow definitions and how do they manage state transitions?

Durable workflow definitions are TypeScript objects that configure state transitions using commands, guards, and onEnter chains. They ensure reliable state management by validating workflow states and handling events, timeouts, and observers consistently across your application.

Can I use Duraflows to implement workflow timeouts and observers in standalone TypeScript?

Yes, you can use Duraflows in standalone TypeScript projects to implement workflow timeouts and observers. The @duraflows/core package provides the necessary tools to configure these features alongside commands and guards without requiring a full framework.

What is the best way to audit and test durable workflow implementations?

The best way to audit and test durable workflow implementations is to follow Duraflows best practices for immutability, context handling, and error semantics. This approach ensures reliable auditing and robust testing of WorkflowCommand handlers and state transitions in real-world scenarios.

Does Duraflows support PostgreSQL for persisting workflow state?

Yes, Duraflows supports PostgreSQL for persisting workflow state through the @duraflows/pg package. This persistence adapter integrates with the core runtime to provide durable transaction semantics and reliable state management across your workflow definitions.