Workflow Compose

Execute YAML-defined multi-step workflows by chaining Betty Framework skills.

2|Updated Oct 22, 2025
One-click install
npx skills add https://github.com/epieczko/betty --skill workflow-compose
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Workflow Compose
Source: https://github.com/epieczko/betty/tree/main/skills/workflow.compose
Command: npx skills add https://github.com/epieczko/betty --skill workflow-compose

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires skill.create, skill.define, registry.update, and includes scripts (resource) components.

What problem does it solve?

Complex development and operational tasks often involve multiple sequential steps, each requiring a different tool or skill. This Skill allows you to define and execute multi-step workflows declaratively, ensuring reliable automation and reducing manual orchestration.

Core Features & Use Cases

  • Declarative Workflows: Define sequences of skills, agents, or commands in a simple YAML file, making complex processes easy to understand and manage.
  • Intelligent Error Handling: Configure steps as required to stop on critical failures or continue on non-critical ones, providing robust execution.
  • Audit & History: Automatically logs execution history to /registry/workflow_history.json and integrates with audit.log for full traceability.
  • Use Case: An API-first development process might involve defining an API, validating it, and then generating models. workflow.compose can chain api.define, api.validate, and api.generate-models into a single, repeatable workflow, automating the entire lifecycle.

Quick Start

Execute a workflow defined in 'workflows/my-workflow.yaml'

python skills/workflow.compose/workflow_compose.py workflows/my-workflow.yaml

Frequently Asked Questions about Workflow Compose

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

FAQPage Schema
How do I automate multi-step CI/CD pipelines with declarative workflows?

Workflow Compose chains multiple skills sequentially using YAML declarations, automating complex pipelines like API definition, validation, and model generation in a single repeatable workflow. Define steps in YAML, specify dependencies, and execute with deterministic error handling and audit logging built in.

Can I configure workflows to skip non-critical failures and continue execution?

Yes. Mark steps as `required` to stop on failure or omit the flag to continue on errors. This enables robust execution where non-critical steps don't block the pipeline, while critical ones halt processing and log the failure to audit records.

What happens to workflow execution history and logs?

Execution history automatically persists to `/registry/workflow_history.json` with full provenance tracking, and integrates with `audit.log` for traceability. Every step execution is recorded with outcomes and timing for compliance and debugging.

How do I chain skill.create, skill.define, and registry.update into one workflow?

Write a YAML file listing skills as sequential steps with their inputs and error handling preferences. Pass the file path to `workflow_compose.py` to execute the entire chain in order, with timeouts and schema validation enforced at each step.

Do I need to write custom code to orchestrate skills together?

No. Workflow Compose uses declarative YAML syntax to define orchestration logic without custom scripting. The framework handles in-process skill execution, validation, timeout management, and audit integration automatically.

What validation does the workflow engine perform on YAML definitions?

Schema validation ensures YAML structure matches workflow requirements before execution. The engine validates skill references, parameter types, and dependency resolution, preventing misconfigured workflows from running and catching errors early.