html-diagram

GitHub

用于生成自包含HTML图表的专业技能,支持拓扑、序列、状态等多种可视化模型。根据内容选择HTML/CSS/SVG等渲染方式,确保无障碍访问、响应式布局及交互体验,输出无需构建的单文件HTML。

skills/html-diagram/SKILL.md plannotator/effective-html

触发场景

用户明确请求使用html-diagram 通用html技能路由到图表生成请求

安装

npx skills add plannotator/effective-html --skill html-diagram -g -y
更多选项

不安装直接使用

npx skills use plannotator/effective-html@html-diagram

指定 Agent (Claude Code)

npx skills add plannotator/effective-html --skill html-diagram -a claude-code -g -y

安装 repo 全部 skill

npx skills add plannotator/effective-html --all -g -y

预览 repo 内 skill

npx skills add plannotator/effective-html --list

SKILL.md

Frontmatter
{
    "name": "html-diagram",
    "description": "Direct-invocation specialist for self-contained HTML diagrams whose layout, notation, and interaction clarify relationships, sequence, topology, state, hierarchy, or quantitative structure. Use when the user explicitly invokes html-diagram or the broad html skill routes a diagram request here. Do not activate independently from a general request."
}

HTML Diagram

Build the smallest visual model that makes the relationship easier to understand than prose alone. Match the notation and visual language to the user's project and subject. Do not force every topic into the same SVG boxes and arrows.

Choose the right model

Identify the question the reader should answer, then select the form:

  • topology for components and connections;
  • sequence for ordered messages over time;
  • process for steps, branches, and handoffs;
  • state for transitions and conditions;
  • hierarchy for containment or ownership;
  • timeline for change over time;
  • matrix for repeated relationships;
  • quantitative view when magnitude matters.

Decide what must remain visible together and what can be revealed on demand. Use a simpler form when it carries the same meaning.

Choose the rendering method

Use HTML and CSS, SVG, Canvas, or WebGL according to the information and scale. Do not use SVG merely because the output is a diagram.

  • Keep labels, grouping, direction, and connectors legible before adding interaction.
  • Use stable node positions when readers must compare states or steps.
  • Keep edge crossings and ambiguous arrowheads to a minimum.
  • Put intentionally broad canvases in a contained pan or scroll region.
  • Use legends only when notation is not self-explanatory.

Add sequencing, filtering, path tracing, pan and zoom, or animation only when it helps answer the stated question. Keep overlays dismissible, controls keyboard-accessible, and motion compatible with prefers-reduced-motion.

Build and verify

Deliver one self-contained HTML file with essential CSS and JavaScript inline. Require no build step or external service. Use accessible text alternatives and keep important meaning available without animation or color alone.

Inspect the result at wide and narrow widths. Check label collisions, clipped nodes, edge routing, reading order, keyboard operation, overflow, and every interactive state.

Return the absolute path, the diagram form chosen, and the main simplifications or assumptions.

版本历史

  • 9982ad0 当前 2026-07-31 06:50

    从仅关注SVG架构图重构为通用HTML图表技能,支持多种可视化模型(拓扑、时序等)及多渲染引擎(HTML/CSS/SVG/Canvas),增强交互、无障碍及响应式设计规范。

  • 63b1bf0 2026-07-19 18:02

    新增悬浮详情面板的可关闭功能以防止遮挡;添加全屏SVG的拖拽平移和滚轮缩放支持,优化交互体验。

  • 50260e1 2026-07-05 14:36

同 Skill 集合

skills/html-plan/SKILL.md
skills/html-prototype/SKILL.md
skills/html-wireframe/SKILL.md
skills/html/SKILL.md

元信息

文件数
0
版本
4a9a1e5
Hash
82b1ca58
收录时间
2026-07-05 14:36

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-02 13:34
浙ICP备14020137号-1 $访客地图$