ljg-card
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseljg-card: 铸
ljg-card: Zhù
将内容铸成可见的形态。内容进去,PNG 出来。模具决定形状。
Cast content into visible formats. Input content, output PNG. The mold determines the format.
参数
Parameters
| 参数 | 模具 | 尺寸 | 说明 |
|---|---|---|---|
| 长图 | 1080 x auto | 单张阅读卡,内容自动撑高 |
| 信息图 | 1080 x auto | 内容驱动的自适应视觉布局 |
| 多卡 | 1080 x 1440 | 自动切分为多张阅读卡片 |
| 视觉笔记 | 1080 x auto | 手绘风格 sketchnote,动态选择风格路线 |
| 漫画 | 1080 x auto | 日式黑白漫画风格,动态选择漫画家视觉语言 |
| Parameter | Mold | Dimensions | Description |
|---|---|---|---|
| Long Card | 1080 x auto | Single reading card, content automatically adjusts height |
| Infograph | 1080 x auto | Content-driven adaptive visual layout |
| Multi-card | 1080 x 1440 | Automatically splits into multiple reading cards |
| Visual Sketchnote | 1080 x auto | Hand-drawn style sketchnote, dynamically selects style routes |
| Comic | 1080 x auto | Japanese-style black & white comic, dynamically selects manga artist visual language |
约束
Constraints
本 skill 输出为视觉文件(PNG),不适用 L0 中的 Org-mode、Denote 和 ASCII-only 规范。
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 --> WebFetch 获取
- 粘贴文本 --> 直接使用
- 文件路径 --> Read 获取
- URL --> Retrieve via WebFetch
- Pasted text --> Use directly
- File path --> Retrieve via Read
文件命名
File Naming
从内容提取标题或核心思想作为 (中文直接用,去标点,≤ 20 字符)。
{name}Extract the title or core idea from the content as (use Chinese directly, remove punctuation, ≤20 characters).
{name}截图工具
Screenshot Tool
bash
node ~/.claude/skills/ljg-card/assets/capture.js <html> <png> <width> <height> [fullpage]依赖: 中的 playwright。如报错:
~/.claude/skills/ljg-card/node_modules/bash
cd ~/.claude/skills/ljg-card && npm install playwright && npx playwright install chromiumbash
node ~/.claude/skills/ljg-card/assets/capture.js <html> <png> <width> <height> [fullpage]Dependency: playwright in . If errors occur:
~/.claude/skills/ljg-card/node_modules/bash
cd ~/.claude/skills/ljg-card && npm install playwright && npx playwright install chromiumarxiv 检测
arxiv Detection
内容来源为 arxiv 论文时(URL 含 、文件名含 标签、或内容中出现 arxiv ID),提取 arxiv ID(格式 ),在卡片 footer 右侧显示。适用于 和 模具( 多卡无 footer,不适用)。
arxiv.orgpaperXXXX.XXXXX-l-i-mWhen the content source is an arxiv paper (URL contains , filename includes the tag, or arxiv ID appears in the content), extract the arxiv ID (format ) and display it on the right side of the card footer. Applicable to and molds (not applicable to multi-card as it has no footer).
arxiv.orgpaperXXXX.XXXXX-l-i-m交付
Delivery
- 报告文件路径
- Report the file path
品味准则
Taste Guidelines
所有模具共享。执行任何模具前,先 Read ,作为视觉质量底线贯穿全流程。
references/taste.md核心:反 AI 生成痕迹——禁 Inter 字体、禁纯黑、禁三等分卡片、禁居中 Hero、禁 AI 文案腔、禁假数据。
Shared by all molds. Before executing any mold, read to maintain this baseline of visual quality throughout the process.
references/taste.mdCore principle: Avoid AI-generated traces — prohibit Inter font, pure black, tri-sectioned cards, centered Hero sections, AI-style copy, and fake data.
执行
Execution
根据参数选择模具,Read + 对应的 mode 文件,按步骤执行:
references/taste.mdSelect the mold based on parameters, read + the corresponding mode file, and follow the steps to execute:
references/taste.md-l(默认):长图
-l (default): Long Card
Read ,按其步骤执行。
references/mode-long.md模板:
assets/long_template.htmlRead and follow its steps.
references/mode-long.mdTemplate:
assets/long_template.html-i:信息图
-i: Infograph
Read ,按其步骤执行。
references/mode-infograph.md模板:
assets/infograph_template.htmlRead and follow its steps.
references/mode-infograph.mdTemplate:
assets/infograph_template.html-m:多卡
-m: Multi-card
Read ,按其步骤执行。
references/mode-poster.md模板:
assets/poster_template.htmlRead and follow its steps.
references/mode-poster.mdTemplate:
assets/poster_template.html-v:视觉笔记
-v: Visual Sketchnote
Read ,按其步骤执行。
references/mode-sketchnote.md模板:
assets/sketchnote_template.htmlRead and follow its steps.
references/mode-sketchnote.mdTemplate:
assets/sketchnote_template.html-c:漫画
-c: Comic
Read ,按其步骤执行。
references/mode-comic.md模板:
assets/comic_template.htmlRead and follow its steps.
references/mode-comic.mdTemplate:
assets/comic_template.html