简介
智能长任务管理系统,通过进度追踪文件和定时报告机制,自动管理5步以上或20分钟以上的复杂任务
原始描述
Manage complex tasks with 5+ steps or duration >20 min, tracking progress via task files and sending periodic status reports until completion or pause.
通过你的 Agent 添加
安装目录:task-supervisor/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: task-supervisor
description: Self-supervising long-running task manager with progress tracking and periodic status reports. Only activate for LARGE tasks — do NOT activate for quick or simple tasks. Activate when ALL of these are true: (1) Task has 5+ distinct steps OR estimated time >20 minutes, AND (2) at least one of: user says "take your time / do this overnight / finish by yourself / keep me posted", task requires sub-agents or cron jobs, task spans multiple tool calls across different domains (e.g. research + write + deploy). Do NOT activate for: single-step requests, quick searches, short code edits, simple Q&A, file reads, summarization of one document.
Task Supervisor
Manage long-running tasks with checkpoints, progress files, and periodic WhatsApp reports.
Is This a Large Task?
Before doing anything else, mentally check:
| Signal | Large? |
|---|---|
| Steps ≥ 5 OR time > 20 min | ✅ Yes |
| User says "take your time / overnight / keep me posted" | ✅ Yes |
| Needs sub-agent + cron + multiple domains | ✅ Yes |
| Single tool call, quick search, short edit, Q&A | ❌ No — skip this skill entirely |
| "Help me write X" (one doc, one sitting) | ❌ No |
| "Search for Y and summarize" (few minutes) | ❌ No |
If not large → respond normally, skip task files and crons entirely.
On Task Start
When you receive a large task, immediately:
- Create a task file at
.tasks/<TASK-SLUG>.md(use kebab-case slug) - Decompose the task into numbered steps
- Spawn a reporter cron to send progress updates
- Begin execution, updating the file after each step
Task File Format
# Task: <Title>
**Started**: <ISO timestamp>
**Status**: in_progress | paused | done | failed
**Estimated Steps**: N
**Last Updated**: <ISO timestamp>
## Steps
- [ ] 1. First step
- [ ] 2. Second step
- [x] 3. Completed step ✓ (2026-03-02T22:05:00+08:00)
- [!] 4. Failed step — <error summary>
## Log
### Step 3 — 2026-03-02T22:05:00+08:00
Result or notes here.
### Error — 2026-03-02T22:07:00+08:00
What failed and how it was handled.
## Result
(Fill when done — final summary for the user)
During Execution
# Task: <Title>
**Started**: <ISO timestamp>
**Status**: in_progress | paused | done | failed
**Estimated Steps**: N
**Last Updated**: <ISO timestamp>
## Steps
- [ ] 1. First step
- [ ] 2. Second step
- [x] 3. Completed step ✓ (2026-03-02T22:05:00+08:00)
- [!] 4. Failed step — <error summary>
## Log
### Step 3 — 2026-03-02T22:05:00+08:00
Result or notes here.
### Error — 2026-03-02T22:07:00+08:00
What failed and how it was handled.
## Result
(Fill when done — final summary for the user)
After every step (success or failure):
- Update the checkbox in Steps (
[x]done,[!]failed) - Append a Log entry with timestamp and key findings
- Update
Last Updatedtimestamp
On failure:
- Mark step
[!]with error summary - Try an alternative approach if obvious
- If truly stuck, set Status to
pausedand note what's needed
Progress Reporting (Cron)
At task start, spawn a cron reporter using exec:
openclaw cron add "task-report-<SLUG>" \
--schedule "*/15 * * * *" \
--message "Read .tasks/<SLUG>.md and send a Feishu message to the user with progress update. Include: completed steps, current step, blockers if any. Keep it under 5 sentences. Remove this cron when Status=done or Status=failed." \
--once-complete
Adjust interval based on task scope:
- Quick task (<30 min): every 10 min
- Medium task (30 min–2 hr): every 15 min
- Long task (>2 hr): every 30 min
On Task Completion
- Fill in
## Result section with a clear summary
- Set
Status: done
- Send a final Feishu message: task name, what was accomplished, any caveats
- Remove the progress cron
On Task Failure / Getting Stuck
- Set
Status: paused
- Document exactly what was tried and what's blocked
- Send Feishu message alert immediately (don't wait for cron)
- Do NOT silently stop — always notify
Resuming a Paused Task
## Result section with a clear summaryStatus: done- Set
Status: paused - Document exactly what was tried and what's blocked
- Send Feishu message alert immediately (don't wait for cron)
- Do NOT silently stop — always notify
Resuming a Paused Task
When asked to continue a task:
- Read
.tasks/<SLUG>.md - Find the last completed step
- Continue from there
- Re-spawn reporter cron if needed
Multi-Task Awareness
If multiple tasks are running, maintain separate files per task. On heartbeat, check .tasks/ for any in_progress tasks and include a brief status in heartbeat responses.
Quick Reference
Situation
Action
Task assigned
Create file, decompose, spawn cron, start
Step done
Update [x], append log
Step failed
Mark [!], try alternative, log error
Truly stuck
Set paused, WhatsApp alert immediately
Task complete
Fill Result, set done, final message, remove cron
Asked for update
Read task file, summarize current state
| Situation | Action |
|---|---|
| Task assigned | Create file, decompose, spawn cron, start |
| Step done | Update [x], append log |
| Step failed | Mark [!], try alternative, log error |
| Truly stuck | Set paused, WhatsApp alert immediately |
| Task complete | Fill Result, set done, final message, remove cron |
| Asked for update | Read task file, summarize current state |
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。