network-protocol-viz

network-protocol-viz is a skill for Claude Code, Codex from Unclecheng-li/AI_Animation. It costs 51 tokens per session (1,059 once invoked), scanned A, original, MIT.

A tool for creating animated HTML explanations of how computer-network protocols work. Protocols are agreed rules that devices use to communicate.

In plain words
What is it for?
Use it to demonstrate TCP/IP, IPv4, Ethernet, routing, DHCP address assignment, HTTPS/TLS handshakes, firewalls, or packet captures.
Why use it?
It makes packet structures, device interactions, routing decisions, and connection steps easier to see than in text alone.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to demonstrate TCP/IP, IPv4, Ethernet, routing, DHCP address assignment, HTTPS/TLS handshakes, firewalls, or packet captures.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/unclecheng-li/ai_animation/network-protocol-viz
About the project

AI Animation Skills is a collection of agent instructions and templates for generating single-file HTML animations, including presentations, diagrams, protocol visualizations, phone interfaces, and video-style scenes. People use the skills with AI coding agents to create animated web pages from descriptions or templates. The catalogue entries are the collection's individual generation workflows.

Unclecheng-li/AI_Animation · 1,246 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Unclecheng-li/AI_Animation --skill network-protocol-viz
Clone the repo
git clone --depth 1 https://github.com/Unclecheng-li/AI_Animation

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for network-protocol-viz

README.md
[![agentmods](https://agentmods.dev/badge/skills/unclecheng-li/ai_animation/network-protocol-viz/github.svg)](https://agentmods.dev/skills/unclecheng-li/ai_animation/network-protocol-viz)
Your own site
<a href="https://agentmods.dev/skills/unclecheng-li/ai_animation/network-protocol-viz"><img src="https://agentmods.dev/badge/skills/unclecheng-li/ai_animation/network-protocol-viz/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for network-protocol-viz

Your own site · 80×15
<a href="https://agentmods.dev/skills/unclecheng-li/ai_animation/network-protocol-viz"><img src="https://agentmods.dev/badge/skills/unclecheng-li/ai_animation/network-protocol-viz.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,059 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00051 $0.01059
Opus 5 $0.00026 $0.00530
Sonnet 5 $0.00010 $0.00212
Haiku 4.5 $0.00005 $0.00106

Measured 9d ago against content hash 09c9cd5ce0eb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

network-protocol-viz scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/network-protocol-viz/SKILL.md · 105 lines

What it actually says

Network Protocol Visualization Skill

你是什么

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

支持的协议/概念

协议/概念 演示要点
TCP/IP 三次握手、四次挥手、数据传输流程
IPv4 数据报 包头结构展开、字段说明动画
以太网帧 帧结构、MAC 地址解析
路由 路由表查询、最长前缀匹配、数据包转发
交换机 MAC 地址表学习、泛洪 vs 转发
DHCP IP 地址分配四步流程(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

Files

What ships with it

10 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 105 lines · 51 tokens per session scan A 09c9cd5ce0eb

Subscribe to this mod's changes

network-protocol-viz is a skill published in the GitHub repository Unclecheng-li/AI_Animation (1,246 stars, last pushed 9d ago), licensed MIT. It adds 51 tokens to every session and 1,059 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

fund-holding-viewer

A deployment guide for a Chinese fund-holdings analysis web app. It covers running the app on Alibaba Cloud ECS, a virtual server service, with HTTPS through either a subdomain or a path on an existing domain.

whjin/fundscope · 77 tokens

frontmcp-guides

Tutorials, end-to-end walkthroughs, and complete reference projects for FrontMCP. Use when you want a getting-started guide, a full worked example, or to learn best practices by following a step-by-step build rather than a single API reference. Includes a beginner weather-API server (tool plus static resource, Zod…

agentfront/frontmcp · 157 tokens

create-skill

Create instruction-only skills that package knowledge and workflow guides for AI clients.

agentfront/frontmcp · 17 tokens

preline-mcp

Add, integrate, or build Preline UI components and blocks into HTML files via the Preline MCP server. Use when the user mentions "preline", says "/preline", asks to add a UI component, or requests a Preline block (a ready-made page section) using Preline UI.

htmlstreamofficial/preline · 66 tokens

pdf-press

Teaches agents how to generate Markdown, HTML (with embedded SVG), and Mermaid content that renders beautifully to multi-page PDF via writepdf, with proper page breaks, compact professional layouts, brand and domain-adaptive color schemes, multi-column support for scientific papers, magazine-style editorial documents…

kdcube/kdcube · 74 tokens

preline-theme-generator

Generate, preview, save, or validate Preline theme CSS using the bundled local generator in this skill. Use when the user asks to create a new Preline theme, match a brand color, translate a mood into a theme, generate light and dark theme CSS, preview theme output without writing files, or review and fix generated…

htmlstreamofficial/preline · 89 tokens