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 skills add https://github.com/shaom/infocard-skills --skill editorial-card-screenshot
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:
Read references/content-fit.md. Inventory semantic units, estimate density, and choose layout strategy from both density and ratio:
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)16:99:16When 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:
After 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.
references/content-fit.mdOpen this before choosing a skeleton and after rendering. It defines semantic-unit density, ratio capacity, space allocation, and rejection checks for empty or crowded cards.
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:
Use when the user explicitly asks for a desktop or system screenshot (full screen, specific app or window, or a pixel region), or when tool-specific capture capabilities are unavailable and an OS-level capture is needed.
Mirror an iOS Simulator into the Codex in-app browser and render SwiftUI previews from importable Swift packages in that simulator with hot reload. Use when a user wants to watch or interact with an iOS app in the browser, see a SwiftUI preview outside Xcode Canvas, iterate live on a preview, or capture browser-visible simulator proof.
Annotate UI screenshots with documentation callouts in Fellyph's established visual style — uniform-width orange arrows with white halos, double-stroke target outlines, numbered callout cards, dim overlays and a framed canvas. Use this whenever the user asks to annotate a screenshot, add arrows or callouts to a screenshot, create documentation images, highlight UI controls in a capture, or produce docs/tutorial visuals for Playground, Studio or any web UI — even if they just say "add arrows to this" or "make a docs screenshot".
Render pixel-accurate iMessage screenshot mockups (DM or group) from a thread JSON. Supports minimal, with-keyboard, and full iPhone 15 Pro frame variants. Outputs HTML + PNG.
> End-to-end skill that turns a single reference image into a published Gooseworks style — analyzes the image, drafts the slim style spec, renders a hero example plus 2-3 additional formats via Playwright, writes the `gooseworks-style.json` manifest, and publishes via `npx gooseworks styles publish` so other agents can discover it. Mirrors goose-graphics-create-format but for styles.
Resize and validate App Store screenshots with current asc screenshot-size data and macOS sips. Use when preparing or fixing screenshots for App Store Connect submission.
Generates an automated App Store screenshot pipeline with UI tests for screenshot capture, device framing, localized caption overlays, and multi-size batch export. Use when user wants automated screenshots, App Store screenshot generation, or a fastlane snapshot replacement.
Dependency checker and installer for agent-canvas, agent-eyes, and canvas-edit skills. Use BEFORE running any canvas skill for the first time, or when canvas skills fail with import/browser errors. Triggers on "setup agent canvas", "install canvas dependencies", "canvas not working", "playwright not found", or any setup/installation request for canvas skills.
Take shaom/editorial-card-screenshot from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.