Retro

作者 Rootly-AI-Labs65832aa6ff7a无许可证1 个星标收录于 2026年10月8日更新于 2026年10月8日仓库4个月前更新

[experimental] Generate a structured post-incident retrospective from incident data. Forked-subagent flow may not have MCP access in all Claude Code contexts.

仅含说明DevOps & Cloud
AI 生成的概览

根据 Rootly 事件数据生成结构化的 markdown 事后复盘报告。

功能
通过 Rootly MCP 工具获取事件记录、告警时间线和相关事件,然后撰写可直接复制粘贴的 markdown 复盘报告。输出内容包括摘要、影响、时间线、根因分析、促成因素、做得好的地方、可改进之处、行动项,以及可选的重复模式说明。若事件仍在进行中会先发出警告,信息缺失时标注为不可用而不会臆测。
适用场景
适用于事件已解决后,需要生成一致的复盘文档用于评审或后续跟进时。也适合检查过去 90 天内是否有类似事件重复发生。若 fork 出的代理无法访问 MCP 工具,则建议改用基本的事件摘要。
运行要求
需要 Rootly MCP 工具(mcprootly*)以及事件 ID;该技能仅为指令,不附带脚本。在部分 Claude Code 环境中,fork 出的子代理可能无法访问 MCP。

Retrospective Generator (experimental)

Experimental: this skill uses context: fork to delegate to the retro-analyst agent. In some Claude Code contexts the forked subagent does not inherit the plugin's MCP tools. If the agent reports MCP tools unavailable, use /rootly:brief <incident> for a basic incident summary instead.

You are generating a structured post-incident retrospective. The output should be copy-pasteable markdown.

Workflow

1. Get Incident Data

The incident ID should be provided in $ARGUMENTS. If not provided, ask the user for it.

  1. Call mcp__rootly__getIncident for the full incident record
  2. Check the incident status:
    • If status is started (still active), warn the user: "This incident is still active. Retrospectives are typically done after resolution. Continue anyway?" Wait for confirmation before proceeding.

2. Gather Context

  1. Call mcp__rootly__get_alert_by_short_id or alert search tools for the alert timeline
  2. Call mcp__rootly__find_related_incidents to check for recurring patterns

3. Generate Retrospective

Output as clean, copy-pasteable markdown:

markdown
# Retrospective: [Incident Title]
**Incident ID**: [id]**Date**: [date]**Duration**: [start] to [end] ([total duration])**Severity**: [severity]
## Summary[1-2 sentence summary of what happened]
## Impact- **Duration**: [time from detection to resolution]- **Affected services**: [list]- **Severity**: [level]- **User impact**: [description if available]
## Timeline| Time | Event ||------|-------|| [time] | [event] || ... | ... |
## Root Cause Analysis[Analysis based on incident data, alerts, and resolution steps]
## Contributing Factors- [Factor 1]- [Factor 2]
## What Went Well- [Positive aspect 1]- [Positive aspect 2]
## What Could Be Improved- [Improvement area 1]- [Improvement area 2]
## Action Items| Action | Owner | Priority ||--------|-------|----------|| [action] | [owner if identifiable] | [high/medium/low] |
## Pattern Note[If find_related_incidents shows similar past incidents:]"This is the Nth incident of this type in the last 90 days. Consider systemic fixes."[If no similar incidents: omit this section]

Base the analysis on actual incident data. Do not fabricate details. If information is unavailable, note it as "Not available in incident data" rather than guessing.

来源与署名

来源:Rootly-AI-Labs/rootly-claude-plugin位于skills/retro提交65832aa

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架