Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

alibabacloud-pcap-analyzer

БесплатноЗапускает вложенные скриптыНе проверен

Analyze local pcap/pcapng captures to diagnose network transfer problems. Use when given a pcap file to explain slow network transfer, connection issues…

sdk-teamот sdk-team550 установок в других каталогах

Об этом скилле

PCAP Analysis

Analyze local Wireshark pcap/pcapng packet capture files and produce a structured Markdown diagnosis report. The analyzer covers TCP transfer performance (throughput, window, RTT, retransmission), connection anomalies (FIN/RST, failed handshakes), IPsec/IKE VPN negotiation, MTU/large-packet issues, DNS resolution, TLS handshake, ICMP errors, and TCP zero-window/Keepalive behavior. Suspicious patterns are reported in dedicated dynamic sections, and the report ends with a consolidated conclusion ranking the likely root causes.

Requires Python 3 and the scapy library:

pip3 install scapy

Getting a capture file

The analyzer needs a pcap/pcapng file the user already has. When the user has not captured one yet, hand them these commands; never run them on the user's behalf:

  • Linux: sudo tcpdump -i any -w capture.pcap (narrow it with host <IP> and port <PORT> when the scope is known)
  • macOS: sudo tcpdump -i en0 -w capture.pcap
  • Windows: Wireshark -> select the interface -> Start -> Stop -> Save as .pcapng

Ask for the capture point and the time window when the problem is intermittent; a capture that does not include the failure window cannot support a conclusion.

Module Index

Module Purpose File
Analysis Rules Diagnosis decision rules and thresholds (rate, FIN/RST, retransmission, window, RTT, MTU modes, DNS, TLS, TCP setup, ICMP, zero window, IKE) references/analysis-rules.md
Report Structure The 16-section report layout and the trigger conditions of the dynamic sections references/report-structure.md
Limitations Usage limitations and full notes for interpreting results references/limitations.md

Load references on demand. Do not read all reference files unless the task requires them.

User Confirmation

  • Before running any analysis, confirm the pcap file path with the user.
  • If the user has not provided a pcap file, ask for the file path first. Never guess, derive, or scan for pcap files on your own.

Execution Principle

MANDATORY:

  • Read-only: this skill only reads and analyzes. It MUST NOT modify, move, or delete any user file, and it requires no credentials of any kind.
  • Single entry point: all analysis MUST be executed through the entry script scripts/pcap_analyze.py. Do not hand-assemble diagnostic command chains.
  • User-provided files only: only analyze pcap files the user explicitly specifies. Never open or analyze files the user did not point to.
  • No scanning: never search for or open pcap files beyond the one the user provided.

Capabilities

# Capability Description
C1 Transfer Rate Diagnosis Per-second throughput statistics, peak/average/minimum, sudden-drop detection, and root-cause ranking
C2 TCP Performance Analysis Window shrinkage/zero-window, RTT statistics and spikes, retransmission bursts, out-of-order and duplicate ACK detection
C3 Connection Anomaly Detection Abnormal FIN/RST terminations, RST-with-payload (middlebox injection) detection, failed TCP handshakes
C4 IPsec/IKE Negotiation Analysis IKEv1/IKEv2 auto-detection, SA proposal suites, notify messages, retry patterns, NAT-T detection
C5 MTU / Large-Packet Analysis ICMP Fragmentation Needed, large-packet ratio, MSS vs. retransmission mismatch, remediation advice
C6 DNS Anomaly Analysis NXDOMAIN/SERVFAIL/REFUSED, unanswered queries, TCP fallback, slow queries
C7 TLS Handshake Analysis ClientHello/ServerHello pairing, Alert messages, outdated protocol versions, SNI extraction
C8 ICMP Error Summary Destination Unreachable / Time Exceeded / Redirect classification
C9 Filtered Analysis Focus on a specific flow with --src, --dst, --port
C10 Markdown Report Output Write the full report to a file with --output

Detection rules and thresholds behind each capability are documented in references/analysis-rules.md.

Commands

Set the skill directory once, then run the entry script:

SKILL_DIR=~/.qoderwork/skills/alibabacloud-pcap-analyzer

Analyze a whole capture file

cd $SKILL_DIR && python3 scripts/pcap_analyze.py capture.pcap

Filter by source/destination IP and port

cd $SKILL_DIR && python3 scripts/pcap_analyze.py capture.pcap --src 10.0.0.1 --dst 10.0.0.2 --port 443

Write the report to a Markdown file

cd $SKILL_DIR && python3 scripts/pcap_analyze.py capture.pcap --output report.md

Parameters

Parameter Description
pcap Path to the pcap/pcapng file (required)
--src <IP> Filter by source IP
--dst <IP> Filter by destination IP
--port <PORT> Filter by TCP port
--output <FILE> Output Markdown file path (defaults to
Полный SKILL.md на ClawHub

Установить alibabacloud-pcap-analyzer в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл alibabacloud-pcap-analyzer?

Analyze local pcap/pcapng captures to diagnose network transfer problems. Use when given a pcap file to explain slow network transfer, connection issues, abrupt TCP session termination, security association setup error, private network tunnel establishment problem, DNS, TLS or encrypted session establishment error, MTU or oversized packet drop, or receiver buffer exhaustion. Read-only; no credentials required. Triggers: "pcap analysis", "packet capture analysis", "analyze pcap file", "slow network transfer", "TCP retransmission", "connection reset", "IPsec/IKE negotiation failed", "VPN negotiation failure", "TLS handshake failed", "DNS resolution failure", "MTU issue", "zero window", "abrupt TCP session termination", "domain name lookup error", "encrypted session establishment error", "oversized packet drop".

Как установить скилл alibabacloud-pcap-analyzer?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл alibabacloud-pcap-analyzer запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить alibabacloud-pcap-analyzer с