Retro

作者 Rootly-AI-Labs65832aa6ff7a無授權條款收錄於 2026年10月8日更新於 2026年10月8日

[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 從公開儲存庫中收錄這些內容。

檢舉或申請下架