network-rca
O que ela faz
Ele orienta a IA na análise de capturas de tráfego para encontrar a causa raiz de um problema passado. É para engenheiros que investigam incidentes.
Quando usar
- ✓Quando você precisa descobrir o que causou um problema de rede que já aconteceu.
- ✓Quando quer comparar o tráfego de um incidente com uma linha de base saudável.
- ✓Quando precisa extrair o tráfego capturado ou as chamadas de API de uma janela de tempo passada.
Link da skill
https://github.com/kubeshark/kubeshark/blob/master/skills/network-rca/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Você pode olhar a captura de tráfego do apagão de ontem à noite e descobrir o que causou os erros?”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A IA revisa a captura salva, filtra o tráfego por tempo e serviço e depois liga os eventos entre si para encontrar a causa provável.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
O que é uma captura de tráfego?
É um registro salvo da atividade de rede do cluster durante uma janela de tempo definida.
Os horários serão mostrados no meu fuso horário?
Sim. A skill diz para apresentar os horários no fuso horário local do ambiente.
Ele funciona em tempo real?
Não. Serve para olhar capturas passadas, não para monitoramento ao vivo.
Detalhes
Descrição original do autor
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
Popularidade
- Estrelas no GitHub
- 12 mil
- Posição no ranking
- #11475
- Licença
- Apache-2.0
- Atualizada em
- 01/11/2026
Comentários
- …
Mais skills deste repositório
install
12 milAjuda seu agente a instalar o Kubeshark em um cluster Kubernetes, desde uma configuração rápida pela linha de comando até uma configuração completa com Helm.
kfl
12 milAjuda seu agente a escrever expressões de filtro KFL corretas, a linguagem de consulta que o Kubeshark usa para pesquisar o tráfego de rede.
security-audit
12 milAjuda seu agente a verificar o tráfego de um cluster Kubernetes em busca de sinais de ataques, roubo de dados, malware e outras ameaças.
Skills parecidas
openclaw-update
394 milAjuda seu agente a atualizar um OpenClaw Gateway existente, escolhendo o método que combina com a instalação e mantendo sua sessão funcionando.
diagnose-gateway
394 milAjuda seu agente a descobrir por que seu OpenClaw Gateway está falhando, verificando configurações, canais e portas sem alterar nada.
crabbox-apps
394 milAjuda seu agente a abrir e executar um app em uma máquina temporária na nuvem e depois mostrar a visualização dele no painel lateral do seu chat.