dbos-patterns

Enforce DBOS method usage rules across workflows and steps.

15|3|Updated Apr 29, 2025
One-click install
npx skills add https://github.com/chaingraphlabs/chaingraph --skill dbos-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dbos-patterns
Source: https://github.com/chaingraphlabs/chaingraph/tree/main/.claude/skills/dbos-patterns
Command: npx skills add https://github.com/chaingraphlabs/chaingraph --skill dbos-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

DBOS patterns address the complexity of coordinating workflows, steps, and child executions by enforcing safe and correct usage of DBOS methods across the system.

Core Features & Use Cases

  • Workflow discipline: enforce correct usage of DBOS methods at the workflow and step boundaries.
  • Child workflow orchestration: collect and spawn child workflows from a central workflow with idempotent behavior.
  • Concurrency & reliability: manage concurrency and deduplication using WorkflowQueue to coordinate large task sets.
  • Lifecycle safety: provide patterns for auto-start, parent monitoring, and durable sleep to ensure robust operation.

Quick Start

Install and reference the dbos-patterns in your executor, then apply the CRITICAL constraints in your ExecutionWorkflows.ts and Step implementations to ensure compliant calls and predictable lifecycles.

Frequently Asked Questions about dbos-patterns

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

FAQPage Schema
How do I orchestrate parent-child workflows with idempotent behavior and controlled spawning?

Workflow orchestration patterns enforce correct DBOS method usage at workflow and step boundaries, ensuring safe calls to functions like writeStream and runStep while satisfying constraint references and predictable lifecycle requirements.

How do I manage concurrency and deduplication for large sets of orchestrated tasks?

Child workflow orchestration requires collecting tasks centrally and spawning them with idempotent behavior, enforcing DBOS constraints to guarantee safe, controlled spawning and predictable parent-child execution lifecycles.

Does DBOS enforce where and how methods like writeStream and runStep can be called?

Concurrency and deduplication are managed using WorkflowQueue patterns to coordinate large task sets, providing durable queuing and reliable execution without duplicate processing across orchestrated workflows.

What is the best way to ensure durable sleep and lifecycle safety in orchestrated workflows?

Durable sleep and lifecycle safety are ensured by applying DBOS patterns for auto-start and parent monitoring, providing robust operation and predictable lifecycles for long-running orchestrated execution systems.

How do I start applying DBOS constraints to my workflow and step implementations?

Start applying DBOS constraints by installing and referencing dbos-patterns in your executor, then enforcing the critical constraints in ExecutionWorkflows and Step implementations to ensure compliant calls and predictable lifecycles.