agent-task-confirm

$npx mdskill add aAAaqwq/AGI-Super-Team/agent-task-confirm

Verify agent task receipt and trigger escalation if stalled.

  • Prevents task failure by confirming agent execution.
  • Integrates with sessions_send and sessions_list APIs.
  • Automatically escalates based on session activity timing.
  • Reports agent status to Daniel via structured messages.

SKILL.md

.github/skills/agent-task-confirmView on GitHub ↗
---
name: agent-task-confirm
description: "Use when confirming whether a dispatched agent task was actually received, activated, and progressing after sessions_send or other task handoff actions."
author: Daniel Li
---

# Agent 任务派发与确认机制

确保每次派发任务后,agent 确实收到并在执行。

## 触发条件

- 每次通过 sessions_send 派发任务后自动执行
- "检查员工状态"、"任务确认"

## 派发后确认流程

### Step 1: 派发任务
```
sessions_send(sessionKey="agent:<id>:telegram:group:-1003890797239", message="【CEO指令】...")
```

### Step 2: 立即确认送达(30秒内)
```
sessions_list(activeMinutes=5, kinds=["agent"], messageLimit=0)
```
检查目标 agent 的 session 是否 active(updatedAt 在最近 60 秒内)。

### Step 3: 判断状态

| 状态 | 判断条件 | 处理 |
|------|----------|------|
| ✅ 已接收 | session active, updatedAt 刚更新 | 等汇报 |
| ⚠️ 可能卡住 | session active 但 5min+ 无新消息 | 发催促消息 |
| ❌ 未接收 | session 不在 active 列表 | 重发一次,仍失败则报告 Daniel |

### Step 4: 超时催促(5分钟无汇报)
如果 agent 5 分钟内没有发群里汇报,发催促:
```
sessions_send(sessionKey="agent:<id>:...", message="【催促】你的任务完成了吗?立即用 message 发群里汇报进度。")
```

### Step 5: 死亡判定(10分钟无响应)
如果催促后 5 分钟仍无反应:
1. 检查 agent 的 session 是否报错(abortedLastRun)
2. 报告 Daniel:"小X 可能卡住了,需要检查"
3. 考虑重新派发给其他 agent

## 每次派发的标准模板

任务消息必须包含:
1. 【CEO指令】开头
2. 具体任务描述
3. 文件写在哪里
4. 完成后的 message 汇报指令(含 accountId)
5. "不发群里 = 任务没完成"

## 批量检查命令

快速检查所有 agent 状态:
```
sessions_list(activeMinutes=10, kinds=["agent"], messageLimit=1)
```
看每个 agent 的 updatedAt 和最后一条消息判断是否在工作。

More from aAAaqwq/AGI-Super-Team

SkillDescription
a-fund-monitor监控 A 股基金实时估值与盘后净值,自动判断交易日并生成提醒或分析。
add-leadAdd company/person/relationship to CRM
ads-agentAI-агент для управления Facebook рекламой. Вызывай для анализа, оптимизации, создания кампаний и отчётов.
afrexai-compliance-auditRun internal compliance audits against major governance and security
afrexai-personal-financeComplete personal finance system — budgeting, debt payoff, investing, tax optimization, net worth tracking, and financial independence planning. Use when managing money, building wealth, paying off debt, planning retirement, or optimizing taxes. Zero dependencies.
after-salesUse when managing post-purchase experience, building customer loyalty, or increasing repeat purchases
agent-contactsAI agent contacts — add, list, remove MCP contacts. Use when someone gives an agent URL, or when you need to view/remove contacts.
agent-model-switcher批量查看和切换子 agent 的模型配置,用于统一调整多 agent 的 provider/model 设置。
agent-patternsFormat SPAWN REQUEST messages to launch parallel agents, generate structured agent status reports, and define communication protocols within the sprint system. Use when the user needs to coordinate multiple agents, format spawn requests, produce agent reports, or establish inter-agent communication patterns.
agent-team-orchestrationOrchestrate multi-agent teams with defined roles, task lifecycles, handoff protocols, and review workflows. Use when: (1) Setting up a team of 2+ agents with different specializations, (2) Defining task routing and lifecycle (inbox → spec → build → review → done), (3) Creating handoff protocols between agents, (4) Establishing review and quality gates, (5) Managing async communication and artifact sharing between agents.