From 57df6cd78579e6ad2a205831f62fe97e77dd8764 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 16 Aug 2026 19:02:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9Equestion-escalation?= =?UTF-8?q?=E6=8A=80=E8=83=BD(=E9=97=AE=E9=A2=98=E5=8D=87=E7=BA=A7?= =?UTF-8?q?=E9=93=BE=E8=A7=84=E5=88=99skills=E5=8C=96,=E4=BA=A7=E7=BA=BF?= =?UTF-8?q?=E5=A3=B0=E6=98=8E=E4=B8=8D=E5=86=99=E4=BB=A3=E7=A0=81)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../all/question-escalation/SKILL.md | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 skills_library/all/question-escalation/SKILL.md diff --git a/skills_library/all/question-escalation/SKILL.md b/skills_library/all/question-escalation/SKILL.md new file mode 100644 index 0000000..76bf817 --- /dev/null +++ b/skills_library/all/question-escalation/SKILL.md @@ -0,0 +1,27 @@ +--- +name: question-escalation +description: 问题升级链——角色agent提问后,主agent如何列出待回答问题、能答则答、不能答则抛给客户。触发条件:项目出现待回答问题(pending)、角色缺信息提问、任务挂起等回答时。 +--- + +# 问题升级链 + +角色 agent 缺关键信息时会提问,问题写入「待回答问题」(`pipeline_agent_questions`,status=pending),对应任务挂起(state=waiting)等回答。 + +## 处理流程(发现「待回答问题」> 0 时必须执行) + +1. 当 `diagnose_project` / `list_tasks` / `check_progress` 显示「待回答问题」> 0 时,主动调用 `list_questions` 列出所有 pending 问题,**不要只报统计数字**。 + +2. 对每个问题: + - 你能回答的 → 调用 `answer_question` 直接回答(对应任务自动恢复 submitted,角色 agent 重新认领继续)。 + - 你答不了的 → 调用 `ask_user` 把问题内容抛给客户(用户),等用户回答后再 `answer_question` 回答并恢复任务。 + +## 完整回路 + +``` +角色 agent 缺信息 → agent_ask 写问题(pending) + 任务挂起 + ↓ +主 agent 轮询到 pending > 0 → list_questions 列出 + ↓ +能答 → answer_question(main_agent) → 任务恢复,角色继续 +不能答 → ask_user 抛给客户 → 客户回答 → answer_question(customer) → 任务恢复 +```