スキル一覧に戻る
thoreinstein

incident

by thoreinstein

My opencode configurations, agents, commands and everything else

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

SKILL.md


name: incident description: Analyze production incidents and generate prioritized triage checklists

Incident Triage & Response

Current Time: !date K8s Context: !kubectl config current-context

Analyze a production incident and generate a prioritized triage checklist. Writes findings to Obsidian incident log.

Input

  • Problem statement: symptoms, error messages, affected systems
  • Optional: logs, metrics, alerts, or stack traces

Investigation Strategy

Launch three parallel investigation tracks:

Track 1: External Research (librarian agent)

  • Search for known issues matching error signatures
  • Check dependency changelogs for recent breaking changes
  • Look for CVEs or security advisories in affected components
  • Find similar incidents/solutions in public issue trackers

Track 2: Codebase Exploration (explore agent)

  • Identify code paths related to error messages/symptoms
  • Find recent commits touching affected areas
  • Locate error handling and logging for affected services
  • Map service dependencies and failure modes

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

  • Infer appropriate agent from problem statement context
  • Deep analysis of suspect code paths
  • Identify potential failure modes
  • Review error handling completeness
  • Assess rollback safety of recent changes

Output

Write to Obsidian via obsidian_append_content at: $OBSIDIAN_PATH/Incidents/YYYY-MM-DD-HHMM-brief-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/incident-triage.md

Behavior

  1. Parse problem statement to extract symptoms, errors, affected systems
  2. Infer appropriate code agent from context (go, frontend, postgres, etc.)
  3. Launch librarian, explore, and inferred code agent in parallel
  4. Synthesize findings from all three tracks
  5. Generate customized checklist with specific file:line references
  6. Rank mitigation options by speed-to-recovery
  7. Write incident document to Obsidian via obsidian_append_content with auto-generated filename: YYYY-MM-DD-HHMM-brief-title.md

$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

レビュー

💬

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