html2link

A skill for publishing local files and websites as browser-viewable public links. It supports HTML, static-site ZIP files, PDFs, Markdown, spreadsheets, DOCX files, and presentations.

In plain words
What is it for?
Sharing reports, documents, presentations, spreadsheets, PDFs, and static websites, plus updating, replacing, or deleting published artifacts.
Why use it?
It removes the manual work of uploading finished files and finding the correct sharing URL. It also reminds the agent to check for secrets before making an artifact public.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/joohw/html2link-skill/html2link
Any agent
npx skills add joohw/html2link-skill --skill html2link
Clone the repo
git clone --depth 1 https://github.com/joohw/html2link-skill

Made for: Claude Code, Codex.

Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 918 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00063 $0.00918
Opus 5 $0.00032 $0.00459
Sonnet 5 $0.00013 $0.00184
Haiku 4.5 $0.00006 $0.00092

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

Security

Grade A, and why

html2link scanned grade A with 1 finding 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 2d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

4. Prefer the `html2link` CLI when it is installed; otherwise use the anonymous curl fallback.
html2link/SKILL.md · 102 lines

How it starts

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

Publish a finished local artifact and return the exact URL from the API. Treat every generated URL as public.

Core workflow

  1. Finish and verify the artifact before uploading it.
  2. Package a multi-file static site as a ZIP containing index.html.
  3. Check that the artifact contains no secrets, credentials, or unintended private data.
  4. Prefer the html2link CLI when it is installed; otherwise use the anonymous curl fallback.
  5. Parse the exit status and JSON response. Do not claim success unless it contains url.
  6. Return the exact url value as a clickable link. Do not reconstruct it from slug.

Publish a new artifact

With the CLI:

html2link publish /absolute/path/to/report.html

Anonymous curl fallback for files up to 1 MB:

curl --fail-with-body -F "file=@/absolute/path/to/report.html" https://html2link.dev/api/upload

For larger files, use an API token from the signed-in home page:

HTML2LINK_API_TOKEN="..." html2link publish /absolute/path/to/report.html

Keep authenticated operations in the CLI so credentials stay in the local process environment rather than being embedded in reusable shell commands.

Use --json when another program needs the complete response:

html2link publish /absolute/path/to/report.html --json

Handle a successful response

{
  "slug": "a1B2c3D4",
  "updateToken": "keep-this-private",
  "url": "https://html2link.dev/x/a1B2c3D4",
  "kind": "html",
  "size": "42 KB",
  "updated": false
}
  • Return url to the user.
  • Keep updateToken private. Never include it in a public link or expose it unless the user explicitly needs to manage the upload.
  • Retain slug with updateToken only when the user asks to update or delete the same link later.

Use the original slug, its updateToken, and the replacement file. A successful update keeps the public URL unchanged.

html2link update /absolute/path/to/report.html --slug a1B2c3D4 --update-token "keep-this-private"

Read the full file on GitHub · 102 lines

Files

What ships with it

1 file 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. 2d ago First seen · 102 lines · 63 tokens per session scan A 2f712d0d4440

Subscribe to this mod's changes

html2link is a skill published in the GitHub repository joohw/html2link-skill (4 stars, last pushed 1mo ago), licensed MIT. It adds 63 tokens to every session and 918 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

nature-downloader

Use when a user needs lawful academic full text, CNKI institutional access, English OA retrieval, publisher API access, institutional browser fallback, or supporting information downloads.

Yuan1z0825/nature-skills · 36 tokens

baoyu-post-to-x

Posts content and articles to X (Twitter). Supports regular posts with images/videos and X Articles (long-form Markdown). In Codex, honor explicit requests for the Codex Chrome plugin/@chrome by using the Chrome Extension workflow; otherwise use Chrome Computer Use when available and fall back to real Chrome CDP…

JimLiu/baoyu-skills · 95 tokens

baoyu-post-to-weibo

Posts content to Weibo (微博). Supports regular posts with text, images, and videos, and headline articles (头条文章) with Markdown input via Chrome CDP. Use when user asks to "post to Weibo", "发微博", "发布微博", "publish to Weibo", "share on Weibo", "写微博", or "微博头条文章".

JimLiu/baoyu-skills · 84 tokens

markstream-nuxt

Integrate markstream-vue into a Nuxt 3 or Nuxt 4 app. Use when Codex needs client-only boundaries, SSR-safe setup, browser-only peer gating, worker-aware initialization, renderer mode selection, or a safe MarkdownRender integration inside pages, components, or Nuxt plugins.

Simon-He95/markstream-vue · 71 tokens

web-scraping

Fetches web pages and extracts structured data using mq's toolchain (mq-crawl for fetching/crawling/JS rendering, mq for HTML-to-Markdown selector-based extraction, http() for in-query requests). Use when the user wants to scrape a URL, pull structured data out of a webpage, crawl a site, or turn HTML into…

harehare/mq · 89 tokens

larksnap-fetch

把飞书/Lark 文档或普通网页抓取并保存到本地,也能编辑用户有权限的飞书文档,并用已登录浏览器执行一次网页搜索。用户要求下载、导出、抓取、写入飞书文档,或联网搜索资料/参考链接时使用本技能,即使没有提到 larksnap。底层通过技能自带 daemon 桥接已登录的 larksnap 浏览器扩展;arXiv 使用独立脚本。.

AmbroseX/larksnap · 111 tokens