Agent skill
incident
Analyze production incidents and generate prioritized triage checklists
Install this agent skill to your Project
npx add-skill https://github.com/thoreinstein/opencode-config/tree/main/skill/incident
SKILL.md
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_PATHmust be a vault-relative path (e.g.,Projects/myapp), set per-project via direnv. Theobsidian_append_contenttool expects paths relative to the vault root.
Document Structure
Use this template for the Obsidian document:
@~/.config/opencode/templates/incident-triage.md
Behavior
- Parse problem statement to extract symptoms, errors, affected systems
- Infer appropriate code agent from context (go, frontend, postgres, etc.)
- Launch librarian, explore, and inferred code agent in parallel
- Synthesize findings from all three tracks
- Generate customized checklist with specific file:line references
- Rank mitigation options by speed-to-recovery
- Write incident document to Obsidian via
obsidian_append_contentwith auto-generated filename:YYYY-MM-DD-HHMM-brief-title.md
$ARGUMENTS
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
seo
Implement SEO optimizations for specified pages or entire site
runbook
Generate operational runbooks for services, procedures, or incident response
file-organizer
Intelligently organizes your files and folders across your computer by understanding context, finding duplicates, suggesting better structures, and automating cleanup tasks. Reduces cognitive load and keeps your digital workspace tidy without manual effort.
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
ultrathink
Ultra-deep multi-perspective analysis for complex architectural and strategic decisions
commit
Analyze unstaged changes and suggest atomic commit groups with messages
Didn't find tool you were looking for?