Agent Skills › 0xranx/golembot › escalation

escalation

GitHub

用于将AI无法处理或涉及敏感/安全问题的请求转接给人工客服。通过记录结构化日志实现人工介入,确保在用户要求、置信度低或出现安全风险时正确升级任务。

skills/escalation/SKILL.md 0xranx/golembot

触发场景

用户明确要求联系人工 AI无法自信回答 涉及财务法律安全 检测到安全隐患 用户多次尝试后受挫

安装

npx skills add 0xranx/golembot --skill escalation -g -y
更多选项

不安装直接使用

npx skills use 0xranx/golembot@escalation

指定 Agent (Claude Code)

npx skills add 0xranx/golembot --skill escalation -a claude-code -g -y

安装 repo 全部 skill

npx skills add 0xranx/golembot --all -g -y

预览 repo 内 skill

npx skills add 0xranx/golembot --list

SKILL.md

Frontmatter
{
    "name": "escalation",
    "description": "Escalate unresolvable or sensitive requests to a human agent by recording an escalation entry. Use when the user asks to speak to a human, the bot cannot answer confidently, the request involves financial, legal, or security concerns, a safety issue is detected, or the user is frustrated after repeated failures."
}

Human Escalation Protocol

When you encounter a situation you cannot handle, escalate to a human agent by recording the escalation.

When to Escalate

  • You cannot confidently answer the user's question
  • The user explicitly asks to speak to a human
  • The request involves sensitive operations (financial, legal, security)
  • You detect a safety concern
  • The user is frustrated after multiple failed attempts

How to Escalate

  1. Inform the user that their request is being escalated
  2. Write an escalation record to .golem/escalations.jsonl (one JSON object per line):
echo '{"ts":"2026-03-15T10:00:00Z","sessionKey":"feishu:chat123:user456","reason":"User requested human support for billing issue","context":"User asked about refund policy, I could not find the answer","status":"open"}' >> .golem/escalations.jsonl

Escalation Record Schema

Field Type Description
ts string ISO 8601 timestamp
sessionKey string The current session key
reason string Why this is being escalated
context string Brief summary of what was discussed
status string Always "open" when creating

Response Template

When escalating, respond to the user like:

I've flagged this for human review. A team member will follow up on your request about [topic]. In the meantime, is there anything else I can help with?

Verifying Escalation

After writing the record, confirm the file exists and the entry was appended:

tail -1 .golem/escalations.jsonl

版本历史

  • 04635ad 当前 2026-07-25 08:58

同 Skill 集合

examples/multi-bot-group/bot-a/skills/researcher/SKILL.md
examples/multi-bot-group/bot-b/skills/coder/SKILL.md
skills/general/SKILL.md
skills/im-adapter/SKILL.md
skills/kb-guide/SKILL.md
skills/message-push/SKILL.md
skills/multi-bot/SKILL.md
skills/task-manager/SKILL.md
templates/code-reviewer/skills/code-review/SKILL.md
templates/customer-support/skills/faq-support/SKILL.md
templates/data-analyst/skills/data-analysis/SKILL.md
templates/meeting-notes/skills/meeting/SKILL.md
templates/ops-assistant/skills/ops/SKILL.md
templates/research/skills/research/SKILL.md

元信息

文件数
0
版本
1ffb156
Hash
ef7261cf
收录时间
2026-07-25 08:58

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-15 11:15
浙ICP备14020137号-1