Communitygithub.com

Affitor/affiliate-skills

从任何内容或数据生成品牌信息图规范。输出结构化布局、文案、数据可视化和配色方案——可直接渲染为HTML/CSS、Satori、Canva或任何设计工具。

affiliate-skills 是什么?

Infographic Generator 技能能够从任意内容、数据或主题生成完整的信息图规范,输出结构化的布局、文案、数据点和配色方案,支持渲染为 HTML/CSS、Satori(服务端渲染)、Canva、Figma 等主流设计工具。该技能特别适合在创作 LinkedIn 帖子后配图使用,因为带图的帖子互动率可提升 2-3 倍。它支持 stat_highlight、comparison、process_flow 等 9 种信息图类型,可自动检测内容模式并适配 LinkedIn、Instagram、Twitter、Facebook 和博客等平台尺寸。流程包括内容分析、视觉数据提取、布局设计、配色方案生成、文案撰写和输出生成(JSON 规范或自包含 HTML),并内置自我验证步骤确保信息图简洁可读。该技能在 Affitor 生态系统中与 viral-post-writer、content-research-brief 等上游技能协同,同时向下游 social-media-scheduler 等提供内容。

兼容平台✓Claude Code~Codex CLI✓Cursor✓Gemini CLI✓Windsurf
npx skills add https://github.com/Affitor/affiliate-skills/tree/HEAD/skills/content/infographic-generator

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

信息图生成器

从任何内容、数据或主题生成完整的信息图规范。 输出结构化的布局 + 完整文案 + 数据点 + 配色方案——可渲染为 HTML/CSS,配合 Satori(服务端渲染)、Canva、Figma 或任何设计工具。

LinkedIn 带图帖子互动率提升 2-3 倍。 本技能可将您的内容转化为视觉素材,无需设计技能。

灵感来源于 content-pipeline 的 Satori 渲染:AI 撰写内容 → 结构化规范 → 渲染为品牌图像。

阶段

本技能属于 S2 阶段:内容

使用时机

  • 在 viral-post-writer 创建 LinkedIn 帖子之后——配图
  • 在 content-research-brief 收集统计数据之后——将其可视化
  • 创建对比内容时——功能/定价对比图
  • 分享数据或统计时——数据高亮卡片
  • 创建列表型内容时——视觉清单或编号列表
  • 任何需要品牌图像的社交媒体帖子

输入模式

content: string                # (必填) 要可视化的内容——帖子文本、数据或文章
infographic_type: string       # (可选,默认自动检测)
                               # "stat_highlight" — 1-3 个关键数字,大号加粗
                               # "comparison" — 并排产品/功能对比
                               # "process_flow" — 分步流程或操作方法
                               # "checklist" — 带勾选框的项目列表
                               # "timeline" — 按时间顺序的事件
                               # "data_chart" — 条形/饼图表示
                               # "quote_card" — 带出处的精选引用
                               # "feature_grid" — 功能/优势网格(带图标)
platform: string               # (可选,默认 "linkedin")
                               # "linkedin" — 1080×1350(竖版,最佳互动)
                               # "instagram" — 1080×1080(方形)
                               # "twitter" — 1200×675(横版)
                               # "facebook" — 1200×630
                               # "blog" — 1200×800(特色图像)
brand: object                  # (可选) 品牌定制
  name: string                 # 公司/个人品牌名称
  primary_color: string        # 十六进制颜色 — "#0066FF"
  secondary_color: string      # 十六进制颜色 — "#1A1A2E"
  accent_color: string         # 十六进制颜色 — "#FF6B35"
  font_style: string           # "modern" | "classic" | "bold" | "minimal"
  logo_text: string            # 文字标志 — "Affitor" | "@yourhandle"
output_format: string          # (可选,默认 "spec")
                               # "spec" — 结构化 JSON 规范(适用于任何渲染器)
                               # "html" — 可渲染的 HTML/CSS(自包含)
                               # "both" — 规范 + HTML

工作流程

第一步:分析内容并选择类型

读取输入内容,检测最佳信息图类型:

内容模式自动检测类型
包含 1-3 个显著数字/统计stat_highlight
包含 "对比"、对比数据comparison
包含编号步骤或流程process_flow
包含列表项(3-10 个)checklist 或 feature_grid
包含日期或时间顺序事件timeline
包含一个值得注意的引用quote_card
包含百分比或比例data_chart

如果提供了 infographic_type,则使用该类型,否则自动检测。

第二步:提取视觉数据

从内容中提取需要在信息图中呈现的部分:

对于 stat_highlight:

stats:
  - number: "30%"        # 大数字
    label: "佣金"        # 度量内容
    context: "经常性"    # 附加上下文
  - number: "60"
    label: "Cookie 天数"
    context: "行业平均:30 天"

对于 comparison:

items:
  - name: "HeyGen"
    features:
      - label: "佣金"
        value: "30% 经常性"
        highlight: true         # 此行的优胜者
      - label: "Cookie"
        value: "60 天"
        highlight: true
  - name: "Synthesia"
    features:
      - label: "佣金"
        value: "25% 一次性"
        highlight: false
      - label: "Cookie"
        value: "30 天"
        highlight: false

对于 process_flow:

steps:
  - number: 1
    title: "研究"
    description: "寻找获胜项目"
    icon: "🔍"
  - number: 2
    title: "创作"
    description: "撰写能转化的内容"
    icon: "✍️"

对于 checklist:

items:
  - text: "经常性佣金"
    checked: true
  - text: "60+ 天 Cookie"
    checked: true
  - text: "提供免费试用"
    checked: true
  - text: "专属联盟经理"
    checked: false

第三步:设计布局

根据类型 + 平台,定义布局:

平台尺寸:

平台宽度高度宽高比
LinkedIn108013504:5(竖版)
Instagram108010801:1(方形)
Twitter120067516:9(横版)
Facebook1200630~2:1
Blog12008003:2

布局结构(所有类型):

┌─────────────────────────────┐
│         页眉                 │  10-15% 高度
│    标题 / 主题               │
├─────────────────────────────┤
│                             │
│         正文                 │  70-80% 高度
│    数据 / 内容               │
│    (类型特定布局)           │
│                             │
├─────────────────────────────┤
│         页脚                 │  10% 高度
│    品牌 / 行动号召 / 来源      │
└─────────────────────────────┘

第四步:生成配色方案

如果提供了品牌颜色: 直接使用。

如果没有品牌颜色: 生成专业调色板:

# 默认专业调色板选项
palettes:
  dark_modern:       # 深色背景,浅色文字
    bg: "#1A1A2E"
    text: "#FFFFFF"
    accent: "#0066FF"
    secondary: "#16213E"
    
  light_clean:       # 浅色背景,深色文字
    bg: "#FFFFFF"
    text: "#1A1A2E"
    accent: "#0066FF"
    secondary: "#F0F4F8"
    
  warm_bold:         # 暖色调
    bg: "#FFF8F0"
    text: "#2D2D2D"
    accent: "#FF6B35"
    secondary: "#FFE8D6"
    
  dark_gradient:     # 渐变深色
    bg: "linear-gradient(135deg, #1A1A2E, #16213E)"
    text: "#FFFFFF"
    accent: "#00D4AA"
    secondary: "#2A2A4A"

根据平台自动选择:

  • LinkedIn → dark_modern 或 light_clean(专业)
  • Twitter → dark_gradient 或 warm_bold(吸引眼球)
  • Instagram → 任意(视觉灵活性最大)

第五步:生成所有文案

撰写信息图中出现的每一段文本:

copy:
  headline: string          # 主标题——加粗、简短(最多 8 个词)
  subheadline: string       # 可选的辅助行
  body_items: string[]      # 数据标签、描述等
  cta: string               # 行动号召文本——"Link in bio" | "See comments for link"
  footer: string            # 品牌名称或 @handle
  source: string            # "数据来源:openaffiliate.dev" 或出处

文案规则:

  • 标题:3-8 个词,大胆的主张或具体数字
  • 所有文字必须在移动端可读(不能太小)
  • 信息图总字数不超过 50 个词(少即是多)
  • 数据 > 形容词(展示数字,而不是 "惊人的" 或 "难以置信的")

第六步:输出

规范输出(默认):

任何渲染器都能使用的完整结构化规范:

infographic_spec:
  type: string
  platform: string
  dimensions:
    width: number
    height: number
  colors:
    background: string
    text: string
    accent: string
    secondary: string
  layout:
    header: object
    body: object
    footer: object
  data: object              # 类型特定数据(统计、对比项、步骤等)
  copy:
    headline: string
    subheadline: string
    body_items: string[]
    cta: string
    footer: string
    source: string

HTML 输出(如果 output_format 为 "html" 或 "both"):

生成一个内联 CSS 的自包含 HTML 文件,以精确尺寸渲染信息图。可以:

  • 在浏览器中打开并截屏
  • 使用 Satori 或 Puppeteer 服务端渲染
  • 作为设计迭代的起点
<!-- 自包含,无外部依赖 -->
<div style="width: 1080px; height: 1350px; ...">
  <!-- 页眉 -->
  <!-- 正文(类型特定) -->
  <!-- 页脚 -->
</div>

第七步:自我验证

在呈现输出之前,验证以下内容:

  • 信息图总字数 ≤ 50 词
  • 所有文字在 50% 缩放比例下可读(最小有效字号)
  • 颜色对比度符合可访问性(WCAG AA:4.5:1 比例)
  • 数据点准确且有出处
  • 布局不显拥挤——留白是设计的一部分
  • 平台尺寸正确

如果有任何检查失败,在交付前修复。

输出格式

## 信息图:[标题]

### 规范
- **类型:** [stat_highlight]
- **平台:** [LinkedIn] — 1080×1350
- **颜色:** [dark_modern] — bg: #1A1A2E, accent: #0066FF

### 预览(文本表示)

┌─────────────────────────────────┐
│                                 │
│     HeyGen vs Synthesia          │
│     真实对比                     │
│                                 │
│  ┌──────────┐  ┌──────────┐    │
│  │  HeyGen  │  │Synthesia  │    │
│  │          │  │          │    │
│  │ 30% 经常 │  │ 25% 一次 │    │
│  │ 60 天    │  │ 30 天    │    │
│  │ ★ 127    │  │ ★ 84     │    │
│  └──────────┘  └──────────┘    │
│                                 │
│     🏆 优胜者:HeyGen            │
│                                 │
│  ───────────────────────────    │
│  @yourhandle · openaffiliate.dev │
└─────────────────────────────────┘

### 数据

[结构化规范为 YAML 或 JSON]

### HTML(如果请求)

[自包含 HTML/CSS 代码块]

### 下一步
- 将 `viral-post-writer` 中的病毒式帖子发布到 [平台]
- 为其他平台创建变体:`--platform instagram`
- 使用 `content-research-brief` 中的不同数据生成更多信息图

错误处理

  • 内容中无可提取数据: 改为生成 quote_card 或 checklist 类型。备注:"未找到数值数据。已创建 [类型] 信息图。"
  • 信息图数据过多: 选择最有力的 3-5 个数据点。备注:"内容包含 [X] 个数据点。已选择最有力的 [Y] 个以保持视觉清晰。考虑创建多个信息图。"
  • 无品牌颜色: 使用默认调色板。备注:"未指定品牌颜色。正在使用 [调色板名称]。可添加品牌颜色以实现一致的品牌形象。"
  • HTML 输出过于复杂: 简化布局。信息图应简洁——复杂会破坏视觉冲击力。

示例

示例 1: 用户:"为 LinkedIn 制作一个对比 HeyGen 和 Synthesia 的信息图" → 类型:comparison,平台:linkedin(1080×1350) → 提取:两者的佣金、Cookie、评分、价格 → 输出:并排对比卡片,优胜者高亮 → 深色现代调色板,加粗数字

示例 2: 用户:"从我的研究简报中创建一张统计卡片,展示 HeyGen 的关键数据" → 类型:stat_highlight,平台:linkedin → 提取:"$60M 融资","40K 业务","30% 佣金" → 输出:3 个带有标签和上下文的大数字

示例 3: 用户:"将联盟营销漏斗步骤可视化为信息图" → 类型:process_flow,平台:blog(1200×800) → 步骤:研究 → 内容 → 落地页 → 部署 → 跟踪 → 优化 → 输出:带图标和简短描述的横向流程

反馈与问题报告

当此技能产生意外、不完整或不正确的输出时,生成一个 skill_feedback 块(完整模式请参见 shared/references/feedback-protocol.md)。

技能特定失败模式:

  • 内容中无可提取数据: 内容纯叙述性,无统计/数字。报告为 data_quality。
  • HTML 输出渲染不正确: CSS 问题、尺寸错误、文本溢出。报告为 wrong_output,并附上 HTML。
  • 信息图字数过多: >50 词将导致不可读。报告为 wrong_output。

自动检测触发器:

  • infographic_spec.data 少于 2 个数据点
  • 所有文案字段总字数 > 60
  • 尺寸与声明的平台不匹配

报告问题:GitHub Issues | 讨论区

参考

  • shared/references/social-data-providers.md — 信息图内容的数据来源
  • shared/references/platform-rules.md — 平台特定的图片要求
  • shared/references/flywheel-connections.md — 飞轮连接主图
  • shared/references/feedback-protocol.md — 问题检测与报告标准

飞轮连接

输入到

  • social-media-scheduler (S5) — 信息图就绪,可随帖子安排
  • landing-page-creator (S4) — 作为英雄图或章节视觉的信息图
  • email-drip-sequence (S5) — 作为邮件视觉内容的信息图
  • bio-link-deployer (S5) — 链接中心的信息图

由以下提供

  • content-research-brief (S2) — 用于可视化的关键统计和数据
  • viral-post-writer (S2) — 创建配套视觉的帖子内容
  • affiliate-blog-builder (S3) — 用于特色图片信息图的博客数据
  • trending-content-scout (S1) — 用于基准可视化的互动数据
  • traffic-analyzer (S1) — 用于对比信息图的流量数据
  • comparison-post-writer (S3) — 用于视觉格式的对比数据
  • commission-calculator (S1) — 用于统计高亮的佣金数据

反馈循环

  • 带信息图的 S6 帖子 vs 不带信息图的帖子 → 性能数据反馈回 trending-content-scout 以在 S1 进行类型/平台优化

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

Affitor/affiliate-skills

Write paid ad copy for affiliate offers across ad platforms. Triggers on: "write ad copy", "Facebook ad for affiliate", "Google Ads copy", "TikTok ad script", "Pinterest ad", "paid traffic to affiliate", "create ad campaign", "ad headlines", "ad descriptions", "scale with paid ads", "run ads for my affiliate link", "write Facebook ad", "Google Search ad copy".

Affitor/affiliate-skills

Take 1 blog post or article and generate 15-30 platform-native micro-content pieces. Not reformatting — re-contextualizing for each platform's culture. Triggers on: "atomize this content", "repurpose my blog post", "turn this into social posts", "content atomizer", "pillar content", "one to many content", "repurpose content", "multiply my content", "content explosion", "turn article into posts", "break down this article", "micro content from blog", "content pillar strategy", "10x my content", "platform-native content", "atomize", "content multiplication".

Affitor/affiliate-skills

Write short-form video scripts for TikTok, Instagram Reels, and YouTube Shorts that promote affiliate products with strong hooks, demos, and CTAs. Use this skill when the user asks about TikTok scripts, Reels scripts, Shorts scripts, short-form video for affiliate marketing, or says "write a TikTok for X", "script a Reel promoting X", "YouTube Shorts script affiliate", "60-second video script", "hook for TikTok affiliate", "write a video promoting X", "TikTok script that converts", "short video script for product review", "viral TikTok affiliate script", "how to promote X on TikTok".

Affitor/affiliate-skills

Create a Linktree-style bio link hub page as a single self-contained HTML file. Triggers on: "create a bio link page", "make a linktree", "link in bio page", "bio link", "link hub", "create my link page", "all my links on one page", "linktree alternative", "build a link page", "bio page for my affiliate links", "I need a link in bio", "make a page with all my links", "link aggregator page".

相关技能