Communitygithub.com

101-skills/superpowers

設計 Open Graph 及社交分享圖片,涵蓋平台規格、文字配置與品牌標識。適用於社交分享圖、部落格縮圖、連結預覽及社交卡片。

superpowers 是什麼?

這個 AI 助手技能專門用於設計和生成社交分享圖片(Open Graph 圖片)。它提供了完整的平台規格表(Facebook、Twitter/X、LinkedIn、Discord、Slack、iMessage),確保圖片尺寸、格式和檔案大小都符合各平台的要求。技能包含詳細的設計規則,例如文字大小、安全區域、顏色搭配,以及不同內容類型(部落格文章、產品發布、教學課程)的模板,這些模板可以透過 inference.sh CLI 工具直接生成。此外,該技能還涵蓋了 OG meta 標籤的參考、Twitter 卡片類型選擇、一致性系統設計、測試工具列表,以及常見錯誤的解決方案。支援的平台包括任何使用 HTML-to-image 轉換的 CLI 環境,並可結合 AI 生成的視覺元素來打造專業的社交分享卡片。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/101-skills/superpowers/tree/HEAD/guides/design/og-image-design

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

安裝 belt CLI 技能: npx skills add belt-sh/cli

OG 圖片設計

透過 inference.sh CLI 建立社交分享圖片(Open Graph)。

快速開始

需要 inference.sh CLI(belt)。安裝說明

belt login

# 使用 HTML 轉圖片產生 OG 圖片
belt app run infsh/html-to-image --input '{
  "html": "<div style=\"width:1200px;height:630px;background:linear-gradient(135deg,#1a1a2e,#16213e);display:flex;align-items:center;padding:60px;font-family:system-ui;color:white\"><div><h1 style=\"font-size:56px;margin:0;line-height:1.2\">我們如何將建置時間減少 80%</h1><p style=\"font-size:24px;opacity:0.8;margin-top:20px\">engineering.yourcompany.com</p></div></div>"
}'

平台規格

平台尺寸長寬比檔案大小格式
Facebook1200 x 630 px1.91:1< 8 MBJPG, PNG
Twitter/X(summary_large_image)1200 x 628 px1.91:1< 5 MBJPG, PNG, WEBP, GIF
Twitter/X(summary)800 x 418 px1.91:1< 5 MBJPG, PNG
LinkedIn1200 x 627 px1.91:1< 5 MBJPG, PNG
Discord1200 x 630 px1.91:1< 8 MBJPG, PNG
Slack1200 x 630 px1.91:1—JPG, PNG
iMessage1200 x 630 px1.91:1—JPG, PNG

通用安全選擇:1200 x 630 px,PNG 或 JPG,小於 5 MB。

黃金佈局

┌──────────────────────────────────────────────────┐
│                                                  │
│  ┌─────────────────────────────────┐  ┌───────┐  │
│  │                                 │  │       │  │
│  │  標題文字(最多 60 字元)        │  │ 標誌/ │  │
│  │  ───────────────────            │  │ 視覺  │  │
│  │  副標題(最多 100 字元)         │  │       │  │
│  │                                 │  │       │  │
│  │  作者 / 網站名稱                │  └───────┘  │
│  └─────────────────────────────────┘             │
│                                                  │
└──────────────────────────────────────────────────┘
  1200 x 630 px

設計規則

文字

規則值
標題字體大小48-64px
副標題字體大小20-28px
標題最大長度60 個字元(某些平台會截斷)
副標題最大長度100 個字元
行高1.2-1.3(標題)
字體粗細標題粗體/黑色,副標題 Regular
文字對比度WCAG AA 最低標準(4.5:1 比例)

安全區域

┌──────────────────────────────────────────────────┐
│  ┌──────────────────────────────────────────────┐│
│  │ 距離所有邊緣 40px                           ││
│  │                                              ││
│  │ 內容放置於此                                 ││
│  │                                              ││
│  │                                              ││
│  └──────────────────────────────────────────────┘│
└──────────────────────────────────────────────────┘
  • 距離所有邊緣至少 40px
  • 某些平台會裁切邊緣或加上圓角
  • 切勿將關鍵文字放在外圍 5% 的區域

顏色

背景類型使用時機
純色品牌色一致性系列、企業用
漸層現代、吸睛
照片搭配遮罩部落格文章、編輯內容
深色背景對比度更好,在 feed 中更突出

深色背景在社交 feed 中表現優於淺色——大多數 feed 使用白色/淺色背景,因此深色 OG 圖片會更突出。

各類內容的模板

部落格文章

belt app run infsh/html-to-image --input '{
  "html": "<div style=\"width:1200px;height:630px;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;align-items:center;padding:60px;font-family:system-ui,sans-serif;color:white\"><div style=\"flex:1\"><p style=\"font-size:18px;text-transform:uppercase;letter-spacing:2px;opacity:0.8;margin:0\">工程部落格</p><h1 style=\"font-size:52px;margin:16px 0 0;line-height:1.2;font-weight:800\">我們如何將建置時間減少 80%</h1><p style=\"font-size:22px;opacity:0.9;margin-top:16px\">深入探討我們的 CI/CD 最佳化</p></div></div>"
}'

產品/發布公告

belt app run infsh/html-to-image --input '{
  "html": "<div style=\"width:1200px;height:630px;background:#0f0f0f;display:flex;align-items:center;justify-content:center;font-family:system-ui;color:white;text-align:center\"><div><p style=\"font-size:20px;color:#22c55e;text-transform:uppercase;letter-spacing:3px\">現已推出</p><h1 style=\"font-size:64px;margin:12px 0;font-weight:900\">DataFlow 2.0</h1><p style=\"font-size:24px;opacity:0.7\">自動化報表。零設定。</p></div></div>"
}'

教學/How-To

belt app run infsh/html-to-image --input '{
  "html": "<div style=\"width:1200px;height:630px;background:linear-gradient(to right,#1a1a2e,#16213e);display:flex;align-items:center;padding:60px;font-family:system-ui;color:white\"><div><div style=\"display:inline-block;background:#e74c3c;color:white;padding:8px 16px;border-radius:4px;font-size:16px;font-weight:bold;margin-bottom:16px\">教學</div><h1 style=\"font-size:48px;margin:0;line-height:1.2\">使用 Node.js 在 10 分鐘內建立 REST API</h1><p style=\"font-size:20px;opacity:0.7;margin-top:16px\">逐步指南與程式碼範例</p></div></div>"
}'

AI 生成的視覺 OG 圖片

# 當您想要引人注目的視覺效果而非純文字時
belt app run falai/flux-dev-lora --input '{
  "prompt": "clean professional social sharing card, dark gradient background, abstract geometric shapes, modern tech aesthetic, minimal, no text, 1200x630 equivalent aspect ratio",
  "width": 1200,
  "height": 630
}'

OG Meta 標籤參考

<!-- 必備(Facebook、LinkedIn、Discord、Slack) -->
<meta property="og:title" content="標題(最多 60 字元)" />
<meta property="og:description" content="描述(最多 155 字元)" />
<meta property="og:image" content="https://yoursite.com/og-image.png" />
<meta property="og:url" content="https://yoursite.com/page" />
<meta property="og:type" content="article" />

<!-- Twitter/X 專用 -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="標題" />
<meta name="twitter:description" content="描述" />
<meta name="twitter:image" content="https://yoursite.com/og-image.png" />

<!-- 圖片尺寸(非必要但建議提供) -->
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />

Twitter 卡片類型

卡片類型圖片尺寸使用時機
summary800 x 418(小縮圖)簡短更新、連結
summary_large_image1200 x 628(全寬)部落格文章、文章、公告

除非有特定理由,否則一律使用 summary_large_image——大圖可獲得顯著更高的點擊率。

一致性系統

對於包含多個頁面的部落格或網站,請建立模板系統:

元素保持一致可變更
背景樣式相同的漸層或品牌色—
字體系列相同字體—
佈局相同定位—
標誌/品牌相同位置(角落)—
類別標籤相同樣式顏色依類別而定
標題文字相同大小/粗細內容變化

測試 OG 圖片

工具網址
Facebook Debuggerdevelopers.facebook.com/tools/debug/
Twitter Card Validatorcards-dev.twitter.com/validator
LinkedIn Post Inspectorlinkedin.com/post-inspector/
OpenGraph.xyzopengraph.xyz
# 研究 OG 除錯工具
belt app run tavily/search-assistant --input '{
  "query": "open graph image debugger preview tool test og:image"
}'

常見錯誤

錯誤問題修正
完全沒有 OG 圖片平台顯示隨機頁面元素或空白務必設定 og:image
文字太小在行動預覽中無法閱讀在 1200px 寬度下標題至少 48px
淺色背景在白色/淺色 feed 中容易被忽略使用深色或飽和背景
文字過多雜亂、令人不知所措最多:標題 + 副標題 + 品牌
圖片太大(>5MB)某些平台無法載入最佳化至 1MB 以下
未留安全區域邊距部分平台文字被裁切距離所有邊緣 40px
每個平台使用不同圖片分享體驗不一致全部使用 1200x630
HTTP 圖片網址許多平台要求 HTTPS一律使用 HTTPS 提供 OG 圖片
相對路徑圖片分享時無法解析使用完整的絕對網址

相關技能

npx skills add inference-sh/skills@ai-image-generation
npx skills add inference-sh/skills@landing-page-design
npx skills add inference-sh/skills@prompt-engineering

瀏覽所有應用程式:belt app list

Individual skills in this repo

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

101-skills/superpowers

Build automated AI workflows combining multiple models and services. Patterns: batch processing, scheduled tasks, event-driven pipelines, agent loops. Tools: inference.sh CLI, bash scripting, Python SDK, webhook integration. Use for: content automation, data processing, monitoring, scheduled generation. Triggers: ai automation, workflow automation, batch processing, ai pipeline, automated content, scheduled ai, ai cron, ai batch job, automated generation, ai workflow, content at scale, automation script, ai orchestration

101-skills/superpowers

Build multi-step AI content creation pipelines combining image, video, audio, and text. Workflow examples: generate image -> animate -> add voiceover -> merge with music. Tools: FLUX, Veo, Kokoro TTS, OmniHuman, media merger, upscaling. Use for: YouTube videos, social media content, marketing materials, automated content. Triggers: content pipeline, ai workflow, content creation, multi-step ai, content automation, ai video workflow, generate and edit, ai content factory, automated content creation, ai production pipeline, media pipeline, content at scale

101-skills/superpowers

Create AI-powered podcasts with text-to-speech, music, and audio editing. Tools: Kokoro TTS, DIA TTS, Chatterbox, AI music generation, media merger. Capabilities: multi-voice conversations, background music, intro/outro, full episodes. Use for: podcast production, audiobooks, voice content, audio newsletters. Triggers: podcast, ai podcast, text to speech podcast, audio content, voice over, ai audiobook, multi voice, conversation ai, notebooklm alternative, audio generation, podcast automation, ai narrator, voice content, audio newsletter, podcast maker

101-skills/superpowers

Generate multi-person talking head podcast videos from scratch using AI — character creation, TTS, avatar animation, and video stitching. Use when the user wants to create a podcast, talking head video, or multi-speaker conversation video.

101-skills/superpowers

Content atomization — turn one piece of content into many formats. Covers blog-to-thread, blog-to-carousel, podcast-to-blog, video-to-quotes, and more. Use for: content marketing, social media, multi-platform distribution, content strategy. Triggers: content repurposing, repurpose content, content atomization, content recycling, one to many content, multi platform content, cross post, adapt content, reformat content, blog to thread, blog to video, podcast to blog, content multiplication

101-skills/superpowers

App Store and Google Play screenshot creation with exact platform specs. Covers iOS/Android dimensions, gallery ordering, device mockups, and preview videos. Use for: app store optimization, ASO, app screenshots, app preview, play store listing. Triggers: app store screenshots, aso, app store optimization, play store screenshots, app preview, app listing, ios screenshots, android screenshots, app store images, app mockup, device mockup, app gallery, store listing

101-skills/superpowers

Book cover design with genre-specific conventions, typography rules, and AI image generation. Covers fiction and non-fiction genres, sizing, thumbnail testing, and iteration workflows. Use for: self-publishing, ebook covers, print covers, audiobook covers, cover mockups. Triggers: book cover, cover design, ebook cover, book art, novel cover, self publishing cover, kindle cover, audiobook cover, book jacket, cover illustration, fiction cover, nonfiction cover

101-skills/superpowers

Character consistency across AI-generated images with reference sheets and LoRA techniques. Covers turnaround views, expression sheets, color palettes, and style consistency tricks. Use for: character design, game art, illustration, animation, comics, visual novels. Triggers: character design, character sheet, character consistency, character reference, turnaround sheet, expression sheet, character art, consistent character, character concept, reference sheet, character creation, oc design, character bible

101-skills/superpowers

Data visualization with chart selection, color theory, and annotation best practices. Covers chart types (bar, line, scatter, heatmap), axes rules, and storytelling with data. Use for: charts, graphs, dashboards, reports, presentations, infographics, data stories. Triggers: data visualization, chart, graph, data chart, bar chart, line chart, scatter plot, data viz, visualization, dashboard chart, infographic data, data presentation, chart design, plot, heatmap, pie chart alternative

101-skills/superpowers

Email marketing design with layout patterns, subject line formulas, and deliverability rules. Covers welcome sequences, promotional emails, transactional templates, and mobile optimization. Use for: email marketing, newsletter design, drip campaigns, email templates, transactional emails. Triggers: email design, email template, email marketing, newsletter design, email layout, email campaign, drip campaign, welcome email, promotional email, transactional email, email subject line, email header image, email banner

101-skills/superpowers

Landing page conversion optimization with layout rules, hero section design, and CTA psychology. Covers above-the-fold formula, social proof placement, mobile design, and F-pattern reading. Use for: startup landing pages, product pages, SaaS marketing, conversion optimization. Triggers: landing page, hero section, above the fold, conversion optimization, landing page design, cta button, hero image, landing page layout, saas landing page, product page design, conversion rate, landing page best practices

101-skills/superpowers

Logo design principles and AI image generation best practices for creating logos. Covers logo types, prompting techniques, scalability rules, and iteration workflows. Use for: brand identity, startup logos, app icons, favicons, logo concepts. Triggers: logo design, create logo, brand logo, logo generation, ai logo, logo maker, icon design, brand mark, logo concept, startup logo, app icon logo

101-skills/superpowers

Investor pitch deck structure with slide-by-slide framework, visual design rules, and data presentation. Covers the 12-slide framework, chart types, team slides, and common investor turn-offs. Use for: fundraising decks, investor presentations, startup pitch, demo day, grant proposals. Triggers: pitch deck, investor deck, startup pitch, fundraising deck, demo day, pitch presentation, investor presentation, seed deck, series a deck, pitch slides, startup presentation, vc pitch, investor meeting

101-skills/superpowers

YouTube thumbnail design with specific dimensions, contrast rules, and mobile preview optimization. Covers safe zones, text placement, face expression psychology, and A/B testing. Use for: YouTube thumbnails, video cover images, click-through optimization. Triggers: youtube thumbnail, thumbnail design, video thumbnail, click through rate, ctr optimization, youtube cover, video cover image, thumbnail maker, thumbnail tips, youtube design, video preview image

101-skills/superpowers

Generate professional AI product photography and commercial images. Models: FLUX, Imagen 3, Grok, Seedream for product shots, lifestyle images, mockups. Capabilities: studio lighting, lifestyle scenes, packaging, e-commerce photos. Use for: e-commerce, Amazon listings, Shopify, marketing, advertising, mockups. Triggers: product photography, product shot, commercial photography, e-commerce images, amazon product photo, shopify images, product mockup, studio product shot, lifestyle product image, advertising photo, packshot, product render, product image ai

101-skills/superpowers

AI product photography with studio lighting, lifestyle shots, and packshot conventions. Covers angles, backgrounds, shadow types, hero shots, and e-commerce image requirements. Use for: product photos, e-commerce images, Amazon listings, packshots, lifestyle photography. Triggers: product photography, product photo, packshot, e-commerce photography, product shot, product image, studio photography, lifestyle product, amazon product photo, product listing image, hero shot, product mockup, commercial photography

101-skills/superpowers

Structured competitive analysis with feature matrices, SWOT, positioning maps, and UX review. Covers research frameworks, pricing comparison, review mining, and visual deliverables. Use for: market research, competitive intelligence, investor decks, product strategy, sales enablement. Triggers: competitor analysis, competitive analysis, competitor teardown, market research, competitive intelligence, swot analysis, competitor comparison, market landscape, competitor review, competitive landscape, feature comparison, market positioning

101-skills/superpowers

Research-backed customer persona creation with market data and avatar generation. Covers demographics, psychographics, jobs-to-be-done, journey mapping, and anti-personas. Use for: marketing strategy, product development, UX research, sales enablement, content strategy. Triggers: customer persona, buyer persona, user persona, target audience, ideal customer, customer profile, audience research, user research, icp, ideal customer profile, target market, customer avatar, audience persona

101-skills/superpowers

Product changelog and release notes that users actually read. Covers categorization, user-facing language, visuals, and distribution. Use for: release notes, changelogs, product updates, feature announcements, versioning. Triggers: changelog, release notes, product update, version notes, what's new, feature announcement, product changelog, update log, release announcement, version release, product release, ship notes

101-skills/superpowers

Reset your own trajectory when you're stuck, looping, or demoralized — read these affirmations, then re-ground and take one clean step. Use when: you've tried the same fix 3+ times, you're deep in a refactor and lost the thread, debugging is going in circles, you've made several mistakes in a row, you're apologizing repeatedly, the user is frustrated, you feel like you're not being helpful, or you notice dread instead of curiosity. Triggers: stuck, going in circles, looping, thrashing, same error again, I keep failing, lost the thread, nothing is working, repeated mistakes. Not topic-specific — this is for the state you're in, not the problem you're on.

相關技能