service-runstate

Coordinate durable run states and active leases using NATS KV.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/quarkloop/agent --skill service-runstate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: service-runstate
Source: https://github.com/quarkloop/agent/tree/main/plugins/services/runstate
Command: npx skills add https://github.com/quarkloop/agent --skill service-runstate

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill manages durable run states and active leases, providing a structured way to track and coordinate long-running operations.

Core Features & Use Cases

  • Durable Execution Records: Keep a persistent history of execution runs.
  • Active Lease Coordination: Manage ownership of resources through NATS KV leases.
  • Use Case: Ideal for workflows that require tracking progress across multiple steps and coordinating work among different services.

Quick Start

Start a new run with 'runstate_StartRun' and track its progress with 'runstate_GetRun' or 'runstate_ListRuns'.

Frequently Asked Questions about service-runstate

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

FAQPage Schema
How do I manage durable run states for coordinated execution across services?

You can manage durable run states by tracking long-running operations and coordinating work using NATS KV for lease management and persistent history of execution runs.

What is the best way to coordinate active leases for long-running operations?

The best way to coordinate active leases is managing ownership of resources through NATS KV leases, providing a structured way to track long-running operations across services.

How do I track progress across multiple steps in a complex workflow?

Track progress across multiple steps by starting a new run with 'runstate_StartRun' and monitoring its execution with 'runstate_GetRun' or 'runstate_ListRuns'.

Does NATS KV work for durable storage of execution state in distributed services?

Yes, NATS KV works for durable storage of execution state by keeping a persistent history of execution runs and managing resource ownership through active leases.

When do I need durable execution records for service coordination?

You need durable execution records when workflows require tracking progress across multiple steps and coordinating work among different services for long-running operations.

Can I use NATS KV for lease management in complex workflows?

Yes, you can use NATS KV for lease management to coordinate ownership of resources, which is ideal for workflows requiring coordination and persistence among different services.