Skip to content
Back to skills

Task Supervisor

ASecurity

定时巡检 agent 任务执行状态,识别卡住、abort、无产出等异常并触发催促或告警。

  • 121 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 5, 2026
ai-agents

Security analysis

A100/100

Scanned September 5, 2026

npx -y skills add aAAaqwq/AGI-Super-Skills --skill task-supervisor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Task Supervisor?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Task Supervisor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aaaaqwq-task-supervisor/badge)](https://www.skillsdirectory.com/skills/aaaaqwq-task-supervisor)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: task-supervisor
description: 定时巡检 agent 任务执行状态,识别卡住、abort、无产出等异常并触发催促或告警。
---

# Task Supervisor Skill — 任务监工

## 概述
每 15 分钟自动巡检所有 agent 的工作状态,发现偷懒/卡死/abort 立即告警。

## 触发
- Cron: 每 15 分钟
- 手动: `task-supervisor check`

## 巡检流程

### Step 1: 获取活跃 session 列表
```
sessions_list(activeMinutes=20, messageLimit=1)
```

### Step 2: 逐个检查
对每个 agent session:
1. **是否活跃** — updatedAt 在 15min 内?
2. **是否 abort** — lastMessage.stopReason == "aborted"?
3. **是否完成** — 有没有发群汇报?
4. **是否偷懒** — 收到任务但没有产出文件?

### Step 3: 异常分类
| 等级 | 情况 | 动作 |
|------|------|------|
| 🔴 P0 | session aborted/crash | 重发任务 + 告警 |
| 🟡 P1 | 15min 无进展 | 发催促 |
| 🟢 OK | 正常工作中 | 不打扰 |

### Step 4: 汇报
发到群里(accountId=default, target=-1003890797239):
```
🔍 监工巡检 [HH:MM]
━━━━━━━━━━━━━━
✅ 小quant: [状态]
✅ 小content: [状态]
❌ 小code: [问题] → [处理]
...
```

### Step 5: 自动处理
- abort 的 session: 自动用 sessions_send 重发最近的任务
- 超时的 agent: 发催促消息
- 全部正常: 静默不汇报(不打扰 Daniel)

## 关键规则
1. **全部正常时不汇报** — 只在发现问题时告警
2. **不重复催促** — 同一 agent 15min 内只催一次
3. **深夜模式** — 23:00-08:00 不催促,只记录
4. **汇报精简** — ≤200字,只说问题和处理

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.