A robust task management system designed to ensure continuity, state persistence, and automated recovery for AI agents during long-running operations.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install task-persistence
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install task-persistence using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Task Persistence skill provides a critical infrastructure layer for maintaining agent state across restarts and complex, multi-step operations. By implementing a standardized persistence layer, it prevents progress loss during gateway interruptions or system cycles. This skill is essential for developers building reliable Openclaw Skills that need to handle asynchronous tasks or maintain a memory of active workflows.
At its core, the skill manages task registration, priority queuing, and session snapshotting. It allows the agent to "remember" exactly where it left off, providing a seamless user experience even when the underlying environment is reset. This makes it a foundational component for high-availability AI agent deployments.
This skill requires python3 and an environment variable OPENCLAW_WORKSPACE (defaults to /workspace). No external dependencies are needed as it uses the Python standard library.
Initialize the recovery check after any restart:
python3 {baseDir}/scripts/main.py --mode check-restart --workspace /workspace
Register a new task before starting long operations:
python3 {baseDir}/scripts/task_manager.py \
--action add \
--task-id "task_$(date +%s)" \
--task-type "processing" \
--priority normal \
--workspace /workspace
The skill maintains a structured directory within the workspace to ensure data integrity for Openclaw Skills:
| Path | Description |
|---|---|
tasks/task_queue.json |
The primary queue for all registered tasks. |
tasks/completed/ |
Storage for JSON files of successfully finished tasks. |
memory/session_snapshots/ |
Directory containing serialized session state snapshots. |
persistence/active_tasks.json |
Real-time tracking of tasks currently in progress. |
persistence/gateway_state.json |
Metadata and heartbeat information for the gateway. |
Loading
An automated session monitoring tool that tracks token consumption, model metadata, and context usage for AI agents.

A battle-tested deployment guide and skill pack designed to optimize OpenClaw for immediate, high-performance use.

An intelligent domain expert hub that analyzes tasks to recommend mature solutions or dispatch specialized AI sub-agents.

A powerful orchestration skill that enables a primary AI agent to spawn, manage, and integrate results from specialized sub-agents.

A diagnostic validation skill designed to verify the end-to-end publishing workflow and metadata compliance for the Openclaw ecosystem.

A comprehensive health tracking skill for recording daily symptoms, monitoring vital signs, and generating structured medical summaries.








































