ljg-card
Original:🇨🇳 Chinese
Translated
1 scriptsChecked / no sensitive code detected
Content caster (鑄). Converts content into PNG visuals. There are six available templates: -l (default) long reading card, -i infographic, -m multi-card reading cards (1080x1440), -v visual sketchnote, -c comic (black and white manga style), -w whiteboard (marker-style board layout). Output files are saved to ~/Downloads/. This skill is triggered when the user mentions terms such as '鑄', 'cast', '做成圖', '做成卡片', '做成資訊圖', '做成海報', '視覺筆記', 'sketchnote', '漫畫', 'comic', 'manga', '白板', 'whiteboard'. It replaces the former ljg-cards and ljg-infograph skills.
6installs
Sourceyelban/ljg-skills.tw
Added on
NPX Install
npx skill4agent add yelban/ljg-skills.tw ljg-cardTags
Translated version includes tags in frontmatterSKILL.md Content (Chinese)
View Translation Comparison →ljg-card: 鑄 (Cast)
Casts content into visible forms. Input content, output PNG. The selected template determines the output format.
Arguments
| Argument | Template | Dimension | Description |
|---|---|---|---|
| Long image | 1080 x auto | Single page reading card, height automatically adjusted to fit content |
| Infographic | 1080 x auto | Content-driven adaptive visual layout |
| Multi-card | 1080 x 1440 | Automatically split into multiple reading cards |
| Visual note | 1080 x auto | Hand-drawn style sketchnote, dynamic style route selection |
| Comic | 1080 x auto | Japanese black and white manga style, dynamic selection of manga artist visual language |
| Whiteboard | 1080 x auto | Whiteboard marker style, structured block diagrams + arrows + color markers |
Constraints
This skill outputs visual files (PNG), and does not comply with the Org-mode, Denote and ASCII-only specifications in L0.
Shared Foundations
Content Retrieval
- URL --> fetched via WebFetch
- Pasted text --> used directly
- File path --> fetched via Read tool
File Naming
Extract the title or core idea from the content as (Chinese text can be used directly, remove punctuation, ≤ 20 characters).
{name}Screenshot Tool
bash
node ~/.claude/skills/ljg-card/assets/capture.js <html> <png> <width> <height> [fullpage]Dependencies: in . If you encounter an error, run:
playwright~/.claude/skills/ljg-card/node_modules/bash
cd ~/.claude/skills/ljg-card && npm install playwright && npx playwright install chromiumFooter
- Left side: logo + Li Jigang (hardcoded in the template)
- Right side: Content source (optional) -- displayed when there is a clear source (such as author name, arxiv ID, website name, etc.), leave blank if no source exists. Use the variable: fill with
{{SOURCE_LINE}}when source is available, otherwise use empty string. Applies to<span class="info-source">source text</span>,-l,-i,-v,-ctemplates (the-wmulti-card template has no footer, so this rule does not apply).-m
Delivery
- Report the file path
Taste Guidelines
Shared by all templates. Before running any template, read first, and take it as the visual quality baseline throughout the entire process.
references/taste.mdCore: Avoid AI generation traces -- prohibit Inter font, pure black color, three-equal-part cards, centered Hero sections, AI-style copywriting, fake data.
Execution
Select template according to the input argument, read and the corresponding mode file, execute step by step:
references/taste.md-l (default): Long image
Read and follow its steps.
references/mode-long.mdTemplate:
assets/long_template.html-i: Infographic
Read and follow its steps.
references/mode-infograph.mdTemplate:
assets/infograph_template.html-m: Multi-card
Read and follow its steps.
references/mode-poster.mdTemplate:
assets/poster_template.html-v: Visual note
Read and follow its steps.
references/mode-sketchnote.mdTemplate:
assets/sketchnote_template.html-c: Comic
Read and follow its steps.
references/mode-comic.mdTemplate:
assets/comic_template.html-w: Whiteboard
Read and follow its steps.
references/mode-whiteboard.mdTemplate:
assets/whiteboard_template.html