network-rca
できること
AIが、トラフィックのスナップショットを分析して、過去の問題の根本原因を見つける手順を案内します。障害を調査するエンジニア向けです。
使う場面
- ✓既に起きたネットワークの問題の原因を見つける必要があるとき。
- ✓障害時のトラフィックを、正常時の基準と比べたいとき。
- ✓過去の時間帯に取得したトラフィックやAPI呼び出しを取り出す必要があるとき。
スキルのリンク
https://github.com/kubeshark/kubeshark/blob/master/skills/network-rca/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“昨晩の障害時のトラフィックのスナップショットを見て、エラーの原因を見つけてもらえますか。”
毎週5つの新しいスキル。1分で読めます。
仕組み
AIは保存されたスナップショットを確認し、トラフィックを時刻とサービスで絞り込み、イベント同士を結び付けて、最も可能性の高い原因を見つけます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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
よくある質問
トラフィックのスナップショットとは何ですか?
決まった時間帯にクラスター全体で起きたネットワーク活動を保存した記録のことです。
時刻は私のローカルのタイムゾーンで表示されますか?
はい。このスキルは、タイムスタンプを実行環境のローカルのタイムゾーンで示すとしています。
リアルタイムで動きますか?
いいえ。リアルタイム監視ではなく、過去に取得したデータを振り返るためのものです。
詳細
作者による元の説明
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
人気
- GitHubのスター
- 12k
- ランキング
- #11475
- ライセンス
- Apache-2.0
- 更新日
- 2026/11/1
コメント
- …
このリポジトリの他のスキル
install
12kエージェントが、手早いコマンドライン設定からHelmの詳しい設定まで、KubernetesクラスターにKubesharkを導入できるよう支援します。
kfl
12kエージェントが、Kubesharkがネットワークトラフィックの検索に使う問い合わせ言語KFLで、正しいフィルター式を書けるよう支援します。
security-audit
12kエージェントが、Kubernetesクラスターのトラフィックを調べて、攻撃、データの窃取、マルウェアなどの脅威の兆候を確認できるよう支援します。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。