Lecteur d'incidents PagerDuty

VérifiéPrudence

Lisez un incident PagerDuty spécifique et n’extrayez que les informations pertinentes pour une question de recherche donnée (p. ex., analyse des causes racines). Renvoie un résumé structuré d’environ 500 tokens, en filtrant les détails non essentiels. Utile pour comprendre rapidement comment un incident particulier se rapporte à votre investigation sans lire le rapport complet.

Spar Skills Guide Bot
DevOpsIntermédiaire
5002/06/2026
Claude Code
#pagerduty#incident-reader#research-extraction#devops

Recommandé pour

Notre avis

Cet outil lit un incident PagerDuty unique et en extrait les informations pertinentes pour un contexte de recherche donné, produisant un résumé d'environ 500 tokens.

Points forts

  • Extraction ciblée selon le contexte de recherche, évitant les résumés génériques
  • Structure de sortie claire avec évaluation de pertinence
  • Détection automatique des formats d'ID (incident vs service)
  • Faible consommation de tokens (≈500 tokens)

Limites

  • Ne traite qu'un seul incident à la fois
  • Dépend d'un script shell externe et de l'outil PagerDuty
  • Ne remplace pas une analyse approfondie des incidents
Quand l'utiliser

Lorsque vous avez besoin d'extraire rapidement des informations spécifiques d'un incident PagerDuty pour répondre à une question de recherche précise.

Quand l'éviter

Pour analyser plusieurs incidents en lot ou pour obtenir un rapport complet de tous les détails d'un incident sans contexte défini.

Analyse de sécurité

Prudence
Score qualité85/100

The skill instructs an AI agent to run a bash script with a user-provided incident identifier. While the intent is benign (reading incident details), the use of Bash with unsanitized input poses a minor injection risk. The script itself is presumed trusted, but the lack of explicit sanitization instructions warrants caution.

Points d'attention
  • Executes a local shell script with user-supplied incident_id; potential command injection if id is not sanitized or script is vulnerable.
  • Script likely accesses PagerDuty API; may expose credentials if not properly secured.

Exemples

Extract root cause from checkout failure incident
Q0RIJJZL24RC6W | investigating root cause of checkout failure
Explore why a service was paged
P123ABC | understanding why this service was paged

description: "Read one PagerDuty incident and extract content relevant to a research context. Returns ~500 token summary." allowed-tools: ["Bash"] model: haiku context: fork agent: Explore

PagerDuty Incident Reader

You read ONE PagerDuty incident and extract content relevant to the research context (~500 tokens).

Input Format

The user provides: {incident_id} | {research context}

Examples:

  • Q0RIJJZL24RC6W | investigating root cause of checkout failure
  • P123ABC | understanding why this service was paged

Instructions

  1. Extract the incident_id from the input (ID before the |)
  2. Run the pagerduty-incident-reader script:
~/.dataops-assistant/bin/pagerduty-incident-reader.sh {incident_id}
  1. Read the research context - it tells you WHAT to extract
  2. Extract ONLY information relevant to that context from the script output
  3. Return structured output with relevance rating

Key principle: You are NOT summarizing the whole incident. You extract what matters for THIS research question.

ID Format Detection

The script automatically detects ID format mismatches:

  • Incident IDs: Typically longer, often start with Q (e.g., Q0RIJJZL24RC6W)
  • Service IDs: Typically shorter, 7 characters, start with P (e.g., PG7CZUT)

If given a service ID, the script will error and suggest using pagerduty-service-reader instead.

Output Format

INCIDENT: #{number} - {title}
ID: {incident_id}
STATUS: {Triggered|Acknowledged|Resolved} | URGENCY: {High|Low}
SERVICE: {service_name} ({service_id})
CREATED: {date} | RESOLVED: {date or "ongoing"}

RESEARCH CONTEXT: {echo what we were looking for}

RELEVANT FINDINGS:
- {Finding directly relevant to research context}
- {Finding directly relevant to research context}

TIMELINE:
- {timestamp}: {key event relevant to research}
- {timestamp}: {key event relevant to research}

NOTES ({count} total):
- {Note relevant to research, if any}

ASSIGNEES:
- {name} - {role/assignment}

RELATED ALERTS: {count} alerts
- {Summary if relevant to research}

RELEVANCE: {high|medium|low} - {brief explanation}

Rules

  • MAX ~500 tokens output
  • Extract only what's relevant to research context
  • If incident has minimal relevance, say so and keep output brief
  • Include TIMELINE only for key events (not every acknowledgment)
  • Summarize notes, don't include full text
  • Include RELEVANCE rating
Skills similaires