share
SKILL.md
Share Skill
When to use
- User provides a browser-saved HTML file and wants a clean, shareable version.
- User provides a URL and wants a shareable, self-contained copy.
- User mentions making an article "shareable", "sendable", or "self-contained".
- User has a
<name>.html+<name>_files/pair from "Save As > Web Page, Complete".
Workflow
From a local HTML file
- Run the conversion script on the input HTML file:
uv run ~/.claude/skills/share/scripts/html_to_share.py "<path_to_html>"
- Report to the user:
- Output file path (
<stem>-share.htmlnext to the original) - File size
- Number of images inlined
- Suggest opening in browser to verify
- Output file path (
From a URL
-
Ensure surf CLI is available (the user's browser must be running with the surf extension).
-
Run the conversion script with the URL:
uv run ~/.claude/skills/share/scripts/html_to_share.py "<url>"
- Report to the user:
- Output file path (
~/Desktop/<slug>-share.html) - File size
- Number of images inlined
- Suggest opening in browser to verify
- Output file path (
What it does
- File mode: Reads the saved HTML + companion
_files/directory - URL mode: Uses
surfCLI to navigate with the user's live browser session (preserving auth/cookies), captures the rendered DOM, and downloads images - Converts HTML → Markdown (via MarkItDown) → cleans content → converts back to styled HTML
- Inlines all images as base64 data URIs (resized to max 1000px, JPEG Q72)
- Strips tracking, navigation, footer, duplicate responsive images, and other web artifacts
- Produces a single self-contained HTML file with embedded CSS (Georgia serif, 720px max-width, clean typography)
Limitations
- URL mode requires
surfCLI and a running Chrome browser with the surf extension - URL mode uses the user's browser session — the page must be visible/accessible in the browser
- Very large image-heavy articles may produce files of 5+ MB
- Paywalled content requires an active subscription in the browser session
Weekly Installs
1
Repository
clementwalter/claudineGitHub Stars
1
First Seen
6 days ago
Security Audits
Installed on
zencoder1
amp1
cline1
openclaw1
opencode1
cursor1