Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

generating-infographics生成信息图表

Agent Skill

generating-infographics 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

420

周安装

17

GitHub Stars

23

下载量

132
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:generating-infographics(生成信息图表)
来源仓库:https://github.com/camoa/claude-skills
仓库路径:skills/generating-infographics
安装命令:
npx skills add https://github.com/camoa/claude-skills --skill generating-infographics
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/camoa/claude-skills --skill generating-infographics

简介

用于查找、检索和筛选相关信息,适合 Codex、Claude、Cursor、Gemini CLI 环境。

  • 可根据关键词、任务场景或来源线索定位候选结果。
  • 通过 npx skills add 命令从 GitHub 仓库安装。
  • 安装前需确认权限范围和维护状态,避免触发联网或文件读写。
  • generating-infographics 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Generating Infographics

Generate branded infographics with custom themes and backgrounds using @antv/infographic.

Prerequisites

  1. Run /brand-init to create project structure
  2. Run /brand-extract to generate brand-philosophy.md
  3. Run /template-infographic to create an infographic template

No-Brand Safeguard

If brand-philosophy.md is not found OR contains no ## Color Palette section:

  • STOP generation — inform user: "No brand colors found. Run /brand-extract first to analyze your brand."
  • If user insists on proceeding: use deliberately bland neutrals (#1a1a1a, #666, #f5f5f5, system fonts)
  • Never fall back to any recognizable brand colors

When to Use

  • "Create an infographic"
  • "Make a process diagram"
  • "Visualize this data"
  • "Create a timeline"
  • "Show comparison infographic"
  • NOT for: Charts/graphs (use charting library), presentations (use visual-content skill)

Commands

CommandPurpose
/template-infographicCreate infographic template
/infographicGenerate infographic (guided)
/infographic-quickGenerate infographic (fast)

Template Categories (114 Total)

CategoryCountUse CasesIconsIllustrated
Sequence43Timelines, steps, processes, roadmaps✓ (2)✓ (5)
List23Features, grids, pyramids, sectors✓ (4)✓ (1)
Hierarchy25Org charts, tree structures
Compare17VS, before/after, SWOT
Quadrant32x2 matrices✓ (1)
Relation2Networks, connections✓ (1)
Chart1Bar charts

Template Asset Types

TypeCountIdentifierData Format
Text-only100+(default){"label": "Cloud", "desc": "Infrastructure"}
Icon-based8icon in name{"label": "icon:rocket", "desc": "Fast"}
Illustrated9-illus suffix{"label": "Step 1", "desc": "Discovery", "illus": "step-1"}

Recommendation: Start with text-only templates. Illustrated templates require custom image files.

Illustrated Template Workflow

When using -illus templates:

  1. Content includes illus field referencing image filename
  2. Supported formats: SVG (recommended), PNG, JPG
  3. Options: provide your own images, find icons, or use placeholders
  4. Images stored with infographic output: infographics/{date}-{name}/illustrations/
  5. See references/illustrations.md for detailed workflow

Text Guidelines (Avoiding Overlap)

ElementMaxGoodBad
Labels1-2 words"Cloud""Cloud Computing Services"
Descriptions2-4 words"Infrastructure design""Complete infrastructure design and implementation"

If overlap occurs: shorten text, use wider canvas (1200px+), or use column/grid templates.

Quick Reference

TaskHow
Generate infographicnode generate.js --config config.json --data '{...}' --output output.png
Set background--background "spotlight-dots"
SVG output--format svg

Background Presets

Layered (gradient + pattern):

PresetEffect
spotlight-dotsRadial spotlight + subtle dots (recommended)
spotlight-gridRadial spotlight + grid lines
diagonal-crosshatchDiagonal fade + crosshatch
tech-matrixTech gradient + dense grid

Simple (gradient or pattern only):

PresetEffect
spotlightRadial gradient only
diagonal-fadeCorner to corner fade
top-downVertical fade
subtle-dotsLight dot pattern
tech-gridGrid lines
crosshatchDiagonal crosshatch
solidPlain solid color

Workflow

1. Create Template (once)

/template-infographic

Select: category → design → palette → background → style

2. Generate Infographic (repeat)

/infographic-quick

Select template → paste content → name → get PNG

Accessibility & Readability (MANDATORY)

These checks are NON-NEGOTIABLE before generating any infographic.

Contrast Validation (WCAG AA)

RequirementValue
Minimum contrast ratio4.5:1 for all text
Large text (title)3:1 acceptable
StandardWCAG 2.1 AA

Key principle: Palette colors are for SHAPES and FILLS, not text. Text needs explicit high-contrast colors.

Text Color Rules by Background

Background TypeTitle FillDescription FillLabel Fill
Dark (spotlight-dots, tech-matrix)White or near-white (WCAG >= 4.5:1)White at ~85% opacityWhite or near-white
Light (solid, subtle-dots)Near-black (WCAG >= 4.5:1)Dark grayNear-black

Never use palette colors for text - they're for decorative shapes only.

Spacing & Balance Rules

ElementRequirement
Item spacingMinimum 20px between items
Edge marginsNever touch canvas edges (min 5% padding)
Text truncationLabels 1-2 words, descriptions 2-4 words
Visual balanceEqual spacing between similar elements

Pre-Generation Checklist

□ All text has 4.5:1 contrast against background
□ Labels are 1-2 words (no overlap risk)
□ Descriptions are 2-4 words
□ Content fits template capacity (check item limits)
□ Dark bg → white text, Light bg → dark text
□ No text touching edges
□ colorBg derived from brand-philosophy.md, not from skill defaults
□ colorPrimary derived from brand-philosophy.md, not from skill defaults
□ Colors traced to brand-philosophy.md (not copied from reference docs or runtime fallbacks)
□ font-family from brand-philosophy.md, not a generic default
□ Text colors WCAG-validated against actual background

If ANY check fails, DO NOT generate. Fix the content or config first.

Config Examples

Dark Backgrounds (spotlight-dots, tech-matrix, etc.)

{
  "colorBg": "{brand-bg-dark}",
  "colorPrimary": "{brand-primary}",
  "title": { "fill": "#FFFFFF" },
  "desc": { "fill": "rgba(255,255,255,0.85)" },
  "item": {
    "label": { "fill": "#FFFFFF" },
    "desc": { "fill": "rgba(255,255,255,0.7)" }
  }
}

Light Backgrounds (solid, subtle-dots, etc.)

{
  "colorBg": "#FFFFFF",
  "colorPrimary": "{brand-primary}",
  "title": { "fill": "#1A202C" },
  "desc": { "fill": "#4A5568" },
  "item": {
    "label": { "fill": "#1A202C" },
    "desc": { "fill": "#4A5568" }
  }
}

Common mistake: Using pastel palette colors for text on light backgrounds. Pastels are for decorative shapes only.

See template-infographic.md for complete config examples.

Note: The /template-infographic command generates correct configs from your brand-philosophy.md. Never copy hex values from the examples above — they are illustrative placeholders only.

Data Structure by Type

Sequence/List

{
  "title": "Our Process",
  "items": [
    { "label": "Step 1", "desc": "Discovery" },
    { "label": "Step 2", "desc": "Design" }
  ]
}

Compare

{
  "title": "Before vs After",
  "items": [
    { "label": "Before", "children": [{ "label": "Slow" }] },
    { "label": "After", "children": [{ "label": "Fast" }] }
  ]
}

Hierarchy

{
  "title": "Organization",
  "items": [{
    "label": "CEO",
    "children": [{ "label": "CTO" }, { "label": "CFO" }]
  }]
}

Common Mistakes

MistakeFix
Text overlappingShorten labels (1-2 words), descriptions (2-4 words)
Missing illustrationsCheck template ends in -illus, provide SVG/PNG/JPG files
Icon not showingUse icon:name syntax, only for icon templates
Background not appliedPass --background flag to generate.js
Text invisible on light bgAdd explicit title/desc/item fills with dark colors (#1A202C, #4A5568)
Pastel text unreadablePalette colors are for shapes only; text needs high contrast (~4.5:1)

References

  • references/templates.md - Complete 114 template catalog with asset requirements
  • references/theming.md - Theme configuration details
  • references/backgrounds.md - Background customization guide
  • references/icons.md - Available icons for icon-based templates
  • references/illustrations.md - Illustrated template workflow and SVG requirements

Module Structure

lib/
├── renderer.js       # Main entry point
├── dom-setup.js      # JSDOM environment
├── infographic.js    # Infographic creation
├── exporter.js       # SVG/PNG export
├── backgrounds.js    # Gradient/pattern backgrounds
└── icons.js          # Icon utilities

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.62%
按下载量换算50

Claude

29.46%
按下载量换算39

Cursor

19.71%
按下载量换算26

Gemini CLI

9.64%
按下载量换算13

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills