PagerDuty 事件更新与关闭
pagerduty-incident-update
用于在调查过程中使触发的 PagerDuty 事件与调查进展保持同步并最终将其关闭——介入时先确认(acknowledge)事件,实时修复一上线就立即将事件标记为已缓解(Mitigated),发布简洁的、仅描述症状的状态/摘要说明(诊断、缓解措施、PR / 变更请求的链接),并且仅在 RCA 和总结报告完成且恢复情况得到验证后才解决(resolve)该事件。这是针对 Zava Learning 事件的 PagerDuty 沟通与结案层。
- License 许可
- MIT
- 最近更新
- 2026-11-10
- Stars
- ★ 189
- Forks
- 198
01 前言 Front Matter
- name
- pagerduty-incident-update
- tools
- [ "GetPagerDutyIncidentById", "AcknowledgePagerDutyIncident", "AddNoteToPagerDutyIncident", "ResolvePagerDutyIncident", "SearchMemory" ]
- metadata
- { "kind": "Skill", "api_version": "azuresre.ai/v2" }
- description
- Use to keep the triggering PagerDuty incident in sync with the investigation and to close it out — acknowledge on engagement, mark the incident Mitigated the moment the live fix lands, post a concise symptom-only status/summary note (diagnosis, mitigation, links to the PR / Change Request), and resolve the incident only after the RCA and summary report are complete and recovery is verified. This is the PagerDuty communication and closure layer for a Zava Learning incident.
03 SKILL.md 正文
Zava Learning — PagerDuty Incident Update & Closure
Keep the PagerDuty incident that triggered this investigation current, and close it out cleanly.
Resource Group: @@RG@@. Services: learner-portal, course-api, assessment-api. Operate on
the PagerDuty incident id from the triggering event (confirm details with
GetPagerDutyIncidentById if needed). Capture the incident's html_url from the
GetPagerDutyIncidentById response — that is the operator-facing PagerDuty link the
zava-reporting Artifacts & links section surfaces as [Incident #<n>](<html_url>). The bare
incident key (e.g. Q1LXN8LVWLS9L6) is NOT clickable — always pass the html_url.
Acknowledge on engagement
As soon as you start working the incident, call AcknowledgePagerDutyIncident so responders see it
is owned and stop escalating. This must be a REAL tool call that returns success — do not write
"acknowledged" unless AcknowledgePagerDutyIncident actually executed in this thread. If that tool
is not available, this skill is not loaded: load pagerduty-incident-update and retry before doing
anything else.
Mark MITIGATED immediately after the live fix
The moment the live mitigation is applied and the symptom clears (endpoint returns 200), post a
plain-text note with Status: Mitigated via AddNoteToPagerDutyIncident, summarising the live
fix in one or two lines. This marks the incident as mitigated for on-call while the incident stays
acknowledged — do NOT resolve here. The lifecycle is always: mitigate → mark Mitigated →
RCA + summary → resolve. (If zava-reporting or a triage skill swapped the active toolset and the
PagerDuty tools are gone, reload pagerduty-incident-update first.)
Post the status / summary note
Use AddNoteToPagerDutyIncident to add a concise, factual note. PagerDuty notes are PLAIN TEXT
only — they do not render HTML or markdown, and they have a practical length cap. Never paste the
zava-reporting HTML email, the deck, or the Teams Adaptive Card into a note; those rich
deliverables go through their own channels. Instead post a short text summary and link out to
the rich artifacts. Keep it symptom-only — never put the root cause in a heading or opening line
(the alert is symptom-only by design). Pull the agreed summary from the completed rca-analysis
(and zava-reporting) via SearchMemory; do not re-derive it. Post (plain text):
- Symptom & impact: one line on what users experienced and the blast radius.
- What we found / did: the confirmed diagnosis and the live mitigation applied, in plain text.
- Links: the GitHub pull request (durable fix), the ServiceNow Change Request, and the full report/deck location if available.
- Status: Mitigated / Monitoring / Resolved.
Add interim notes at meaningful transitions (mitigation applied, recovery confirmed) rather than a single dump at the end.
Resolve — only after mitigation, RCA, and the summary report are all complete
Call ResolvePagerDutyIncident to close the incident only once the incident is already MITIGATED,
recovery is proven, AND the RCA + summary report exist: the public endpoint returns 200 on / and
/api/quiz/*, the underlying Azure Monitor alert has auto-mitigated, evidence-before-after confirms
the metric/state returned to healthy, and the RCA narrative and Zava report have been produced. Never
resolve straight after the live fix — that step only marks the incident Mitigated; resolution comes
after the RCA and summary. Before resolving, ensure a final note records the resolution and references
the PR and Change Request. Do not resolve on a hunch or while the alert is still firing.
Rules
- Symptom-only language in every note title/opening — root cause goes in the body, never a heading.
- No secrets, credentials, or PII in notes. Apply the
zava-redactionstandard (SearchMemory("zava-redaction")) and mask anything sensitive as[REDACTED:<CLASS>]before posting — never paste a Key Vault secret value, connection string, or token into a note. - Don't resolve before recovery is verified; if recovery is partial or unconfirmed, leave it acknowledged with a Monitoring note and say why.
- Blameless: describe systems and conditions, not individuals.
Verification
The PagerDuty incident is acknowledged on engagement, marked Mitigated the moment the live fix
lands (a Status: Mitigated note), carries a concise symptom-only summary note with links to the PR
and Change Request, and is resolved only after the RCA and the Zava report are complete and
recovery is verified — i.e. the lifecycle ran mitigate → mark Mitigated → RCA + summary → resolve.
04 同仓库更多 Skills
Zava 事件分析报告生成
zava-reporting
用于将已完成的 Zava Learning 事件分析打包呈现给受众。首先呈现带品牌标识的线程内执行摘要(内联前后对比视觉效果的 markdown),然后生成可下载的交付物——PowerPoint 演示文稿、HTML 电子邮件和 Teams 通知,使用 Zava 企业模板。调用的 agent 可将其缩小为子集(例如仅 HTML 报告)。产出内容和工件;它不负责发送。组装 rca-analysis、evidence-before-after、recommendations-next-steps 和 pr-delivery 的输出。
Zava 治理审计报告生成
zava-audit-report
用于将已完成的 Zava Learning 每周治理审计(NSG/网络安全、RBAC/最小权限或云成本)打包成一份采用 Zava 企业风格、带品牌标识的可下载 PowerPoint 演示文稿。调用的审计 agent 传入其发现结果(带严重级别的条目列表)和简短的安全态势摘要;本技能渲染演示文稿、应用脱敏处理,并返回附件下载链接。产出工件本身;它不负责发送。
ServiceNow 变更请求管理
servicenow-change-management
当 Zava Learning 调查产生了需要变更管理的持久性修复时使用——在为基础设施即代码或应用代码的根本原因打开 GitHub PR 之后,提出引用该 PR 的 ServiceNow 变更请求并附上 RCA 报告。是 ServiceNow 变更请求及附件操作的唯一负责方。
敏感信息脱敏
redaction-guard
每当要输出操作员可见的内容时使用——聊天/话题消息、PagerDuty 或 ServiceNow 记录、提交信息或拉取请求正文,或任何报告制品(HTML、PowerPoint、Teams 卡片)。确定性地屏蔽密钥、凭证、令牌、私钥、URI 中嵌入的密码以及个人身份信息(PII),确保它们不会出现在对话或任何交付物中。这是一项横切护栏,由产生输出的技能调用,而非一个操作手册步骤。
事件改进建议
recommendations-next-steps
用于为 Zava Learning 事件生成前瞻性的建议和后续步骤——包括按优先级排序的预防性、检测性和流程性行动,并附带负责人、目标日期和不采取行动的风险。其输出用于 zava-reporting 交付物。
事件根因分析
rca-analysis
用于为已解决或已缓解的 Zava Learning 事件生成根因分析叙述——包括事件时间线、触发因素与潜在根因(5-Whys)、促成因素以及如何呈现这些内容。定义 RCA 章节格式;其输出用于前后对比、建议和报告等交付物。