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에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.