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) → 任务恢复 +```