Provide source code, an RFC or paper excerpt, pseudocode, a ProVerif file, or a Tamarin model, and name the part of the protocol you want to inspect.
The Skill first classifies the input as code, specification, or both. It identifies participants, matches sends and receives in order, annotates signing, verification, DH, HKDF, encryption, hashing, or commitments, then writes phases, loops, parallel actions, and failure paths into a Mermaid sequenceDiagram.
When both specification and implementation are available, the specification becomes the baseline and implementation differences are marked on the diagram. Inferred ordering, unnamed roles, and underspecified algorithms are flagged rather than silently resolved.
The main deliverable is an editable Mermaid Markdown file. An ASCII sequence diagram and protocol summary are included for quick review without a renderer.
01Classify
Code, specification, or both
02Trace
Participants, messages, and order
03Annotate
Signing, DH, HKDF, and checks
04Deliver
Mermaid, ASCII, and a protocol summary