| name | protocol-check |
| description | Analyze communication protocol implementation for correctness and security. Use when user says "check protocol", "protocol analysis", "verify protocol", or reviewing HTTP, WebSocket, gRPC, or custom protocol implementations. |
| user-invocable | true |
| allowed-tools | Read, Grep, Glob, Bash |
| context | fork |
| agent | protocol-analyzer |
| argument-hint | [protocol-implementation-file-or-module] |
Analyze the protocol implementation for correctness and security.
Context
Protocol-related files:
!find . -name "*protocol*" -o -name "*mqtt*" -o -name "*coap*" -o -name "*modbus*" -o -name "*ble*" -o -name "*can*" 2>/dev/null | head -15
Target: $ARGUMENTS
Instructions
- Identify the protocol being implemented
- Map the state machine (states, transitions, events)
- Check for missing error states and timeout handling
- Verify security measures (encryption, authentication, replay protection)
- Assess standards compliance
- Generate protocol analysis report