Communitygithub.com

Affitor/infographic-skills

從任何內容或資料生成品牌化資訊圖表規格。輸出結構化的版面、文案、資料視覺化與配色方案 —— 準備好以 HTML/CSS、Satori、Canva 或任何設計工具渲染。

infographic-skills 是什麼?

這個技能專為 AI 代理工具(如 Claude Code、Cursor、Codex)設計,能將任何文字內容、資料或主題,自動轉換成完整的品牌化資訊圖表規格。支援 LinkedIn、Instagram、Twitter 等多種平台,並可輸出結構化 JSON 規格或可直接渲染的 HTML/CSS,方便後續在 Satori、Canva、Figma 等工具中處理。其核心工作流程包含內容分析、圖表類型自動偵測(如數據高亮、對比、流程圖)、文案生成、色彩方案設計,以及自我驗證確保可讀性與無障礙性。此外,它與上游的內容研究、病毒貼文撰寫等技能緊密整合,能將資料與貼文內容自動轉化為視覺資產,大幅提升社群媒體互動率。

相容平台✓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:分析內容並選擇類型

閱讀輸入內容並偵測最佳圖表類型:

內容模式自動偵測類型
包含 1-3 個顯著數字/統計stat_highlight
包含 "vs"、比較資料comparison
包含編號步驟或流程process_flow
包含項目清單(3-10 項)checklist 或 feature_grid
包含日期或時間順序事件timeline
包含重要引言quote_card
包含百分比或比例data_chart

如果提供了 infographic_type,則使用該值;否則自動偵測。

步驟 2:提取視覺資料

從內容中,精確提取需要在資訊圖表中出現的內容:

對於 stat_highlight:

stats:
  - number: "30%"        # 大數字
    label: "commission"   # 衡量的內容
    context: "recurring"  # 額外背景
  - number: "60"
    label: "cookie days"
    context: "industry avg: 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

步驟 3:設計版面

根據類型 + 平台,定義版面:

平台尺寸:

平台寬度高度比例
LinkedIn108013504:5 (直向)
Instagram108010801:1 (正方形)
Twitter120067516:9 (橫向)
Facebook1200630~2:1
Blog12008003:2

版面結構(所有類型):

┌─────────────────────────────┐
│         頁首                 │  10-15% 高度
│    標題 / 主標題             │
├─────────────────────────────┤
│                             │
│         主體                 │  70-80% 高度
│    資料 / 內容               │
│    (類型特定版面)            │
│                             │
├─────────────────────────────┤
│         頁尾                 │  10% 高度
│    品牌 / 行動呼籲 / 來源    │
└─────────────────────────────┘

步驟 4:生成配色方案

如果有提供品牌顏色: 直接使用。

如果沒有品牌顏色: 生成專業色盤:

# 預設專業色盤選項
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 → 任何 (最多視覺彈性)

步驟 5:生成所有文案

撰寫資訊圖表中出現的每個文字:

copy:
  headline: string          # 主標題 — 粗體、簡短 (最多 8 個字)
  subheadline: string       # 選用輔助行
  body_items: string[]      # 資料標籤、描述等
  cta: string               # 行動呼籲文字 — "點擊連結

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".

相關技能