スキル一覧に戻る
thoreinstein

postmortem

by thoreinstein

My opencode configurations, agents, commands and everything else

1🍴 0📅 2026年1月15日
GitHubで見るManusで実行

SKILL.md


name: postmortem description: Generate blameless postmortem with root cause analysis

Post-Incident Review

Current Time: !date

Generate a blameless postmortem document with root cause analysis. Investigates the incident and codebase to provide deeper RCA insights.

Input

  • Incident reference (Obsidian incident file path or summary)
  • Resolution details (what fixed it, when)
  • Optional: additional context, timeline notes

Investigation Strategy

Launch three parallel investigation tracks to deepen RCA:

Track 1: External Research (librarian agent)

  • Research similar incidents in public postmortems
  • Find industry best practices for preventing recurrence
  • Identify patterns from similar failures

Track 2: Codebase Exploration (explore agent)

  • Trace the full failure path through the codebase
  • Identify systemic issues (missing tests, error handling gaps)
  • Find related code that may have similar vulnerabilities
  • Review monitoring/alerting coverage for affected paths

Track 3: Code Analysis (inferred agent: go/frontend/postgres/etc.)

  • Infer appropriate agent from incident context
  • Deep analysis of root cause code
  • Identify contributing technical factors
  • Assess fix completeness and durability

Output

Write to Obsidian via obsidian_append_content at: $OBSIDIAN_PATH/Postmortems/YYYY-MM-DD-incident-title.md

Note: $OBSIDIAN_PATH must be a vault-relative path (e.g., Projects/myapp), set per-project via direnv. The obsidian_append_content tool expects paths relative to the vault root.

Document Structure

Use this template for the Obsidian document:

@~/.config/opencode/templates/postmortem.md

Behavior

  1. Parse incident reference to extract context (read from Obsidian if path provided)
  2. Infer appropriate code agent from incident context
  3. Launch librarian, explore, and inferred code agent in parallel
  4. Analyze failure path and identify systemic issues
  5. Generate 5 Whys analysis based on findings
  6. Synthesize into blameless postmortem document
  7. Write to Obsidian via obsidian_append_content with auto-generated filename: YYYY-MM-DD-incident-title.md
  8. Include wiki-link back to original incident document

$ARGUMENTS

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です