crypto-protocol-diagram
ProvenExtracts protocol message flow from source code, RFCs, academic papers, pseudocode, informal prose, ProVerif (.pv), or Tamarin (.spthy) models and generates Mermaid sequenceDiagrams with cryptographic annotations. Use when diagramming a crypto protocol, visualizing a handshake or key exchange flow, extracting message flow from a spec or RFC, diagramming a ProVerif or Tamarin model, or drawing…
No fetch-and-execute, destructive, credential, exfiltration or rules-override patterns in 9 files, checked on Nov 30, 2026. This is not a guarantee of safety. How the scan works.
Author? Show the scan result in your README
The badge updates with each weekly scan.
npx degit trailofbits/skills/plugins/trailmark/skills/crypto-protocol-diagram .claude/skills/crypto-protocol-diagramWith and without this skill.
Prompt: “Draw the message flow of this login protocol as a single HTML page with an SVG sequence diagram, and note any weaknesses. 1. Client sends username to server. 2. Server replies with a random 16-byte nonce and the user's salt. 3. Client computes H = SHA-256(salt || password) and sends HMAC-SHA256(key=H, msg=nonce). 4. Server looks up stored H, computes the same HMAC and compares. 5. On success the server returns a session token valid for 30 days.” Run on claude-opus-5-5, with the skill at commit 2be6433. Recorded 10/31/2026. 3 independent runs per side; all are shown, none picked by hand.
| Median per run | Without | With the skill | Change |
|---|---|---|---|
| Tokens in (prompt and skill) | 366 | 26,054 | +7019% |
| Tokens out | 22,144 | 19,433 | -12% |
| Seconds | 199.7 | 167 | -16% |
Read this skill at its source
The repo doesn’t state an open license, so we link to it rather than showing the text here.
Open on GitHub