skills/image-from-html/SKILL.md
Generate images from self-contained HTML/CSS designs. Use when the user wants a reproducible, code-first pipeline to produce print or social graphics (posters, flyers, ads) from HTML and screenshot automation.
npx skillsauth add razbakov/skills image-from-htmlInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill when you need pixel-perfect output, brand-accurate typography, and a reproducible pipeline for producing print/social collateral from code.
Build the HTML source
width/height in mm or px@import or inline font definitionsPreview in a browser
Capture a high-resolution screenshot
Deliver outputs
For branded presentations, create one HTML file with multiple .slide divs (1280x720px each). Then capture each slide individually and combine into a PDF.
HTML structure:
<div class="slide dark"><!-- navy background slide --></div>
<div class="slide light"><!-- white background slide --></div>
Capture script (Python):
# For each slide, inject CSS that hides all others via nth-child
for i in range(num_slides):
single_html = html.replace('</head>', f"""<style>
body {{ margin:0 !important; overflow:hidden !important; }}
.slide {{ display:none !important; }}
.slide:nth-child({i+1}) {{ display:block !important; }}
</style></head>""")
# Write to temp file, screenshot with Chrome headless
# --window-size=1280,720 --force-device-scale-factor=2
# Combine PNGs into PDF with img2pdf
import img2pdf
with open('deck.pdf', 'wb') as f:
f.write(img2pdf.convert(png_list))
Key rules for slide decks:
overflow: hidden on .slide to catch clipping issues during preview--print-to-pdf for slides — it uses A4 paper size and breaks layout# A4 poster at 300 DPI (210mm × 297mm → 2480 × 3508px at 300dpi)
google-chrome --headless --screenshot=poster-b.png \
--window-size=2480,3508 \
--force-device-scale-factor=1 \
poster-b.html
tools
--- name: handoff description: Get an agent past a browser/UI wall it can't (or must not) cross on its own — a login-gated dashboard, a CAPTCHA, a 2FA prompt, an API that keeps rejecting the write, or an irreversible click that policy says a human must make. This skill is an ESCALATION LADDER, not a first move: it tells you to try the automated browser surfaces FIRST (Chrome-in-Claude, computer-use, an autonomous browser sub-agent) and only fall back to the Handoff app — a wrapper browser that h
documentation
Summarize one or more YouTube videos from their links. Use this whenever the user pastes a youtube.com or youtu.be URL (or several) and wants to know what it's about — phrasings like "summarize to telegram", "tldr these videos", "what do these say", "summary of this talk", or just dropping links with no instruction at all. Fetches each video's real transcript via yt-dlp (not the page text, which never contains the transcript), cleans the captions, and writes a per-video summary. Default delivery is Telegram; honor any other surface the user names ("to my notes", "just here in chat", "email it"). Trigger even when the user only pastes bare links — bare YouTube links almost always mean "tell me what's in these".
data-ai
Daily Digest — Chief-of-Staff role consolidates the six top-managers into one Telegram message to the Commander, instead of six. Implements the protocol from agent-proactivity.md.
development
Seed a new or empty Instagram account with a 9-post grid (3×3) so the profile looks established the moment a new visitor lands. Designed for festivals, new businesses, product launches, conferences, communities — any time an empty IG profile would hurt conversion from external traffic (QR scans, flyer drops, cross-promo). Generates assets via /image-from-gemini (per content-publishing rules — never HTML), writes captions with hashtag sets, and outputs a posting order + cadence plan. Trigger generously: phrases like '9 posts for instagram', 'fill my IG', 'starter grid', 'launch grid', 'instagram seed', '9-post grid', 'IG account not to look empty', 'first instagram posts', 'feed bootstrap', '3x3 grid', 'instagram launch content'. Even if the user mentions only one piece (just the images, just the captions, just the order), use this skill — the grid only works as an integrated bundle.