content/skills/document-skills/card/SKILL.md
Turn URLs, pasted text, Markdown, or article files into PNG knowledge cards and visual explainers. Supports five modes: `-l` long reading card, `-i` infographic, `-m` multi-card carousel, `-v` sketchnote, and `-c` black-and-white manga comic. Use whenever the user asks to make content into a card, long image, infographic, visual note, sketchnote, comic, manga page, or says '铸' / 'cast' / '做成图' / '做成卡片' / '视觉化一下', even if they do not specify a mode. Choose the best-fit mode automatically when no flag is given. Do not use it for generic photo illustration, slide decks, or editable diagram authoring.
npx skillsauth add bahayonghang/my-claude-code-settings cardInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
将内容铸成可见的形态。内容进去,HTML 与 PNG 出来。模具决定形状,根 Skill 负责路由、质检与交付。
| 参数 | 模具 | 尺寸 | 说明 |
|------|------|------|------|
| -l(默认) | 长图 | 1080 x auto | 单张阅读卡,内容自动撑高 |
| -i | 信息图 | 1080 x auto | 内容驱动的自适应视觉布局 |
| -m | 多卡 | 1080 x 1440 | 自动切分为多张阅读卡片 |
| -v | 视觉笔记 | 1080 x auto | 手绘风格 sketchnote,动态选择风格路线 |
| -c | 漫画 | 1080 x auto | 日式黑白漫画风格,动态选择漫画家视觉语言 |
~/Downloads/。本 skill 输出为视觉文件,不适用 L0 中的 Org-mode、Denote 和 ASCII-only 规范。
除非用户要求保留原文的全部噪声,先去掉明显无关的导航、广告、脚注和样板语,再交给对应模具。
从内容提取标题或核心思想作为 {name}(中文直接用,去标点,≤ 20 字符)。
记 output_dir 为最终 PNG 与 HTML 的保存目录:
~/Downloads/node "$SKILL_DIR/scripts/capture.js" <html> <png> <width> <height> [fullpage]
依赖:Skill 目录内的 Playwright。如报错:
cd "$SKILL_DIR" && npm install && npx playwright install chromium
内容来源为 arxiv 论文时(URL 含 arxiv.org、文件名含 paper 标签、或内容中出现 arxiv ID),提取 arxiv ID(格式 XXXX.XXXXX),在卡片 footer 右侧显示。适用于 -l 和 -i 模具(-m 多卡无 footer,不适用)。
所有模具共享。执行任何模具前,先 Read $SKILL_DIR/references/taste.md,把它作为视觉质量底线。
核心:反 AI 生成痕迹。禁 Inter 字体默认方案、禁纯黑、禁三等分卡片、禁居中 Hero、禁 AI 文案腔、禁假数据。
-l/-m/-i 另外必须 Read $SKILL_DIR/references/editorial-typography.md。这三个 editorial mode 使用 Skill 自带的本地仓耳今楷,不依赖远程字体。
显式参数优先。若用户已经给出 -l/-i/-m/-v/-c,不要擅自改模具。
用户未指定参数时,按内容与目标自动路由:
-l:线性阅读型内容、文章摘要、观点长文、阅读卡-i:结构化知识、对比、框架、步骤、数据密集内容-m:明显超出单张承载能力,或用户明确要轮播 / 分页 / 多页卡片-v:概念关系、教学拆解、因果链、节点网络-c:叙事张力、角色冲突、阶段转折、需要漫画化表达的内容若仍然模糊,默认 -l,同时在结果中明确说明这是保守选择。
{name}。$SKILL_DIR/references/taste.md 与对应 mode 文档。
-l/-m/-i 还要 Read $SKILL_DIR/references/editorial-typography.md。output_dir。$SKILL_DIR/scripts/capture.js 生成 PNG。在任何模具下,若出现以下情况,视为失败并重做:
先调整结构与层级,再考虑删减内容。不要一上来就砍信息量。
-l/-i/-v/-c)-l/-i)-m)根据参数选择模具,Read $SKILL_DIR/references/taste.md + 对应 mode 文件,按步骤执行:
Read $SKILL_DIR/references/editorial-typography.md + $SKILL_DIR/references/mode-long.md,按其步骤执行。
模板:$SKILL_DIR/assets/long_template.html
Read $SKILL_DIR/references/editorial-typography.md + $SKILL_DIR/references/mode-infograph.md,按其步骤执行。
模板:$SKILL_DIR/assets/infograph_template.html
Read $SKILL_DIR/references/editorial-typography.md + $SKILL_DIR/references/mode-multi.md,按其步骤执行。
模板:$SKILL_DIR/assets/poster_template.html
Read $SKILL_DIR/references/mode-sketchnote.md,按其步骤执行。
模板:$SKILL_DIR/assets/sketchnote_template.html
Read $SKILL_DIR/references/mode-comic.md,按其步骤执行。
模板:$SKILL_DIR/assets/comic_template.html
tools
文献深度解读助手,像研究生导师一样交互式解读 Zotero 库中的学术论文,面向计算机科学、深度学习、自动化等方向(个人向)。当用户提供文献题目、DOI、PDF 或要求解读某篇论文时触发,通过 Zotero MCP 优先获取全文,并根据用户意图自动选择快速筛选、导师深读或研究复盘模式。完整深读时先完成叙事类型判断、阅读前预检、novelty 校准和作者思考路径重建,再整体概览,并基于图例、正文和表格逐图详细解读(Zotero MCP 无法提取 PDF 图片,解读基于文字信息,必要时提醒上传图片)。适用于:(1)快速判断文献是否值得深读 (2)深入理解某篇论文 (3)学习文章中的方法和技术 (4)批判性分析研究设计 (5)寻找研究灵感。需要多篇论文综合、对比或找研究空白,或 arXiv/DOI 批量规范化时,改用 paper-workbench。
development
Review Codex, Claude, OpenAI, or other agent skill directories as reusable capability packages. Use when asked to audit, review, improve, score, rewrite, debrand, package, or document a SKILL.md, skill package, marketplace skill, or agent skill directory, especially when the user wants a comprehensive findings-first report with concrete patch recommendations and validation steps.
development
Turn vague or complex Codex tasks into strong `/goal` commands with outcome, verification, constraints, boundaries, iteration policy, completion evidence, and pause/block conditions. Use when the user asks for Codex goal instructions, Goal 指令, 目标指令, `/goal` prompts, 中文 Goal 模板, plan-to-goal interviews, success criteria, verification commands, or bounded agent work definitions.
tools
Write, debug, and validate ast-grep structural code search rules. Use this skill when the user needs syntax-aware code search, AST pattern matching, structural refactor discovery, language-construct queries, or searches that plain text tools like rg can miss, such as finding functions with particular descendants, calls inside specific contexts, missing error handling, React hook shapes, decorators, or other Tree-sitter-backed code structures.