af-orchestrate

Evaluate workflow state and output a JSON decision for the next action.

1|Updated Nov 12, 2025
One-click install
npx skills add https://github.com/e-stpierre/agentic-forge --skill af-orchestrate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: af-orchestrate
Source: https://github.com/e-stpierre/agentic-forge/tree/main/src/claude/.claude/skills/orchestrate
Command: npx skills add https://github.com/e-stpierre/agentic-forge --skill af-orchestrate

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Evaluate current workflow state to determine the next action, enabling autonomous progression and robust error handling in multi-step tasks.

Core Features & Use Cases

  • Decision engine for workflow progress, including completion checks, retry logic, blocking conditions, and error recovery.
  • Conditional evaluation using contextual data (outputs and variables) to drive step sequencing.
  • Returns a deterministic JSON decision format that agents can execute to advance or pause workflows.

Quick Start

Provide the current workflow YAML, progress JSON, and last step output to receive the next-action JSON decision.

Frequently Asked Questions about af-orchestrate

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

FAQPage Schema
How do I determine the next action in a multi-step workflow automation?

Workflow orchestration evaluates the current state, progress, and last step outputs to output a deterministic JSON decision guiding the next action. This enables autonomous progression, conditional evaluation, and robust error recovery in multi-step tasks.

How does an AI agent handle retry logic and error recovery in automated workflows?

AI agents handle retry logic by applying conditional evaluation to the workflow state and contextual data. They return a deterministic JSON decision that instructs the agent whether to retry, pause, or advance the workflow sequence.

Can I use YAML to configure conditional evaluation for human-in-the-loop scenarios?

Yes, you can define workflow structures in YAML for conditional evaluation. The orchestrator evaluates the YAML alongside progress JSON to output deterministic decisions for blocking conditions and human-in-the-loop scenarios.

What is the best way to keep multi-step workflows moving autonomously without manual intervention?

The best way to keep workflows moving autonomously is to use a decision engine that predicts next actions by evaluating workflow state. It outputs a JSON decision format that agents execute to advance, pause, or complete tasks without manual intervention.

Do I need Nunjucks templates to format workflow state for decision reasoning?

You do not strictly need Nunjucks templates for decision reasoning, but the orchestrator supports Nunjucks for contextual data formatting. It evaluates the workflow state and outputs deterministic JSON decisions regardless of the templating approach.

When should I avoid using a JSON decision engine for workflow orchestration?

You should avoid using a JSON decision engine for workflow orchestration when tasks require non-deterministic outputs or lack strict conditional evaluation requirements. It is designed for robust decision reasoning in multi-step automation, not simple linear scripts.