screenshot-html

screenshot-html is a skill for Claude Code from slogsdon/skills-design. It costs 75 tokens per session (2,254 once invoked), scanned A, original, MIT.

A tool that captures exact PNG images of selected design areas inside HTML files using a browser engine. It targets artboards such as social posts, thumbnails, cards, and overlays rather than entire pages.

In plain words
What is it for?
Use it after a design skill creates an HTML artifact and you need PNG exports of its canvas or scene. It is not intended for complete web pages.
Why use it?
It removes browser controls, page backgrounds, and preview spacing from exported images. This gives you clean files ready to attach or share.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is $ node screenshot-html.mjs ./design/<brand>/artifacts.

Part of the skills-design plugin — 19 skills shipped together

Good fit Use it after a design skill creates an HTML artifact and you need PNG exports of its canvas or scene. It is not intended for complete web pages.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/slogsdon/skills-design
agentmods
npx agentmods add skills/slogsdon/skills-design/screenshot-html

Made for: Claude Code.

Or install skills-design, the plugin that ships this one along with the rest of its 19 skills.

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 screenshot-html

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/slogsdon/skills-design/screenshot-html"><img src="https://agentmods.dev/badge/skills/slogsdon/skills-design/screenshot-html.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,254 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.
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.00075 $0.02254
Opus 5 $0.00037 $0.01127
Sonnet 5 $0.00015 $0.00451
Haiku 4.5 $0.00007 $0.00225

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

Security

Grade A, and why

screenshot-html 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 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/screenshot-html.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/screenshot-html/SKILL.md · 134 lines

How it starts

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

Skill: screenshot-html

Targeted artifact-node screenshots via headless Chromium. Skips browser chrome and page background — captures just the design canvas.

When to use

  • After running any design-* skill that produces artifact HTML (LinkedIn post, Instagram card, YouTube thumbnail, Twitter card, blog hero, podcast cover, quote card, carousel, business card, speaker bio, Twitch panels, OBS scene pack, stream overlay, newsletter header, OG/hero pair, talk slides, etc.) and you want PNG exports of each artifact.
  • When you need a clean image asset to attach to a post, deck, or PR — without the surrounding page padding the artifact HTML uses for preview backdrop.

Skip if:

  • The HTML is a deliverable page (e.g. design-landing-page, design-link-in-bio) — the page IS the artifact, not a .canvas inside it. Use --full-page for those.
  • The user wants browser-rendered review (open in a browser instead).

What it targets

The script queries for these conventions used by design-* skills:

  • .canvas — the primary fixed-size artifact wrapper (most skills).
  • [class*="canvas-"] — modifier variants: canvas-front / canvas-back (business card), canvas-main / canvas-compact (speaker bio), canvas-full / canvas-safe (YouTube channel art), canvas-og / canvas-hero (blog hero), canvas-square / canvas-story (quote card), canvas-offline (Twitch offline banner), canvas-panel (Twitch info panels).
  • .scene — hash-routed scenes inside stream-overlay and OBS scene-pack files (<section id="scene-starting" class="scene"> etc.). The script navigates each scene's hash before capture so the .is-active toggle applies.

Nested matches are deduped — only top-level artifact containers are screenshotted.

If a file has no matches, the script falls back to a full-page screenshot. --full-page forces fallback for every file.

How to run

From the project root where the design HTML lives (Playwright must resolve there):

node skills/screenshot-html/scripts/screenshot-html.mjs <dir> [--output <dir>] [--width <px>] [--height <px>] [--full-page]

Read the full file on GitHub · 134 lines

Files

What ships with it

2 files 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. 9d ago First seen · 134 lines · 75 tokens per session scan A 088b50351160

Subscribe to this mod's changes

screenshot-html is a skill published in the GitHub repository slogsdon/skills-design (3 stars, last pushed 25d ago), licensed MIT. It adds 75 tokens to every session and 2,254 once invoked, about $0.0004 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-31.

Related

Other skills, from other repositories

paint

Paint a complete visual universe with genjutsu - art direction brainstorm, design system, implementation, audit. Anti-AI-slop design pipeline. Adapts to Web, Android (Compose), Apple (SwiftUI).

AThevon/genjutsu · 46 tokens

smart-illustrator

An image-generation tool for adding illustrations to articles, creating slide presentations and infographics, or making cover images and thumbnails. It can also create prompts without generating the images.

axtonliu/smart-illustrator · 131 tokens

canva

The Canva craft skill — produce on-brand social graphics, carousels, quote cards, infographics, and thumbnails at scale without a designer, and escape the "Canva look." Use when someone wants to design in Canva, make social graphics, set up a Brand Kit, batch-produce graphics (Bulk Create), resize one design for every…

social-media-skills/skills · 214 tokens

design-and-templates

The reusable on-brand template-SYSTEM skill -- build a brand kit + a small set of reusable templates so a non-designer can produce consistent on-brand graphics fast across formats. Use when someone wants templates, a brand kit, a consistent visual system, or help choosing/using a design tool (Canva/Adobe…

social-media-skills/skills · 202 tokens

pinterest-pin-design

The Pinterest pin design skill -- the visual half that pairs with pinterest-seo's keyword layer. Use when someone wants to design a pin, a Pinterest pin image, a pin text overlay, fresh pin variations for an existing URL, or board covers. Designs and briefs the 2:3 (1000x1500) vertical pin: one focal point, a keyword…

social-media-skills/skills · 230 tokens

quote-cards-and-text-graphics

The craft of turning a single quote, line, or stat into a designed typographic graphic — quote cards, pull-quotes, text-on-image, stat cards, typography posts. Use when someone wants a quote card, a text graphic, a pull-quote, a stat card, or to turn a strong line into a shareable image. The design amplifies a strong…

social-media-skills/skills · 215 tokens