Guide · Agent skill
How to use the Protocol Reverse Engineering agent skill
Updated · written with AI from the project's own documentation and checked against our catalogue data
The protocol-reverse skill is a structured playbook that tells an AI agent how to work out how a network protocol functions from captured traffic or client binaries. It is meant for authorized analysis of undocumented binary protocols, Protobuf or gRPC messages, and WebSocket frames. After this guide you will know what the skill does, how to install it, how to phrase a request that triggers it, and what to check before you use it.
Quick start
- 1Download the ZIP. Download the protocol-reverse ZIP from this page.
- 2Install the skill. Unzip it into ~/.claude/skills/ for personal use or into a project's .claude/skills/ folder, or upload the ZIP under Settings → Capabilities → Skills in the Claude apps.
- 3Install prerequisites. Make sure Python 3 is available and install tshark or Wireshark, which the source strongly recommends for PCAP parsing.
- 4Confirm authorization. Write down the scope you are authorized to test, since the skill checks scope before any target interaction.
- 5Make a natural request. Describe the protocol and attach or name your capture or binary samples in plain language.
- 6Review the outputs. Check the message type table, the decoding script, and the redacted evidence the agent produces.
What an agent skill is and what this one does
An agent skill is a folder of instructions and reference files that an AI agent loads when a task matches its description. This skill is defined by a SKILL.md file and a references/protocol-workflow.md cheat sheet.
Once triggered, the skill guides the agent through four phases: triaging a capture, working out frame layouts, recovering Protobuf or gRPC message definitions, and producing outputs. The required outputs are a message type table (name, opcode and fields), at least one reproducible decoding command or script, and redacted evidence made of raw hex excerpts and decoded results.
- Phase 1: collect samples, mark direction (client to server or server to client), and look for magic numbers, length fields, or TLV structures.
- Phase 2: align similar messages to find constant bytes and sequence numbers, check length-field endianness, look for CRC or HMAC fields, and sketch the state machine.
- Phase 3: recover .proto definitions for Protobuf, inspect HTTP/2 headers and protobuf bodies for gRPC, and locate key derivation for encrypted frames.
- Phase 4: deliver the message table, a decoding script, and redacted evidence.
Install the protocol-reverse skill
Download the ZIP for the skill from this page, then choose one of two install routes.
For Claude Code, unzip the package into your personal skills folder ~/.claude/skills/ or into a project-level .claude/skills/ folder inside your project. For the Claude apps, upload the ZIP under Settings → Capabilities → Skills.
- Personal install: place the unzipped protocol-reverse folder in ~/.claude/skills/.
- Project install: place it in the .claude/skills/ folder of the project you are working in.
- Claude apps: upload the ZIP under Settings → Capabilities → Skills.
Prepare your tools before the first run
The skill expects Python 3 for decoding scripts. Wireshark or tshark is strongly recommended for parsing PCAP files. The source notes that tshark may need a manual install, for example through winget on Windows.
Optional tools include blackboxprotobuf and pbtk for unknown Protobuf, ImHex or 010 Editor for structure templates, and Kaitai Struct for binary format descriptions. For client binary analysis, the skill refers to IDA, radare2 or Ghidra through other skills.
- Required: Python 3.
- Strongly recommended: tshark / Wireshark.
- Optional: blackboxprotobuf, pbtk, ImHex or 010 Editor, Kaitai Struct.
- Optional, via referenced skills: IDA, radare2, Ghidra.
tshark -r cap.pcap -T fields -e frame.number -e ip.src -e tcp.payloadTrigger the skill with natural requests
You do not need a special command. Describe the task in plain language that mentions the protocol, traffic, or capture, and the agent will match it to this skill. Name the file and the protocol type where you can.
Include your authorization context in the request. The skill tells the agent to confirm scope before interacting with any target, so a request that states the scope gives it what it needs.
- "I have authorization to test this app. Analyse cap.pcap and work out the frame layout of its custom TCP protocol."
- "Recover a .proto schema from these captured gRPC messages in traffic.pcapng."
- "Decode the WebSocket frames in this capture and produce a message type table with a reproducible decoding script."
- "Find the length field and checksum in these binary samples from the client log."
Work through an example capture
Start by extracting TCP payloads on the port you are analysing. The reference file includes a tshark filter for a specific port, which you can adapt to your own capture.
Then ask the agent to compare several messages of the same type. Constant bytes often mark headers or message types, while counters point to sequence numbers. The reference notes that length fields may be big-endian or little-endian and may or may not include the header length, so check each possibility against the data.
tshark -r cap.pcap -Y "tcp.port==4433" -T fields -e tcp.payload | headSafety, scope and redaction
The skill is for authorized work only. Its own rules say to check scope before interacting with a target, and not to send anything to a target whose authorization has not been granted. Replay is only for the authorized scope, and the skill advises testing harmless fields before sensitive operations, because a risky replay could harm live services.
The skill runs scripts and uses the network. It references a ../scripts/case-init.ps1 scope script and sibling skills that are not included in the provided files, so you may need to supply those yourself. Redact sensitive data in all evidence.
- Confirm written authorization and scope before any live interaction.
- Replay only within the authorized scope, starting with harmless fields.
- Redact secrets, tokens and personal data from hex excerpts and decoded output.
- The referenced case-init.ps1 script and sibling skills are not included in the provided files.
Tips for better results
Give the agent several samples of the same message type rather than one, since alignment across messages is how constant and changing bytes are found. Provide a PCAP where possible, because the skill is built around captured traffic.
If the traffic is encrypted, the skill looks for key derivation in client code and suggests related skills. Expect to supply the client binary or its JavaScript when that is the case.
- Provide at least several messages of the same type.
- Provide PCAP or PCAPNG captures when you have them.
- For encrypted frames, include the client binary or script that derives the key.
What people use it for
- Working out the frame layout of an undocumented TCP or WebSocket protocol from a capture.
- Recovering a lost .proto schema from captured Protobuf traffic.
- Analysing gRPC messages by inspecting HTTP/2 headers and protobuf bodies.
- Producing a reproducible Python decoding script for a custom binary format.
Frequently asked questions
How do I install the protocol-reverse skill?
Download the ZIP from this page and unzip it into ~/.claude/skills/ or a project's .claude/skills/ folder. In the Claude apps, you can instead upload the ZIP under Settings → Capabilities → Skills.
Is the protocol-reverse skill free?
The skill is published under the MIT licence, according to the item details. The source does not state pricing for any other service it may depend on.
What do I need to run protocol-reverse?
You need Python 3, and tshark or Wireshark is strongly recommended for parsing PCAP files. Optional tools include blackboxprotobuf, pbtk, ImHex or 010 Editor, and Kaitai Struct.
Can the skill analyse HTTP request signing or JavaScript encryption?
No. The skill routes pure HTTP parameter signing and JavaScript encryption to a different skill called js-reverse.
Why does the skill ask about authorization?
Its rules require documented scope before interacting with a target, and risky replay could harm live services. Only use it on systems you are authorized to test.
Which alternatives exist for analysing captured traffic?
The skill itself points to Wireshark and tshark for PCAP work, and to ImHex, 010 Editor and Kaitai Struct for structure templates. For simple packet viewing without reverse engineering, a basic packet viewer may suit you better.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
This skill suits developers, security researchers and engineers who are authorized to analyse a custom binary, Protobuf, gRPC or WebSocket protocol and who are comfortable with tshark and hex data. It is not a good fit for simple HTTP signing, for anyone without written authorization, or for users who only want a packet viewer.
Download the skill