html-line-svg

html-line-svg is a skill for Codex from simbajigege/book2skills. It costs 210 tokens per session (5,921 once invoked), scanned A, original, MIT.

A method for turning content, screenshots, sketches, or existing HTML diagrams into simple instructional line drawings made with inline SVG, a web format for vector graphics.

In plain words
What is it for?
Use it to create accessible responsive diagrams for HTML presentations, course pages, and web cards, including comparison, architecture, process, interface, and agent-collaboration diagrams.
Why use it?
It clarifies objects, relationships, states, and reading order without inventing relationships that the source does not support. It also produces a reusable prompt describing the diagram’s meaning.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions AGENTS.md.

Good fit Use it to create accessible responsive diagrams for HTML presentations, course pages, and web cards, including comparison, architecture, process, interface, and agent-collaboration diagrams.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/simbajigege/book2skills/html-line-svg
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 simbajigege/book2skills --skill html-line-svg
Clone the repo
git clone --depth 1 https://github.com/simbajigege/book2skills

Made for: 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 html-line-svg

README.md
[![agentmods](https://agentmods.dev/badge/skills/simbajigege/book2skills/html-line-svg/github.svg)](https://agentmods.dev/skills/simbajigege/book2skills/html-line-svg)
Your own site
<a href="https://agentmods.dev/skills/simbajigege/book2skills/html-line-svg"><img src="https://agentmods.dev/badge/skills/simbajigege/book2skills/html-line-svg/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 html-line-svg

Your own site · 80×15
<a href="https://agentmods.dev/skills/simbajigege/book2skills/html-line-svg"><img src="https://agentmods.dev/badge/skills/simbajigege/book2skills/html-line-svg.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 210 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,921 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.00210 $0.05921
Opus 5 $0.00105 $0.02960
Sonnet 5 $0.00042 $0.01184
Haiku 4.5 $0.00021 $0.00592

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

Security

Grade A, and why

html-line-svg 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 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/validate-line-svg.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/html-line-svg/SKILL.md · 264 lines

How it starts

The opening of the file, as written. The whole thing — 264 lines — stays where its author put it; the contents beside it link to each section on GitHub.

HTML 语义框线 SVG

把原内容中的对象、关系、状态与阅读顺序,重新编码为克制的技术文档式框线图。先保证图能准确复述教学判断,再处理构图与 SVG 细节;不要把原插图机械描摹成矢量轮廓。每次交付同时生成一份自包含的线框图提示词,使同一语义设计能够被复用、复核和继续迭代。

开始前

  1. 读取目标内容、相邻内容、现有图片或草图、承载它的 HTML/CSS 和可用空间。
  2. course-design 中工作时,读取根目录 AGENTS.mddocs/design/STYLE_DNA.md、目标页面使用的设计 token 与更具体的目录规范。
  3. 由其他 skill 调用时,回到调用它的上层工作流:遵守上层 skill 规定的事实来源、源文件、素材登记、追溯记录、生成物和验证范围,不固定绑定 tailor-html-to-slideppt-like-html 或任何单一载体。独立调用时,遵守目标项目与目标文件所在目录的规则。
  4. 保护原结论、概念边界、方向、状态与数量。无法从材料确认的关系不要画成箭头。

工作流

1. 写语义规格与可选 Mermaid 关系结构

在画图前写出一个最小规格;可放在工作笔记中,不要求成为最终页面文字。

teaching_claim: 这张图必须让读者看懂的一个判断
objects:
  - id: object-a
    label: 对象名称
    role: interface | agent | task | container | document | state
relations:
  - from: object-a
    to: object-b
    type: flow | dispatch | claim | sync | association | compare | contains
    direction: forward | bidirectional | none
    path: primary | alternative
    payload: 可选;仅在理解交接物时填写
states:
  - target: object-b
    type: added-later | waiting | incomplete | fading | persistent | warning | blocked
visible_labels:
  - text: 对读者可见的文字
    role: group-title | object-label | relation-label | caption
layout_constraints:
  peer_alignment: visual-center-y | top | baseline | none
  alignment_tolerance: "0.5% of viewBox height"
  minimum_safe_gap: "2% of viewBox width"
  containment_label_zone: top | side | none
reading_order: left-to-right | top-to-bottom | center-out | board-to-peers

只保留支持 teaching_claim 的信息。名称、数量、箭头方向、实线或虚线都必须能在规格中找到语义理由。path 区分主流程与非主流程;payload 仅在不说明交接物就无法理解关系时填写,不要为每条箭头强行补产物。visible_labels 用来提前发现相邻层级的重复文字;layout_constraints 写相对约束,不写只适用于某一张图的坐标。

当图以节点关系为主时,优先在 YAML 之前或之后补一段 Mermaid,把它作为可执行、可预览的关系结构规格。系统架构、流程、Agent 协作、状态转换、时序交互、类关系和实体关系通常适合;GUI 页面线框、纯视觉对比和难以抽象为节点关系的插图可以省略。选择语法和写法时参考 Mermaid 官方图表语法文档,并从该页导航到 Flowchart、Architecture、Sequence、State、Class、Entity Relationship 等对应图型。

Mermaid 规格遵循以下要求:

  • 使用稳定、可读的节点 ID;把必须展示的文字写成显式标签。
  • 写清分组、关系动词、箭头方向和可确认的状态;材料没有依据的连接不要添加。
  • 选择能表达语义的最小图型,不为展示 Mermaid 功能而增加节点形状、颜色或关系。
  • 把 Mermaid 的节点、分组和边视为语义依据,不把自动布局、折线路径、坐标或默认样式视为最终设计。
  • Mermaid 不能替代 teaching_claim、对象角色、状态歧义说明、可见标签、布局约束、阅读顺序和窄屏行为;仍用 YAML 或紧邻 Mermaid 的文字补齐这些信息。

Read the full file on GitHub · 264 lines

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. 12d ago First seen · 264 lines · 210 tokens per session scan A a354e48c3b55

Subscribe to this mod's changes

html-line-svg is a skill published in the GitHub repository simbajigege/book2skills (162 stars, last pushed 16d ago), licensed MIT. It adds 210 tokens to every session and 5,921 once invoked, about $0.0011 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.