Cast content into a visible form. Content goes in, PNG comes out. The mold determines the shape.
Parameters
| Parameter | Mold | Size | Description |
|---|---|---|---|
-l(default) |
Long image | 1080 x auto | Single reading card, content automatically stretches the height |
-i |
Infographic | 1080 x auto | Content-driven adaptive visual layout |
-m |
Multi-card | 1080 x 1440 | Automatically splits into multiple reading cards |
-v |
Visual notes | 1080 x auto | Hand-drawn style sketchnote, dynamically selects a style route |
-c |
Comic | 1080 x auto | Japanese black-and-white comic style, dynamically selects a manga artist's visual language |
-w |
Whiteboard | 1080 x auto | Whiteboard marker style, structured boxes + arrows + colored marks |
Constraints
This skill outputs visual files (PNG), so the Org-mode, Denote, and ASCII-only conventions in L0 do not apply.
Shared foundation
Acquire content
- URL --> WebFetch to acquire
- Pasted text --> use directly
- File path --> Read to acquire
File naming
Extract the title or core idea from the content as {name}(use Chinese directly, remove punctuation, ≤ 20 characters).
Screenshot tool
node ~/.claude/skills/rainman-card/assets/capture.js <html> <png> <width> <height> [fullpage]
Dependency:~/.claude/skills/rainman-card/node_modules/ playwright in . If an error occurs:
cd ~/.claude/skills/rainman-card && npm install playwright && npx playwright install chromium
arxiv detection
When the content source is an arxiv paper (URL contains arxiv.org, filename contains the paper tag, or an arxiv ID appears in the content), extract the arxiv ID (format XXXX.XXXXX), and display it on the right side of the card footer. Applies to the -l and -i molds (-m multi-card has no footer, does not apply).
Delivery
- Report file path
Taste guidelines
Shared by all molds. Before executing any mold, first Read references/taste.md, as the visual quality baseline that runs through the entire process.
Core: anti-AI-generation traces—no Inter font, no pure black, no three-equal-column cards, no centered Hero, no AI copywriting tone, no fake data.
Execute
Select the mold according to the parameters, Read references/taste.md + the corresponding mode file, and execute step by step:
-l (default): Long image
Read references/mode-long.md, execute according to its steps.
Template:assets/long_template.html
-i: Infographic
Read references/mode-infograph.md, execute according to its steps.
Template:assets/infograph_template.html
-m: Multi-card
Read references/mode-poster.md, execute according to its steps.
Template:assets/poster_template.html
-v: Visual notes
Read references/mode-sketchnote.md, execute according to its steps.
Template:assets/sketchnote_template.html
-c: Comic
Read references/mode-comic.md, execute according to its steps.
Template:assets/comic_template.html
-w: Whiteboard
Read references/mode-whiteboard.md, execute according to its steps.
Template:assets/whiteboard_template.html