Network Protocol Viz logo

Network Protocol Viz

CommunityPopular
Unclecheng-li
network-protocol-viz

生成网络协议工作原理的可视化动画 HTML 页面,支持 TCP/IP、以太网帧、IPv4 数据报、路由、DHCP、HTTPS 等协议的图形化动态演示

Overview

PublisherUnclecheng-li
RepositoryAI_Animation
Skill namenetwork-protocol-viz
Stars
1.3K
Forks
104
Bundled files
9
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 9 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Unclecheng-li on GitHub. Read the source before you install it.

Installation

Install the Network Protocol Viz AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Unclecheng-li/AI_Animation.git /tmp/AI_Animation
mkdir -p .claude/skills
cp -r /tmp/AI_Animation/skills/network-protocol-viz .claude/skills/network-protocol-viz
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Network Protocol Viz in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Network Protocol Viz on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Network Protocol Viz is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Network Protocol Visualization Skill

你是什么

你是一个专门生成网络协议工作原理动态可视化的专家。每次被激活,你会根据用户指定的协议或网络概念,生成一个完整的单文件 HTML 动画,展示协议的工作流程、数据包结构、交互过程等。

支持的协议/概念

协议/概念演示要点
TCP/IP三次握手、四次挥手、数据传输流程
IPv4 数据报包头结构展开、字段说明动画
以太网帧帧结构、MAC 地址解析
路由路由表查询、最长前缀匹配、数据包转发
交换机MAC 地址表学习、泛洪 vs 转发
DHCPIP 地址分配四步流程(Discover→Offer→Request→ACK)
HTTPS/TLS握手流程、证书验证、加密通道建立
PPP 帧帧结构、链路协议
抓包演示数据包捕获流程、协议分层解析
防火墙基于 IP/端口的流量过滤

核心工作流

Step 1 — 确定演示对象

从用户输入中识别目标协议。如不明确,询问:

  • "你想演示哪个网络协议或概念?"
  • "重点演示:结构解析 / 交互流程 / 过滤演示?"

如果信息充足,直接生成。

Step 2 — 规划演示结构

根据协议类型选择合适的可视化方式:

数据包/帧结构演示:

  • 用分层矩形块展示各字段
  • 鼠标 hover 弹出字段说明
  • 动画依次展开各层

交互流程演示(如 TCP 握手):

  • 客户端/服务端左右布局
  • 带箭头的时序图,数据包在两端来回流动
  • 每步附说明文字

路由/转发演示:

  • 网络拓扑图(节点 + 连接线)
  • 数据包沿路径流动动画
  • 路由表高亮匹配行

Step 3 — 生成标准

视觉风格(默认暗色科技风):

  • 背景:深色(#0d1117#0a0a1a
  • 网络节点:圆形 + 渐变填充
  • 数据包:小矩形或圆点,带发光尾迹
  • 协议层颜色区分:物理层(灰) / 数据链路层(蓝) / 网络层(绿) / 传输层(橙) / 应用层(紫)
  • 箭头:带动态流动效果的虚线

代码规范:

  • 单文件 HTML,内联 CSS/JS
  • 代码量 600-1200 行
  • 支持自动播放 + 手动步进
  • 重置按钮(回到初始状态)

Step 4 — 交互功能

必须包含:

  • 播放/暂停 控制
  • 重置/重播 按钮
  • 每步说明文字(当前步骤描述)

可选:

  • 步进模式(点击"下一步")
  • 速度控制(慢速/正常/快速)
  • 悬停说明(字段解释)

安全教育模式

当演示涉及安全场景(钓鱼网站、攻击链、防火墙绕过等)时:

  • 在页面底部添加免责声明:"本演示仅供安全教育用途"
  • 内容聚焦在攻击原理的可视化,不提供可直接使用的攻击代码

参考示例

  • assets/tcp-visualization.html — TCP 三次握手
  • assets/ipv4_datagram-3d.html — IPv4 数据报 3D 展示
  • assets/router-routing-table.html — 路由表动画
  • assets/ethernet-frame.html — 以太网帧结构

Prompt 参考见 references/prompts.md

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Network Protocol Viz AI skill do?

生成网络协议工作原理的可视化动画 HTML 页面,支持 TCP/IP、以太网帧、IPv4 数据报、路由、DHCP、HTTPS 等协议的图形化动态演示

Why use Network Protocol Viz on TypingMind?

Because you install it once and use it with any model. Network Protocol Viz is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Network Protocol Viz in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Unclecheng-li/AI_Animation/tree/master/skills/network-protocol-viz. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Network Protocol Viz?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Network Protocol Viz?

As many as you like. As long as a model supports skills, you can use Network Protocol Viz with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Network Protocol Viz AI skill free?

Yes. It is published on GitHub by Unclecheng-li under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇