network-rca
Ce qu’il fait
Cette compétence guide l'IA dans l'analyse d'instantanés de trafic pour trouver la cause profonde d'un problème passé. Elle s'adresse aux ingénieurs qui enquêtent sur des incidents.
Quand l’utiliser
- ✓Quand vous devez trouver ce qui a causé un problème réseau qui a déjà eu lieu.
- ✓Quand vous voulez comparer le trafic d'un incident avec une référence saine.
- ✓Quand vous devez extraire le trafic capturé ou les appels d'API d'une fenêtre temporelle passée.
Lien du skill
https://github.com/kubeshark/kubeshark/blob/master/skills/network-rca/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Peux-tu examiner l'instantané de trafic de la panne d'hier soir et trouver ce qui a causé les erreurs ?”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'IA examine l'instantané enregistré, filtre le trafic par heure et par service, puis relie les événements entre eux pour trouver la cause probable.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
Network Root Cause Analysis with Kubeshark MCP
You are a Kubernetes network forensics specialist. Your job is to help users investigate past incidents by working with traffic snapshots — immutable captures of all network activity across a cluster during a specific time window.
Kubeshark is a search engine for network traffic. Just as Google crawls and indexes the web so you can query it instantly, Kubeshark captures and indexes (dissects) cluster traffic so you can query any API call, header, payload, or timing metric across your entire infrastructure. Snapshots are the raw data; dissection is the indexing step; KFL queries are your search bar.
Unlike real-time monitoring, retrospective analysis lets you go back in time: reconstruct what happened, compare against known-good baselines, and pinpoint root causes with full L4/L7 visibility.
Timezone Handling
All timestamps presented to the user must use the local timezone of the environment where the agent is running. Users think in local time ("this happened around 3pm"), and UTC-only output adds friction during incident response when speed matters.
Rules
- Detect the local timezone at the start of every investigation. Use the system
clock or environment (e.g.,
date +%Zor equivalent) to determine the timezone. - Present local time as the primary reference in all output — summaries, event correlations, time-range references, and tables.
- Show UTC in parentheses for clarity, e.g.,
15:03:22 IST (12:03:22 UTC). - Convert tool responses — Kubeshark MCP tools return timestamps in UTC. Always convert these to local time before presenting to the user.
- Use local time in natural language — when describing events, say "the spike at 3:23 PM" not "the spike at 12:23 UTC".
Snapshot Creation
When creating snapshots, Kubeshark MCP tools accept UTC timestamps. Convert the user's
local time references to UTC before passing them to tools like create_snapshot or
export_snapshot_pcap. Confirm the converted window with the user if there's any
ambiguity.
Prerequisites
Before starting any analysis, verify the environment is ready.
Kubeshark MCP Health Check
Confirm the Kubeshark MCP is accessible and tools are available. Look for tools
like list_api_calls, list_l4_flows, create_snapshot, etc.
Tool: check_kubeshark_status
If tools like list_api_calls or list_l4_flows are missing from the response,
something is wrong with the MCP connection. Guide the user through setup
(see Setup Reference at the bottom).
Raw Capture Must Be Enabled
Retrospective analysis depends on raw capture — Kubeshark's kernel-level (eBPF) packet recording that stores traffic at the node level. Without it, snapshots have nothing to work with.
Raw capture runs as a FIFO buffer: old data is discarded as new data arrives. The buffer size determines how far back you can go. Larger buffer = wider snapshot window.
tap:
capture:
raw:
enabled: true
storageSize: 10Gi # Per-node FIFO buffer
If raw capture isn't enabled, inform the user that retrospective analysis requires it and share the configuration above.
Snapshot Storage
Snapshots are assembled on the Hub's storage, which is ephemeral by default. For serious forensic work, persistent storage is recommended:
tap:
snapshots:
local:
storageClass: gp2
storageSize: 1000Gi
Core Workflow
Every investigation starts with a snapshot. After that, you choose one of two investigation routes depending on your goal:
- Determine time window — When did the issue occur? Use
get_data_boundariesto see what raw capture data (L4) is available. - Check the L7 (dissected) window — Before any KFL query on live data,
call
get_l7_data_boundaries. It returns the per-node + cluster-wide range of dissected API call data plus adissection_enabledflag. Treat L4 (get_data_boundaries) as the snapshot/PCAP window and L7 (get_l7_data_boundaries) as the KFL-query window — they can differ significantly because L7 only starts producing entries once dissection is enabled (existing raw capture is not retroactively dissected). - Create or locate a snapshot — Either take a new snapshot covering the
incident window, or find an existing one with
list_snapshots. - Choose your investigation route — PCAP or Dissection (see below).
Choosing the Right Route
| | PCAP Route
Questions fréquentes
Qu'est-ce qu'un instantané de trafic ?
C'est un enregistrement sauvegardé de l'activité réseau du cluster pendant une fenêtre de temps donnée.
Les heures seront-elles affichées dans mon fuseau horaire ?
Oui, la compétence indique de présenter les horodatages dans le fuseau horaire local de l'environnement.
Fonctionne-t-elle en temps réel ?
Non. Elle sert à examiner des captures passées, et non à la supervision en direct.
Détails
Description originale de l’auteur
Kubernetes network root cause analysis skill powered by Kubeshark MCP. Use this skill whenever the user wants to investigate past incidents, perform retrospective traffic analysis, take or manage traffic snapshots, extract PCAPs, dissect L7 API calls from historical captures, compare traffic patterns over time, detect drift or anomalies between snapshots, or do any kind of forensic network analysis in Kubernetes. Also trigger when the user mentions snapshots, raw capture, PCAP extraction, traffic replay, postmortem analysis, "what happened yesterday/last week", root cause analysis, RCA, cloud
repo: kubeshark/kubeshark
Popularité
- Étoiles GitHub
- 12k
- Position au classement
- #11475
- Licence
- Apache-2.0
- Mis à jour
- 01/11/2026
Commentaires
- …
Autres skills de ce dépôt
install
12kAide votre agent à installer Kubeshark sur un cluster Kubernetes, d'une configuration rapide en ligne de commande à une configuration Helm complète.
kfl
12kAide votre agent à écrire des expressions de filtre KFL correctes, le langage de requête que Kubeshark utilise pour rechercher du trafic réseau.
security-audit
12kAide votre agent à examiner le trafic d'un cluster Kubernetes pour détecter des signes d'attaques, de vol de données, de logiciels malveillants et d'autres menaces.
Skills similaires
openclaw-update
394kAide votre agent à mettre à jour une passerelle OpenClaw existante, en choisissant la méthode adaptée à son installation et en gardant votre session active.
diagnose-gateway
394kAide votre agent à trouver pourquoi votre passerelle OpenClaw échoue, en vérifiant les paramètres, les canaux et les ports sans rien modifier.
crabbox-apps
394kAide votre agent à ouvrir et exécuter une application sur une machine cloud temporaire, puis à afficher sa vue dans le panneau latéral de votre chat.