skills/editorial-card-screenshot/SKILL.md
Generate high-density editorial HTML info cards in a modern magazine and Swiss-international style, then capture them as ratio-specific screenshots. Use when the user provides text or core information and wants: (1) a complete responsive HTML info card, (2) the design to follow the stored editorial prompt, (3) output in fixed visual ratios such as 3:4, 4:3, 1:1, 16:9, 9:16, 2.35:1, 3:1, or 5:2, or (4) both HTML and a rendered PNG cover/card from the same content.
npx skillsauth add open-fox/agents editorial-card-screenshotInstall 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.
Turn source text into a compact, high-contrast HTML information card that follows the user's editorial prompt, then render a screenshot in one of the supported aspect ratios. The goal is not just density but editorial quality: clear hierarchy, strong visual anchors, and screenshot-stable rendering without accidental cropping or dead space.
Always preserve three output stages unless the user explicitly asks to skip one:
Choose layout strategy from the content itself:
Before compressing content, first change the layout skeleton.
Use these defaults unless the user overrides them:
<link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@700;900&family=Noto+Sans+SC:wght@400;500;700&family=Oswald:wght@500;700&family=Inter:wght@400;600;700&display=swap" rel="stylesheet">
18px to 20px on a 900px-wide composition.13px minimum.40px to 50px, component gaps 30px to 40px, line-height 1.5 to 1.6.4px to 6px accent rules, subtle gray planes, and 4% noise overlays.#f5f3ed or similar warm-paper backgrounds unless the user supplies another palette.Bold: more cover-like, stronger anchors, larger weak-background text, heavier accents.Refined: lighter contrast, quieter accents, more restrained paper-like atmosphere.Hybrid: the recommended default when style is not specified; refined overall with a few bold anchor moments.Pick ratio-specific structure before writing final copy.
4:34:3 a symmetrical two-column newspaper wall from top to bottom.3:41:11:1 as the default skeleton for every card. Pick it only when the output ratio is actually square.3:1, 5:2, 2.35:1)When HTML will be screenshotted, design the page as a fixed-size canvas instead of a responsive webpage:
references/ratios.md.width and height, not as a fluid 100vw / 100vh layout.html, body { margin: 0; }..frame {
width: 2000px;
height: 1500px;
}
.card {
width: 100%;
height: 100%;
padding: 48px;
background: #f5f3ed;
}
Do not rely on 100vw, 100vh, or responsive container widths as the primary design size for screenshot output.
If the user asks only for HTML, still make the layout screenshot-ready.
At the same time, preserve basic browser preview behavior:
html, body, and the outer frame should match the target canvas size exactly.Use these structural heuristics when composing the card:
4:3 landscape, asymmetric left-right layouts often work best for dense analytical content.3:4 portrait, use portrait-friendly mixed grids rather than a single narrow column.1fr rows or columns in ways that can create large accidental voids near the footer or push important content to the canvas edge.Use the bundled shell script when the user wants a PNG output:
./scripts/capture_card.sh input.html output.png 3:4
Supported ratios and render sizes live in references/ratios.md.
The rendering helper requires a local Chrome or Chromium binary.
It first respects CHROME_BIN when set, then falls back to common binary names and a macOS Chrome app path.
Before running the script:
If the screenshot still has bottom whitespace after layout has already been improved:
Accept only these ratio presets:
3:44:31:116:99:162.35:13:15:2If the user gives a ratio outside this set, ask them to map it to the nearest supported preset rather than inventing a new one.
When responding to a card-generation request:
references/ratios.mdOpen this when you need the exact preset names or capture dimensions.
references/editorial-card-prompt.mdUse this as the canonical prompt spec when the user wants the latest validated editorial-card behavior.
references/recommended-skeletons.mdUse this when you want ratio-specific reusable skeletons rather than one-off composition ideas.
scripts/capture_card.shRun this to capture a PNG from a local HTML file using a supported ratio preset.
It requires a local Chrome or Chromium binary or an explicit CHROME_BIN override.
scripts/trim_card_bottom.shRun this only as an optional post-process when the user accepts a slightly shorter final image in exchange for removing bottom whitespace.
assets/card-template.htmlUse this as a starting shell when you want a minimal ratio-ready HTML canvas before filling in real content. The template syncs its canvas size to the active viewport during capture, while still falling back to readable normal flow on narrower browser widths.
Before finalizing HTML or PNG, explicitly reject the result if any of these happen:
tools
Send and receive transactional emails with Cloudflare Email Service (Email Sending + Email Routing). Use when building email sending (Workers binding or REST API), email routing, Agents SDK email handling, or integrating email into any app — Workers, Node.js, Python, Go, etc. Also use for email deliverability, SPF/DKIM/DMARC, wrangler email setup, MCP email tools, or when a coding agent needs to send emails. Even for simple requests like "add email to my Worker" — this skill has critical config details.
tools
Build AI agents on Cloudflare Workers using the Agents SDK. Load when creating stateful agents, durable workflows, real-time WebSocket apps, scheduled tasks, MCP servers, chat applications, voice agents, or browser automation. Covers Agent class, state management, callable RPC, Workflows, durable execution, queues, retries, observability, and React hooks. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.
development
Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.
development
Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill.