Install
openclaw skills install infocard-skillsGenerate high-density editorial HTML info cards in a modern magazine and Swiss-international style, then capture them as ratio-specific screenshots. Use when...
openclaw skills install infocard-skillsTurn 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.
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.Pick ratio-specific structure before writing final copy.
4:33:41:13: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.
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.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:
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.
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.
assets/card-template.htmlUse this as a starting shell when you want a minimal ratio-ready HTML canvas before filling in real content.
Before finalizing HTML or PNG, explicitly reject the result if any of these happen: