事件根因分析
rca-analysis
用于为已解决或已缓解的 Zava Learning 事件生成根因分析叙述——包括事件时间线、触发因素与潜在根因(5-Whys)、促成因素以及如何呈现这些内容。定义 RCA 章节格式;其输出用于前后对比、建议和报告等交付物。
- License 许可
- MIT
- 最近更新
- 2026-11-10
- Stars
- ★ 189
- Forks
- 198
01 前言 Front Matter
- name
- rca-analysis
- tools
- [ "SearchMemory", "GetActivityLogsSummary", "GetChangeHistory", "QueryAppInsightsByResourceId", "QueryLogAnalyticsByResourceId", "RunAzCliReadCommands", "ExecutePythonCode" ]
- metadata
- { "kind": "Skill", "api_version": "azuresre.ai/v2" }
- description
- Use to produce the root-cause analysis narrative for a resolved or mitigated Zava Learning incident — the incident timeline, the trigger vs. latent root cause (5-Whys), contributing factors, and how to present them. Defines the RCA section format; its output is used in the before/after, recommendations, and reporting deliverables.
03 SKILL.md 正文
Zava Learning — Root Cause Analysis
Produce the analytical heart of the incident report: a defensible, evidence-backed RCA in the
house format. Resource Group: @@RG@@. Services: learner-portal, course-api,
assessment-api. Retrieve zava-brand and zava-report-template with SearchMemory and
follow the Root cause + Timeline sections of the template.
Gather evidence first (never assert without it)
- Timeline: reconstruct detection → mitigation → durable fix from
GetActivityLogsSummary,GetChangeHistory, and the relevant App Insights / Log Analytics queries (QueryAppInsightsByResourceId,QueryLogAnalyticsByResourceId) filtered by the affectedcloud_RoleName. Every timeline row cites a source. - Align the symptom onset to the nearest config/revision/deployment change.
Structure the RCA
-
What happened — the symptom and customer impact in plain language (no cause in the title).
-
Timeline — UTC table: time · event · evidence/source.
-
5-Whys (MANDATORY, render the ladder) — write an explicit, numbered Why-ladder, not a one-line summary. Start from the student-visible symptom and ask "why?" repeatedly until you reach the latent root cause — typically five steps:
- Why 1: students saw <symptom> → because <immediate technical effect>
- Why 2: <effect> → because <misbehaving component/config>
- Why 3: <component> misbehaved → because <the change/state that caused it>
- Why 4: that change happened → because <how it got introduced / trigger>
- Why 5 (latent root cause): it was possible/undetected → because <missing guardrail or gap>
Each rung cites its evidence. Then state the trigger (what set it off now) separately from the latent cause (the condition that made it possible) — the latent cause is Why 5. Render this ladder in the RCA section; never collapse it to a single trigger/latent two-liner.
-
Contributing factors — gaps in detection, guardrails, or process that widened impact.
-
Why it was hard / easy to detect — informs the detective recommendations.
Presentation rules
- Symptom-only headings; the root cause appears in the body, never in a title.
- The 5-Whys ladder is ALWAYS rendered under a literal
5 Whysheading (### 5 Whys/<h3>5 Whys</h3>) inside the Root Cause section, with five numbered rungs each on its own line (Why 1:…Why 5:). A request-path Mermaid diagram may accompany it but never replaces it. - Distinguish facts (with evidence) from hypotheses (label clearly).
- Keep it blameless: systems and conditions, not individuals.
Outputs
This skill produces, for the wider investigation: the fault class (connectivity/config/RBAC vs.
performance/availability — so evidence-before-after picks the right visual), the confirmed
before/after time windows and affected metrics or config state (used by evidence-before-after),
the unresolved detection/guardrail gaps (used
by recommendations-next-steps), and the finished RCA section (used by zava-reporting). Record
them clearly so the agent can use them in whichever skill it runs next.
Verification
The RCA names a specific, evidence-backed root cause; an explicit numbered 5-Whys ladder is
rendered (symptom → … → latent cause), not a single trigger/latent two-liner; trigger and latent
cause are separated; every timeline entry is sourced; the section matches zava-report-template.
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 交付物。
RBAC 最小权限审计
rbac-audit
当操作员或定时任务请求对 Zava Learning 资源组进行周期性 RBAC/最小权限审计时使用——枚举该组上实际生效的角色分配,将每个身份与实际的活动日志(Activity-Log)使用情况关联,以发现从未使用过的长期访问权限,标记权限过高、直接分配(而非通过组管理)的身份以及过期的故障排查访问权限,并推荐最小权限的修正措施。只读;生成用于报告的审计发现。