long-horizon-workflows

Decompose long-horizon agent work into staged phases with checkpoints and recovery.

31|8|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/itallstartedwithaidea/agent-skills --skill long-horizon-workflows
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: long-horizon-workflows
Source: https://github.com/itallstartedwithaidea/agent-skills/tree/main/skills/ai-agent-engineering/long-horizon-workflows
Command: npx skills add https://github.com/itallstartedwithaidea/agent-skills --skill long-horizon-workflows

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Long-horizon agent work often fails mid-execution without recovery, making multi-hour plans unreliable and difficult to audit or resume. This Skill provides a practical blueprint for breaking objectives into staged phases with checkpointing, progress visibility, human approval gates, and error recovery so work can continue after interruptions.

Core Features & Use Cases

  • Multi-phase pipeline orchestration: Decomposes an objective into ordered phases (data collection, analysis, recommendations, reporting) to match real production workloads.
  • Checkpointing for resumability: Persists intermediate state between phases so execution can resume safely instead of restarting from scratch.
  • Human-in-the-loop gates for safety: Pauses before high-stakes decisions (e.g., budget or bid changes) to prevent catastrophic unattended actions.
  • Progress tracking and auditability: Tracks phase status, estimates completion progress, and produces an execution trail for debugging and compliance.
  • Error handling with recovery policy: Applies per-phase and per-task behaviors (retry/skip/escalate/abort) to survive partial failures.

Quick Start

Ask an AI to design a long-horizon workflow for your next multi-stage Google Ads account audit with checkpoints after each phase and a human approval gate before any irreversible optimization changes.

Frequently Asked Questions about long-horizon-workflows

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

FAQPage Schema
How do I run autonomous agent pipelines that last multiple hours without losing progress if they crash?

Multi-hour autonomous agent pipelines require decomposing objectives into staged phases with checkpoint persistence. This ensures intermediate state is saved between phases, allowing execution to resume safely from the last checkpoint instead of restarting from scratch after an interruption.

What is the best way to add human-in-the-loop approval gates before irreversible changes in an automated workflow?

Human-in-the-loop approval gates pause workflow execution before high-stakes decisions to prevent catastrophic unattended actions. By integrating these gates into staged pipelines, you ensure that irreversible optimizations require explicit human confirmation before proceeding.

How do you handle error recovery and retries in long-running task decomposition workflows?

Error recovery in long-running workflows applies configurable per-phase and per-task behaviors like retry, skip, escalate, or abort. This policy-driven approach survives partial failures by isolating errors to specific tasks without forcing the entire pipeline to fail silently.

Can I track progress and audit execution trails for multi-phase autonomous pipelines?

Progress tracking and auditability for multi-phase pipelines monitor phase status and estimate completion progress while producing an execution trail. This persistent tracking generates the compliance and debugging records needed to verify each stage of a complex workflow.

Does workflow orchestration support resuming multi-campaign analysis after an interruption?

Workflow orchestration supports resuming multi-campaign analysis by persisting checkpoint state after each completed phase. If execution is interrupted, the pipeline reads the checkpoint data and continues the analysis from the exact phase where it previously stopped.

Why do long-horizon agent workflows fail mid-execution and how can I prevent silent failures?

Long-horizon agent workflows fail mid-execution due to lack of checkpointing and silent error propagation. Preventing silent failure requires configurable error handling policies that apply per-task retries and escalate issues, ensuring partial failures are caught and managed.