跳至正文
OpenAgentSkill
浏览已开放 · 目录记录日期 2026-11-21 · 自动更新和账户服务暂时关闭。
搜索与研究

infographize

Convert markdown documents into AntV infographic SVGs. Analyzes content structure, selects optimal template, generates AntV syntax, and renders to SVG. Use when user wants to create infographics, visual summaries, or storytelling visuals from markdown.

digital-stoic-org · 已有 AI 审核记录

安装与使用

运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。

npx skills add digital-stoic-org/agent-skills --skill infographize

技能说明


name: infographize description: Convert markdown documents into AntV infographic SVGs. Analyzes content structure, selects optimal template, generates AntV syntax, and renders to SVG. Use when user wants to create infographics, visual summaries, or storytelling visuals from markdown. tools: Bash, Read, Write model: sonnet

Infographize

Convert any markdown document into a visual infographic SVG via AntV Infographic SSR.

Workflow

  1. Dependency check: Run bun run -e "import '@antv/infographic'" 2>/dev/null. If it fails, install via install-dependency skill (@antv/infographic, bun package) before proceeding
  2. Read the source markdown file
  3. Read <skill_dir>/reference.md for template catalog and data field mappings
  4. Analyze content structure — identify the dominant information type:
    • Bullet lists, features, options → list-*
    • Numbered steps, processes, timelines → sequence-*
    • Pros/cons, A vs B, SWOT → compare-*
    • Nested structure, org chart, taxonomy → hierarchy-*
    • Connected items, network, dependencies → relation-*
    • Numeric data, percentages, stats → chart-*
  5. Select the best template from the catalog (match content pattern to template's "best for")
  6. Map markdown content → AntV syntax using the correct data fields for that category
  7. Write the AntV syntax to a .txt file next to the output path
  8. Render by calling: bun run <skill_dir>/scripts/render.ts <syntax-file> <output.svg> --preview

Output

  • Default output: same directory as input, same basename with .svg extension
  • User can specify a custom output path as second argument

Content Mapping Rules

  • Be concise: Infographics are visual-first. Distill prose into short labels (3-7 words) and brief descriptions (1 sentence max)
  • 60/40 rule: Favor graphics over text. Cut detail that doesn't serve the visual narrative
  • One idea per infographic: If the markdown covers multiple distinct topics, pick the primary one or ask the user
  • Preserve hierarchy: Map heading levels to visual hierarchy (title → section → item)
  • Extract data: Pull numbers, percentages, counts into value fields when available

Theme

Default: light. User can request dark, hand-drawn, or custom colors — see reference.md for themeConfig options.