What problem does it solve? Understanding a cryptographic protocol's message flow requires manually tracing sends, receives, and crypto operations across source code or dense specification documents, which is slow and error-prone. This Skill automates that extraction and produces accurate, cryptographically annotated sequence diagrams. ## Core Features & Use Cases - Dual input paths: Extracts protocol semantics from source code (Python, Rust, Go, TypeScript, C++) or from specifications including RFCs, academic papers, informal prose, ProVerif (.pv), and Tamarin (.spthy) models. - Cryptographic annotation: Labels every key generation, DH/ECDH, KDF, signing, verification, encryption, and commitment operation on the correct party, with abort paths shown as alt blocks. - Canonical protocol patterns: Ships reference flows for TLS 1.3, Noise, Signal X3DH, Double Ratchet, FROST, Shamir secret sharing, and generic MPC to validate implementations against specs and flag divergences. - Use Case: Given a ProVerif model of an HMAC challenge-response protocol, the Skill extracts parties, message flow, and crypto operations, then writes a Mermaid sequenceDiagram file plus an inline ASCII diagram with a protocol security summary. ## Quick Start Ask the AI to diagram the cryptographic protocol in your source file, RFC, or ProVerif/Tamarin model and it will produce a Mermaid sequence diagram file and an inline ASCII diagram.