crypto-protocol-diagram

Extract cryptographic protocol message flows and generate annotated Mermaid sequence diagrams.

Updated Nov 23, 2025
One-click install
npx skills add https://github.com/manuelbrandner85/Weltenbibliothekapp --skill crypto-protocol-diagram-manuelbrandner85
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: crypto-protocol-diagram
Source: https://github.com/manuelbrandner85/Weltenbibliothekapp/tree/main/.agents/skills/crypto-protocol-diagram
Command: npx skills add https://github.com/manuelbrandner85/Weltenbibliothekapp --skill crypto-protocol-diagram-manuelbrandner85

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires ripgrep, and includes references (resource) components.

What problem does it solve?

This Skill solves the difficulty of accurately visualizing complex cryptographic protocol message flows, which are often prone to human error when diagrammed from memory or informal notes.

Core Features & Use Cases

  • Protocol Extraction: Automatically generates Mermaid sequence diagrams from source code, RFCs, academic papers, or formal models like ProVerif and Tamarin.
  • Cryptographic Annotation: Identifies and labels cryptographic operations like DH exchanges, KDFs, and signatures directly within the diagram.
  • Use Case: Use this to audit a TLS handshake implementation or visualize a multi-party computation (MPC) protocol flow to ensure security properties are correctly implemented.

Quick Start

Use the crypto-protocol-diagram skill to analyze the provided protocol specification file and generate a Mermaid sequence diagram.

Frequently Asked Questions about crypto-protocol-diagram

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a sequence diagram from a cryptographic protocol specification?

To generate a sequence diagram from a cryptographic protocol specification, you need a tool that systematically parses protocol entry points, participant roles, and cryptographic primitives from source code or RFCs to produce Mermaid visualizations with cryptographic annotations.

Can I visualize a TLS handshake implementation from source code for a security audit?

Yes, you can visualize a TLS handshake implementation for a security audit by automatically extracting protocol message flows and semantic operations like key exchanges and signatures directly from source code, generating an annotated diagram to verify security properties.

Does formal verification with ProVerif or Tamarin support extracting cryptographic message flows?

Yes, formal verification with ProVerif or Tamarin supports extracting cryptographic message flows. The analysis process systematically parses formal models to identify participant roles and cryptographic primitives, generating accurate Mermaid sequence diagrams for review.

What is the best way to diagram multi-party computation (MPC) protocol flows?

The best way to diagram multi-party computation (MPC) protocol flows is to automatically extract message sequences and cryptographic annotations from specifications or formal models, generating Mermaid sequence diagrams that accurately represent complex participant interactions.

Do I need ripgrep installed to visualize cryptographic protocols from code?

Yes, you need ripgrep installed to visualize cryptographic protocols from code. The tool requires ripgrep as a dependency to systematically parse and search through source code, RFCs, and formal models to extract protocol entry points and cryptographic primitives.

Why are manually drawn cryptographic handshake diagrams prone to errors?

Manually drawn cryptographic handshake diagrams are prone to human error because they rely on informal notes and memory rather than systematic parsing. Automating the extraction of message flows and cryptographic primitives directly from specifications ensures accurate security review.