Synthèse automatique
Génère des postmortems d'incident structurés en lisant l'historique d'un canal Slack dédié et en créant le document correspondant dans Notion.
Points forts
- Automatise l'extraction de la chronologie, de la cause racine, de l'impact et des actions de suivi à partir des messages Slack
- Produit un document markdown structuré et cohérent (résumé, timeline, analyse, actions, leçons apprises)
- Résout les mentions d'utilisateurs via l'API Slack pour identifier correctement les responsables
- Intègre optionnellement des liens de télémétrie et d'uptime via Betterstack
Limites
- Nécessite la configuration préalable des serveurs MCP Slack et Notion (Betterstack en option)
- La qualité du postmortem dépend entièrement de la richesse des discussions dans le canal Slack
- Ne publie pas automatiquement dans Notion sans validation de l'utilisateur sur le canal à traiter
À utiliser après la résolution d'un incident de production pour produire rapidement un postmortem à partir des échanges Slack.
À éviter si le canal Slack ne contient pas d'historique exploitable ou si les MCP Slack/Notion ne sont pas configurés.
Analyse de sécurité
SûrThis skill is pure documentation/workflow guidance. It declares no shell tools and only references Slack and Notion MCP servers for legitimate purposes: reading an incident channel's history, resolving usernames, creating a structured postmortem page, and optionally posting a summary link back to Slack. There are no destructive commands, no credential or token exfiltration, no obfuscated payloads, and no attempts to disable safety controls. The only mild consideration is that it reads internal Slack history and writes to Notion/Slack, but all data movement stays within the organization's own configured integrations and the actions are exactly what the skill describes.
Aucun point d'attention détecté
Comment cette analyse est faiteExemples
Read the #incident-2024-05-12-db-outage Slack channel and create a postmortem in Notion with timeline, root cause, impact, and action items.Generate a postmortem for the checkout API outage from the #inc-payments incident channel and assign the action items to the people who volunteered in the thread.Create a postmortem from the #incident-redis-failover channel and add the Betterstack uptime and error metric links to the telemetry section.name: pm description: Create incident postmortems by reading Slack incident channels and creating structured postmortem documents in Notion. Use when conducting postmortem reviews or documenting incident responses.
Incident Postmortem Generator
Create comprehensive incident postmortem documents by reading Slack incident channels and storing structured postmortems in Notion.
When to Use
- After resolving a production incident
- When conducting postmortem reviews
- When documenting incident responses for team learning
- To generate action items from incident discussions
Prerequisites
This skill requires the following MCP servers to be configured:
- Slack MCP - For reading incident channel history
- Notion MCP - For creating postmortem documents in the Notes database
Optional:
- Betterstack MCP - For including telemetry and uptime links
Process
1. Identify the Incident Channel
Ask the user for the Slack channel name or ID. The channel should be the dedicated incident channel (typically named like #incident-<name> or #inc-<date>-<description>).
2. Read Slack Channel History
Use the Slack MCP to fetch the channel's message history:
mcp__slack__slack_list_channels
Find the channel ID, then fetch history:
mcp__slack__slack_get_channel_history with channel_id
For threaded discussions, also fetch thread replies:
mcp__slack__slack_get_thread_replies with channel_id and thread_ts
Get user information to resolve mentions:
mcp__slack__slack_get_users
3. Analyze the Incident
From the Slack messages, extract:
-
Timeline: Key events in chronological order
- When was the incident first detected?
- When was it acknowledged?
- What investigation steps were taken?
- When was it mitigated/resolved?
-
Root Cause: The underlying technical issue
- What broke?
- Why did it break?
- What dependencies were involved?
-
Impact: The effect on users/systems
- What services were affected?
- How many users impacted?
- What was the duration?
-
Open Questions: Unresolved items from discussion
- Unclear technical details
- Areas needing further investigation
- Decisions that need to be made
-
Action Items: Follow-up tasks with assignees
- Preventive measures
- Monitoring improvements
- Documentation updates
- Process changes
4. Generate Postmortem Document
Create a markdown document following this structure:
# Incident Postmortem: [Brief Title]
**Date:** [Incident Date]
**Severity:** [P0/P1/P2/P3]
**Duration:** [Total incident duration]
**Author:** [Person creating postmortem]
## Summary
[2-3 sentence summary of what happened and the impact]
## Timeline
| Time (UTC) | Event |
|------------|-------|
| HH:MM | Incident detected via [source] |
| HH:MM | Team alerted |
| HH:MM | Investigation began |
| HH:MM | Root cause identified |
| HH:MM | Mitigation deployed |
| HH:MM | Incident resolved |
## Impact
- **Services Affected:** [List of affected services]
- **Users Impacted:** [Number or percentage]
- **Duration:** [How long users were affected]
- **Data Loss:** [Yes/No, details if applicable]
## Root Cause Analysis
### What Happened
[Detailed technical explanation of the failure]
### Why It Happened
[Contributing factors, systemic issues]
### Detection
[How was the incident discovered? Could we have detected it sooner?]
## Telemetry & Monitoring
[If Betterstack MCP is available, include relevant links]
- **Uptime Dashboard:** [Link]
- **Error Metrics:** [Link]
- **Relevant Alerts:** [Link]
## Open Questions
- [ ] [Unresolved question 1]
- [ ] [Unresolved question 2]
## Action Items
| Action | Assignee | Priority | Status |
|--------|----------|----------|--------|
| [Action description] | @[username] | High/Medium/Low | Open |
| [Action description] | @[username] | High/Medium/Low | Open |
## Lessons Learned
### What Went Well
- [Positive aspects of incident response]
### What Could Be Improved
- [Areas for improvement]
## References
- **Incident Channel:** #[channel-name]
- **Related PRs:** [Links to fix PRs]
- **Related Docs:** [Links to relevant documentation]
5. Create Notion Page
Use the Notion MCP to create the postmortem in the Notes database:
First, search for the Notes database:
mcp__claude_ai_Notion__notion-search with query: "Notes"
Or use the Notion skill:
Skill: notion-search with "Notes database"
Then create the page with the postmortem content:
mcp__claude_ai_Notion__notion-create-pages with:
- parent: Notes database ID
- title: "Incident Postmortem: [Brief Title]"
- content: [Generated markdown content]
Important: Add the required tags to the page:
engpostmortem
If the Notion MCP supports tags/properties, set them during creation. Otherwise, use the update page tool:
mcp__claude_ai_Notion__notion-update-page with:
- page_id: [created page ID]
- properties: { tags: ["eng", "postmortem"] }
6. Share Results
After creating the postmortem:
- Provide the Notion page link to the user
- Optionally post a summary back to the Slack channel:
mcp__slack__slack_post_message with:
- channel: [incident channel ID]
- text: "Postmortem document created: [Notion link]"
Tips for Quality Postmortems
Blameless Culture
- Focus on systems and processes, not individuals
- Use "the system failed to..." rather than "person X failed to..."
- Treat failures as learning opportunities
Be Specific
- Include exact timestamps when available
- Reference specific commits, PRs, or deployments
- Quantify impact with numbers when possible
Actionable Items
- Each action item should be specific and achievable
- Assign clear owners
- Set priorities to help with planning
Capture Context
- Include relevant Slack threads and discussions
- Link to monitoring dashboards and alerts
- Reference any related incidents
Output
Provide to the user:
- Summary of what was extracted from Slack
- Notion link to the created postmortem
- List of action items for easy reference
- Any gaps that need manual filling (if information was missing from Slack)
Du fichier au premier essai
Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.
Consulter la source et ses fichiers annexesCe téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.
1. Télécharger le fichier
Télécharger SKILL.mdDepuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/incident-postmortem-generator-mrwak8ol/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.
Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.
mkdir -p '.skill-downloads/incident-postmortem-generator-mrwak8ol' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/incident-postmortem-generator-mrwak8ol/download' --output '.skill-downloads/incident-postmortem-generator-mrwak8ol/SKILL.md.part' && mv '.skill-downloads/incident-postmortem-generator-mrwak8ol/SKILL.md.part' '.skill-downloads/incident-postmortem-generator-mrwak8ol/SKILL.md'2. Vérifier les prérequis
Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.
Extrait original : Prerequisites
This skill requires the following MCP servers to be configured:
- Slack MCP - For reading incident channel history
- Notion MCP - For creating postmortem documents in the Notes database
Optional:
- Betterstack MCP - For including telemetry and uptime links
Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.
3. Charger la skill
Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.
Claude Code
test -f '.skill-downloads/incident-postmortem-generator-mrwak8ol/SKILL.md' && test -s '.skill-downloads/incident-postmortem-generator-mrwak8ol/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/pm' && cp -R '.skill-downloads/incident-postmortem-generator-mrwak8ol' '.claude/skills/pm'OpenSkills
OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.
Installation officielle d’OpenSkillsopenskills install './.skill-downloads/incident-postmortem-generator-mrwak8ol'openskills read 'incident-postmortem-generator-mrwak8ol'La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.
Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.
openskills syncMode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.
4. Faire un premier essai
Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :
Lis .skill-downloads/incident-postmortem-generator-mrwak8ol/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.
Configurer un canal de discussion avec SecretRefs
DevOps
Configurez des canaux de discussion avec des commandes non interactives, les secrets étant uniquement des SecretRefs. Couvre les étapes de collecte, modification, réparation et vérification.
Enquêter sur les échecs CI de ClickHouse
DevOps
Investigue un échec CI de ClickHouse de bout en bout à partir d'une URL de PR ou de rapport S3. Récupère les tests échoués, classe flaky vs vraie régression, et cherche des issues/fixes existants.
Revue de PR Ansible
DevOps
Examine une PR Ansible selon le processus standardisé du projet, incluant la validation des changelogs, la couverture de tests et le suivi des commentaires.