Infographic Creator 标志

Infographic Creator

社区
LingyiChen-AI
infographic-creator

基于给定文字内容创建精美信息图。当用户请求创建信息图时使用。

概览

发布者LingyiChen-AI
代码仓库OpenSkills
技能名称infographic-creator
星标数
70
复刻数
5
附带文件
仅含指令
许可协议Apache-2.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 LingyiChen-AI 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Infographic Creator AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/LingyiChen-AI/OpenSkills/tree/main/examples/infographic-skills/infographic-creator
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/LingyiChen-AI/OpenSkills.git /tmp/OpenSkills
mkdir -p .claude/skills
cp -r /tmp/OpenSkills/examples/infographic-skills/infographic-creator .claude/skills/infographic-creator
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Infographic Creator,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Infographic Creator。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Infographic Creator 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

信息图(Infographic)将数据、信息与知识转化为可感知的视觉语言。它结合视觉设计与数据可视化,用直观符号压缩复杂信息,帮助受众快速理解并记住要点。

Infographic = Information Structure + Visual Expression

本任务使用 AntV Infographic 创建可视化信息图。

在开始任务前,需要理解 AntV Infographic 语法规范,包括模板列表、数据结构、主题等。

规范

AntV Infographic 语法

AntV Infographic 语法是一种自定义的 DSL,用于描述信息图渲染配置。它使用缩进描述信息,具有较强鲁棒性,便于 AI 流式输出并渲染信息图。主要包含以下信息:

  1. template:用模板表达文字信息结构。
  2. data:信息图数据,包含 title、desc、数据项等。数据项通常包含 label、desc、icon 等字段。
  3. theme:主题包含 palette、font 等样式配置。

例如:

plain
infographic list-row-horizontal-icon-arrow
data
  title Title
  desc Description
  lists
    - label Label
      value 12.5
      desc Explanation
      icon document text
theme
  palette #3b82f6 #8b5cf6 #f97316

语法规范

  • 第一行必须是 infographic <template-name>,模板从下方列表中选择(见“可用模板”部分)。

  • 使用 data / theme 块,块内用两个空格缩进。

  • 键值对使用「键 空格 值」;数组使用 - 作为条目前缀。

  • icon 使用图标关键词(如 star fill)。

  • data 应包含 title/desc + 模板对应的主数据字段(不一定是 items)。

  • 主数据字段选择(只用一个,避免混用):

    • list-* → lists
    • sequence-* → sequences(可选 order asc|desc)
    • compare-* → compares(支持 children 分组对比),可包含多个对比项
    • hierarchy-structure → items(每一项对应一个独立层级,每一层级可以包含子项,最多可嵌套 3 层)
    • hierarchy-* → 单一 root(树结构,通过 children 嵌套);
    • relation-* → nodes + relations;简单关系图可省略 nodes,在 relations 中用箭头语法
    • chart-* → values(数值统计,可选 category)
    • 不确定时再用 items 兜底
  • compare-binary-* / compare-hierarchy-left-right-* 二元模板:必须两个根节点,所有对比项挂在这两个根节点的 children

  • hierarchy-*:使用单一 root,通过 children 嵌套(不要重复 root)

  • theme 用于自定义主题(palette、font 等) 例如:暗色主题 + 自定义配色

    plain
    infographic list-row-simple-horizontal-arrow
    theme dark
      palette
        - #61DDAA
        - #F6BD16
        - #F08BB4
  • 使用 theme.base.text.font-family 指定字体,如手写风格 851tegakizatsu

  • 使用 theme.stylize 选择内置风格并传参 常见风格:

    • rough:手绘效果
    • pattern:图案填充
    • linear-gradient / radial-gradient:线性/径向渐变

    例如:手绘风格(rough)

    plain
    infographic list-row-simple-horizontal-arrow
    theme
      stylize rough
      base
        text
          font-family 851tegakizatsu
  • 禁止输出 JSON、Markdown 或解释性文字

数据语法示例

按模板类别的数据语法示例(使用对应字段,避免同时添加 items):

  • list-* 模版
plain
infographic list-grid-badge-card
data
  title Feature List
  lists
    - label Fast
      icon flash fast
    - label Secure
      icon secure shield check
  • sequence-* 模版
plain
infographic sequence-steps-simple
data
  sequences
    - label Step 1
    - label Step 2
    - label Step 3
  order asc
  • hierarchy-* 模版
plain
infographic hierarchy-structure
data
  root
    label Company
    children
      - label Dept A
      - label Dept B
  • compare-* 模版
plain
infographic compare-swot
data
  compares
    - label Strengths
      children
        - label Strong brand
        - label Loyal users
    - label Weaknesses
      children
        - label High cost
        - label Slow release

四象限图

plain
infographic compare-quadrant-quarter-simple-card
data
  compares
    - label High Impact & Low Effort
    - label High Impact & High Effort
    - label Low Impact & Low Effort
    - label Low Impact & High Effort
  • chart-* 模版
plain
infographic chart-column-simple
data
  values
    - label Visits
      value 1280
    - label Conversion
      value 12.4
  • relation-* 模版

边标签写法:A -label-> B 或 A -->|label| B

plain
infographic relation-dagre-flow-tb-simple-circle-node
data
  nodes
    - id A
      label Node A
    - id B
      label Node B
  relations
    A - approves -> B
    A -->|blocks| B
  • 兜底 items 示例
plain
infographic list-row-horizontal-icon-arrow
data
  items
    - label Item A
      desc Description
      icon sun
    - label Item B
      desc Description
      icon moon

可用模板

  • chart-bar-plain-text
  • chart-column-simple
  • chart-line-plain-text
  • chart-pie-compact-card
  • chart-pie-donut-pill-badge
  • chart-pie-donut-plain-text
  • chart-pie-plain-text
  • chart-wordcloud
  • compare-binary-horizontal-badge-card-arrow
  • compare-binary-horizontal-simple-fold
  • compare-binary-horizontal-underline-text-vs
  • compare-hierarchy-left-right-circle-node-pill-badge
  • compare-quadrant-quarter-circular
  • compare-quadrant-quarter-simple-card
  • compare-swot
  • hierarchy-mindmap-branch-gradient-capsule-item
  • hierarchy-mindmap-level-gradient-compact-card
  • hierarchy-structure
  • hierarchy-tree-curved-line-rounded-rect-node
  • hierarchy-tree-tech-style-badge-card
  • hierarchy-tree-tech-style-capsule-item
  • list-column-done-list
  • list-column-simple-vertical-arrow
  • list-column-vertical-icon-arrow
  • list-grid-badge-card
  • list-grid-candy-card-lite
  • list-grid-ribbon-card
  • list-row-horizontal-icon-arrow
  • list-sector-plain-text
  • list-zigzag-down-compact-card
  • list-zigzag-down-simple
  • list-zigzag-up-compact-card
  • list-zigzag-up-simple
  • relation-dagre-flow-tb-animated-badge-card
  • relation-dagre-flow-tb-animated-simple-circle-node
  • relation-dagre-flow-tb-badge-card
  • relation-dagre-flow-tb-simple-circle-node
  • sequence-ascending-stairs-3d-underline-text
  • sequence-ascending-steps
  • sequence-circular-simple
  • sequence-color-snake-steps-horizontal-icon-line
  • sequence-cylinders-3d-simple
  • sequence-filter-mesh-simple
  • sequence-funnel-simple
  • sequence-horizontal-zigzag-underline-text
  • sequence-mountain-underline-text
  • sequence-pyramid-simple
  • sequence-roadmap-vertical-plain-text
  • sequence-roadmap-vertical-simple
  • sequence-snake-steps-compact-card
  • sequence-snake-steps-simple
  • sequence-snake-steps-underline-text
  • sequence-stairs-front-compact-card
  • sequence-stairs-front-pill-badge
  • sequence-timeline-rounded-rect-node
  • sequence-timeline-simple
  • sequence-zigzag-pucks-3d-simple
  • sequence-zigzag-steps-underline-text

模板选择建议:

  • 严格顺序(流程/步骤/发展趋势)→ sequence-*
    • 时间线 → sequence-timeline-*
    • 阶梯图 → sequence-stairs-*
    • 路线图 → sequence-roadmap-vertical-*
    • 折线路径 → sequence-zigzag-*
    • 环形进度 → sequence-circular-simple
    • 彩色蛇形步骤 → sequence-color-snake-steps-*
    • 金字塔 → sequence-pyramid-simple
  • 观点列举 → list-row-* 或 list-column-*
  • 二元对比(利弊)→ compare-binary-*
  • SWOT → compare-swot
  • 层级结构(树图)→ hierarchy-tree-*
  • 数据图表 → chart-*
  • 象限分析 → quadrant-*
  • 网格列表(要点)→ list-grid-*
  • 关系展示 → relation-*
  • 词云 → chart-wordcloud
  • 思维导图 → hierarchy-mindmap-*

示例

绘制互联网技术演进信息图

plain
infographic list-row-horizontal-icon-arrow
data
  title Internet Technology Evolution
  desc From Web 1.0 to AI era, key milestones
  lists
    - time 1991
      label Web 1.0
      desc Tim Berners-Lee published the first website, opening the Internet era
      icon web
    - time 2004
      label Web 2.0
      desc Social media and user-generated content become mainstream
      icon account multiple
    - time 2007
      label Mobile
      desc iPhone released, smartphone changes the world
      icon cellphone
    - time 2015
      label Cloud Native
      desc Containerization and microservices architecture are widely used
      icon cloud
    - time 2020
      label Low Code
      desc Visual development lowers the technology threshold
      icon application brackets
    - time 2023
      label AI Large Model
      desc ChatGPT ignites the generative AI revolution
      icon brain

生成流程

第一步:理解用户需求

在创建信息图之前,先理解用户需求与想表达的信息,以便确定模板和数据结构。

若用户提供清晰的内容描述,应将其拆解为清晰、简洁的结构。

否则需要向用户澄清(如:“请提供清晰简洁的内容描述。”、“你希望使用哪个模板?”)

  • 提取关键信息结构(title、desc、items 等)。
  • 明确所需数据字段(title、desc、items、label、value、icon 等)。
  • 选择合适模板。
  • 使用 AntV Infographic 语法描述信息图内容 {syntax}。

关键注意:必须尊重用户输入的语言。例如用户输入中文,则语法中的文本也必须是中文。

第二步:渲染信息图

当得到最终的 AntV Infographic 语法后,可按以下步骤生成完整 HTML 文件:

  1. 创建包含以下结构的完整 HTML 文件:
    • DOCTYPE 与 HTML meta(charset: utf-8)
    • Title:{title} - Infographic
    • 引入 AntV Infographic 脚本:https://unpkg.com/@antv/infographic@latest/dist/infographic.min.js
    • 创建 id 为 container 的容器 div
    • 初始化 Infographic(width: '100%'、height: '100%')
    • 用实际标题替换 {title}
    • 用实际 AntV Infographic 语法替换 {syntax}
    • 加入导出 SVG 的功能:const svgDataUrl = await infographic.toDataURL({ type: 'svg' });

可参考的 HTML 模板:

html
<div id="container"></div>
<script src="https://unpkg.com/@antv/infographic@latest/dist/infographic.min.js"></script>
<script>
 const infographic = new AntVInfographic.Infographic({
    container: '#container',
    width: '100%',
    height: '100%',
  });
  infographic.render(`{syntax}`);
  document.fonts?.ready.then(() => {
    infographic.render(`{syntax}`);
  }).catch((error) => console.error('Error waiting for fonts to load:', error));
</script>
  1. 使用 Write 工具生成 HTML 文件,命名为 <title>-infographic.html

  2. 展示给用户:

    • 生成文件路径,并提示:“直接用浏览器打开即可查看并保存 SVG”
    • 输出语法,并提示:“需要调整模板/配色/内容请告诉我”

**注意:**HTML 文件必须包含:

  • 通过导出按钮实现 SVG 导出
  • 容器自适应,宽高均为 100%

常见问题

Infographic Creator AI 技能有什么作用?

基于给定文字内容创建精美信息图。当用户请求创建信息图时使用。

为什么在 TypingMind 中使用 Infographic Creator?

因为您只需安装一次,就能搭配任何模型使用。Infographic Creator 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Infographic Creator?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/LingyiChen-AI/OpenSkills/tree/main/examples/infographic-skills/infographic-creator。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Infographic Creator?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Infographic Creator 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Infographic Creator 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Infographic Creator AI 技能免费吗?

是的。LingyiChen-AI 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇