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
development
Implement safe, behavior-preserving code refactors after inspecting the existing project. Use when the user asks to refactor code, split large files or modules, extract functions or methods, reduce duplicated logic, rename confusing classes/functions/variables, improve code comments, remove unused or dead code, or says 重构代码, 拆分模块, 提取方法, 减少重复代码, 优化命名, 优化注释, 删除未调用代码. For broad refactor requests, plan safe slices and wait for approval; for narrow scoped requests, directly implement the smallest verifiable slice.
development
Use only when the user explicitly asks for swarm, subagents, parallel agents, dynamic workflow, multi-agent orchestration, 多智能体编排, or when the task truly needs coordinated research plus implementation plus review plus verification packets. Do not use for ordinary code review, planning-only work, single-line bugfixes, routine audits, or migrations unless orchestration is requested or at least two independent workflow dimensions are present.
development
Run a code quality review focused on maintainability, structure, abstraction quality, file growth, branching complexity, boundary cleanliness, and refactoring opportunities. Use when the user asks for code quality review, code review, maintainability review, architecture quality review, PR code quality feedback, 代码质量审查, 代码质量 review, 可维护性审查, 架构质量审查, or review comments about code structure. Do not use for pure security review, formatting-only review, performance profiling, or implementation tasks unless the user also asks for a code quality review.
development
Plan-first brainstorming workflow that turns an idea into an approved Markdown implementation plan by default. Use when the user wants to brainstorm, design, scope, or plan a feature/spec before implementation. Spark explores project context, asks only blocking questions, writes the plan under the project root's .plannings/YYYY-MM-DD-feature-slug.md path, self-reviews it, and waits for user approval. Create an HTML or visual plan/spec only when the user explicitly asks for HTML, browser-viewable, or visual output; save the paired .html beside the Markdown plan.