← ClaudeAtlas

html2link-publishlisted

Publish generated artifacts to html2link.dev and return short shareable URLs. Use when Codex or another agent creates an HTML file, static site ZIP, PDF, Markdown document, spreadsheet, DOCX, or PPTX and needs to give the user a browser-friendly link instead of only a local file path or attachment.
joohw/html2link-skill · ★ 4 · Data & Documents · score 75
Install: claude install-skill joohw/html2link-skill
# html2link Publish ## Overview Use html2link to turn local artifacts into short links that open directly in a browser. Prefer this skill after creating a report, prototype, dashboard, presentation, document, static site, or other deliverable that the user may want to view or share. ## Supported Inputs - `.html`, `.htm` - `.zip` static sites that contain `index.html`; archives with one top-level folder are normalized by html2link - `.pdf` - `.md`, `.markdown` - `.xlsx`, `.xls`, `.csv` - `.docx` - `.pptx` ## Publish Workflow 1. Write the artifact to a stable local file path. 2. If the artifact is a static site, package it as a ZIP with `index.html` at the root when possible. 3. Upload the file with `scripts/publish-html2link.mjs` or an equivalent `curl` request. 4. Return only the public `url` field to the user unless they ask for API details. 5. Treat `updateToken` as private. Store or show it only when the user explicitly wants to update or delete the same link later. ## Script Run the bundled script from the skill directory or with an absolute path: ```bash node scripts/publish-html2link.mjs /absolute/path/to/report.html ``` The script prints the JSON API response. It reads these optional environment variables: - `HTML2LINK_BASE_URL`: Defaults to `https://html2link.dev` - `HTML2LINK_API_TOKEN`: Bearer token for files over the anonymous limit Update an existing link: ```bash node scripts/publish-html2link.mjs /absolute/path/to/report.html --slug a1B2c3D4 --updat