# Send Task Resume to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "task-resume",
    "name": "Task Resume",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/RichardSun700/task-resume",
    "canonicalUrl": "https://clawhub.ai/RichardSun700/task-resume",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/task-resume",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=task-resume",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "scripts/task_resume_queue.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "task-resume",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-01T09:56:59.929Z",
      "expiresAt": "2026-05-08T09:56:59.929Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=task-resume",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=task-resume",
        "contentDisposition": "attachment; filename=\"task-resume-1.3.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "task-resume"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/task-resume"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/task-resume",
    "downloadUrl": "https://openagent3.xyz/downloads/task-resume",
    "agentUrl": "https://openagent3.xyz/skills/task-resume/agent",
    "manifestUrl": "https://openagent3.xyz/skills/task-resume/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/task-resume/agent.md"
  }
}
```
## Documentation

### Task Resume

Use this skill to ensure interrupted tasks are recovered automatically.

### Defaults (MANDATORY)

Make interruption enqueue the default behavior.
On any non-explicit context switch, auto-enqueue the active unfinished task.
Enqueue at message-time (immediately when interruption is detected), not only on periodic checks.
Use one shared queue file for all sessions/clones so the view is unified.

### Rules

Treat user-explicit commands (cancel, pause, change priority, do it tomorrow) as overrides.
Treat all other topic switches as potential interruptions.
Before switching topics, persist interruption context to queue.
After completing the active task, immediately resume the oldest queued interrupted task.
If queue is empty, do nothing.

### Shared Queue Storage (cross-session)

Canonical queue file: memory/task-resume-queue.json
This file is workspace-global and shared across main + clone + group sessions.
Always pass source with session/channel identity.
Use helper script: scripts/task_resume_queue.py

### Interruption Detection

Consider a task interrupted when all are true:

There is an active task with unfinished acceptance criteria.
A new user request is unrelated to finishing that active task.
User did not explicitly cancel/pause/defer the active task.

### Message-Time Enforcement (required)

Before handling every new user message:

Check whether an active task exists and is unfinished.
If the incoming message is an unrelated request and no explicit override is present, enqueue immediately.
Only then switch to the new request.

This prevents queue misses caused by timing gaps.

### Log-based Recovery (ENOENT-safe)

When recovery needs session .jsonl context, use:

python3 skills/task-resume/scripts/task_resume_queue.py recover \\
  --log "~/.openclaw/agents/main/sessions/<session>.jsonl" \\
  --title "<active task title>" \\
  --acceptance "<acceptance criteria>" \\
  --source "<channel>" \\
  --session "<session_key_or_chat_id>"

If the log file is missing (ENOENT), treat it as expected and continue (skipped_missing_log), do not raise alert-level failure.

### On Interruption (auto-enqueue)

Run immediately at interruption detection:

python3 skills/task-resume/scripts/task_resume_queue.py add \\
  --title "<active task title>" \\
  --context "<what was done + exact next step>" \\
  --acceptance "<acceptance criteria>" \\
  --source "<channel>" \\
  --session "<session_key_or_chat_id>"

Then acknowledge briefly: queued + will auto-resume.

### On Active Task Completion (resume)

Run:

python3 skills/task-resume/scripts/task_resume_queue.py pop

If one item is returned, resume it immediately and announce: Resuming previously interrupted task: <title>.
If empty, continue normal flow.

### Unified View

Run:

python3 skills/task-resume/scripts/task_resume_queue.py status

This returns total queue count + grouped counts by source/session.

### Guardrails

Never drop queued tasks silently.
Always include next-step quality context when enqueueing.
Deduplicate: if same task title and near-identical context exists in queue, update timestamp instead of appending.
Keep queue max size 30; discard oldest overflow items after logging to memory/YYYY-MM-DD.md.

### Watchdog Auto-Continue (Heartbeat/Cron)

When users require "not just reminder, but auto-continue execution", add a watchdog cron policy:

Run every 30 minutes.
First inspect unfinished primary task + queue status.
If interrupted or no recent progress, immediately continue the next actionable step.
Send concise progress each run: done / in-progress / next step + ETA.
Even with no material change, send a short巡检回执（"已巡检，继续执行中"）.

Recommended cron shape for delivery reliability:

Prefer sessionTarget="main" + payload.kind="systemEvent" for user-facing continuity checks.
Avoid fragile announce-only chains when delivery channel config is unstable.

### Daily Hygiene

At least once daily:

python3 skills/task-resume/scripts/task_resume_queue.py list

If stale items (>7 days), ask user whether to cancel or schedule.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: RichardSun700
- Version: 1.3.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-01T09:56:59.929Z
- Expires at: 2026-05-08T09:56:59.929Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/task-resume)
- [Send to Agent page](https://openagent3.xyz/skills/task-resume/agent)
- [JSON manifest](https://openagent3.xyz/skills/task-resume/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/task-resume/agent.md)
- [Download page](https://openagent3.xyz/downloads/task-resume)