Runs workflow steps, manages execution context, and handles errors during workflow automation. Activates when the user wants to run, execute, resume, or check status on a workflow, or asks 'start the [name] workflow.' Covers step execution protocol, context passing between steps, error recovery, and Notion execution logging.
From founder-osnpx claudepluginhub thecloudtips/founder-os --plugin founder-osThis skill uses the workspace's default tool permissions.
references/context-management.mdreferences/error-handling.mdreferences/step-runner.mdDesigns and optimizes AI agent action spaces, tool definitions, observation formats, error recovery, and context for higher task completion rates.
Enables AI agents to execute x402 payments with per-task budgets, spending controls, and non-custodial wallets via MCP tools. Use when agents pay for APIs, services, or other agents.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
Execute YAML-defined workflows by resolving the step DAG, running each step's command in dependency order, passing context between steps, handling errors according to configured strategy, and logging execution results to Notion. The execution engine operates as a stateless pipeline — each run initializes fresh context.
workflows/ by name, parse YAMLFor each step in the resolved execution order:
{{context.key}} patterns in args values[Step N/M] Running: step-name...Reference ${CLAUDE_PLUGIN_ROOT}/skills/workflow/workflow-execution/references/step-runner.md for detailed execution protocol, condition evaluation, and timeout handling.
{{context.key}} — match with regex \{\{context\.([a-zA-Z0-9_]+)\}\}{{context.key}} string and log a warningReference ${CLAUDE_PLUGIN_ROOT}/skills/workflow/workflow-execution/references/context-management.md for substitution rules, reserved keys, truncation policy, and security considerations.
Three-tier error classification:
Error handling decision tree:
Reference ${CLAUDE_PLUGIN_ROOT}/skills/workflow/workflow-execution/references/error-handling.md for decision trees, error message templates, and recovery strategies.
Support resuming a failed workflow from a specific step using --from=step-id:
Log each workflow run to the "[FOS] Workflows" database with Type="Execution".
Write these properties on each execution record:
| Property | Type | Value |
|---|---|---|
| Title | title | Run ID (UUID identifier for this execution) |
| Type | select | "Execution" (always) |
| Status | select | Running, Completed, Failed, Cancelled |
| Description | rich_text | Name from workflow.name |
| Steps Count | number | Total step count |
| Steps Completed | number | Successfully completed steps |
| Steps Failed | number | Failed steps |
| Steps Skipped | number | Skipped steps (condition false or downstream of failure) |
| Started At | date | Execution start timestamp |
| Completed At | date | Execution end timestamp |
| Duration | rich_text | Human-readable duration (e.g., "2m 34s") |
| Triggered By | select | Manual, Schedule, Chained |
| Workflow Version | rich_text | Version from workflow.version |
| Context Snapshot | rich_text | JSON of final context state (truncated to 2000 chars) |
| Error Summary | rich_text | First error message if failed |
| Generated At | date | Timestamp when record was written |
| Company | relation | Populate Company relation when the workflow execution is client-scoped (triggered for a specific client or involves client-specific data) |
Upsert by Run ID (title) with an additional filter on Type="Execution" to avoid collisions with SOP records in the same database.
During execution, display real-time progress to the user:
Workflow: morning-routine v1.0.0
[Step 1/4] Running: check-email... ✓ (12s)
[Step 2/4] Running: review-calendar... ✓ (8s)
[Step 3/4] Running: generate-briefing... ✗ Failed (timeout)
[Step 4/4] Skipped: send-summary (depends on failed step)
Result: PARTIAL (2/4 completed, 1 failed, 1 skipped)
Duration: 23s
${CLAUDE_PLUGIN_ROOT}/skills/workflow/workflow-execution/references/step-runner.md — Step execution protocol, condition evaluation, timeout enforcement, and command invocation details${CLAUDE_PLUGIN_ROOT}/skills/workflow/workflow-execution/references/context-management.md — Context initialization, substitution rules, reserved keys, truncation, and security considerations${CLAUDE_PLUGIN_ROOT}/skills/workflow/workflow-execution/references/error-handling.md — Error classification, decision trees, error templates, recovery strategies, and resume protocol