taskflow

Coordinate long-running multi-step workflows with persistent state and revision-tracked mutations.

Updated Apr 24, 2026
One-click install
npx skills add https://github.com/frankhli843/gemmahermes --skill taskflow-frankhli843
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: taskflow
Source: https://github.com/frankhli843/gemmahermes/tree/main/skills/taskflow
Command: npx skills add https://github.com/frankhli843/gemmahermes --skill taskflow-frankhli843

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Use TaskFlow to keep a single owner context for jobs that outlive a single prompt or detached run, providing a durable flow with a stable return context and inspectable state.

Core Features & Use Cases

  • Flow identity and owner session
  • currentStep, stateJson, and waitJson
  • linked child tasks and their parent flow id
  • finish, fail, cancel, waiting, and blocked state
  • revision tracking for conflict-safe mutations
  • supports managed flows with lifecycle methods like createManaged, runTask, setWaiting, resume, and finish

Quick Start

Create a managed flow for your job and begin orchestrating its detached tasks.

Frequently Asked Questions about taskflow

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

FAQPage Schema
How do I manage workflow state for long-running tasks that outlive a single prompt?

To manage workflow state for long-running tasks, you need a durable flow with a single owner context that persists stateJson between steps and provides a stable return context after detached runs finish.

How do I resume a multi-step orchestration job after a system restart?

You can resume a multi-step orchestration job after restarts by using lifecycle methods like resume and setWaiting, which restore the previous execution context using stored waitJson and linked child task references.

What is revision tracking and when do I need it for detached task orchestration?

Revision tracking is a mechanism for conflict-safe mutations that ensures state consistency across detached tasks. You need it when multiple steps attempt concurrent updates to the same stateJson within a single workflow.

How do I coordinate detached tasks under a single owner session?

You coordinate detached tasks under a single owner session by calling createManaged to establish a flow identity, then using runTask to execute linked child tasks that report back to the parent flow id.

Can I cancel or fail a managed workflow midway through its lifecycle?

Yes, you can cancel or fail a managed workflow midway by calling the cancel or finish lifecycle methods, which update the flow state to blocked, failed, or cancelled while preserving the current step and revision history.

When should I not use a stateful orchestration approach for task execution?

You should avoid stateful orchestration for task execution when jobs are short-lived, complete within a single prompt, or do not require persistent stateJson and revision-tracked mutations across multiple detached steps.