Skills / Design

crypto-protocol-diagram

Proven

Extracts 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…

Source trailofbits/skillsLicense OtherSafety scan Clear

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
[![Scan: clear on Use This Skill](https://usethisskill.com/badge/scan/crypto-protocol-diagram.svg)](https://usethisskill.com/skills/crypto-protocol-diagram)

The badge updates with each weekly scan.

npx degit trailofbits/skills/plugins/trailmark/skills/crypto-protocol-diagram .claude/skills/crypto-protocol-diagram

12 alternatives · Best design skills

The proof

With 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 runWithoutWith the skillChange
Tokens in (prompt and skill)36626,054+7019%
Tokens out22,14419,433-12%
Seconds199.7167-16%
Without the skillWith crypto-protocol-diagram
⇆
Without, runWith crypto-protocol-diagram, run3 independent runs per side, none selected by hand.

Download the with-skill page

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