Open Graph Optimizer

Open graph

by kostja94 · MIT license · ★ 1,006 on GitHub

Open graph cover

When the user wants to add or optimize Open Graph metadata for social sharing. Also use when the user mentions "Open Graph," "og:tags," "og:title," "og:image," "og:description," "Facebook preview," "LinkedIn preview," or "social share…

---
name: open-graph
description: When the user wants to add or optimize Open Graph metadata for social sharing. Also use when the user mentions "Open Graph," "og:tags," "og:title," "og:image," "og:description," "Facebook preview," "LinkedIn preview," or "social share preview." For X (Twitter) link previews, use twitter-cards. For SERP title/description, use title-tag and meta-description.
metadata:
  version: 1.1.0
---

# SEO On-Page: Open Graph

Guides implementation of Open Graph meta tags for social media previews (Facebook, LinkedIn, Slack, Discord, etc.). Pages with proper OG tags get 2–3× more clicks than bare URL links.

**When invoking**: On **first use**, if helpful, open with 1–2 sentences on what this skill covers and why it matters, then provide the main output. On **subsequent use** or when the user asks to skip, go directly to the main output.

## Scope (Social Sharing)

- **Open Graph**: Facebook-originated protocol; controls preview card when links are shared on social platforms

## The 4 Essential Tags

Overview

Guides implementation of Open Graph meta tags for social media previews (Facebook, LinkedIn, Slack, Discord, etc.). Pages with proper OG tags get 2–3× more clicks than bare URL links.

Manual install (npx, ZIP)
Claude Codenpx skills add kostja94/marketing-skills --skill open-graph -g -a claude-code
Claude Code (degit)npx degit kostja94/marketing-skills/skills/seo/on-page/open-graph#main ~/.claude/skills/open-graph
Claude.ai / desktopZip the folder and upload it under Settings → Capabilities → Skills.
Codex, Cursor, other agentsPoint them at SKILL.md. The other files are plain text.

Connects with Agent Alley MCP · agentalley.io/mcp

Files included

  • SKILL.md4.4 KB
Read SKILL.md here
kostja94/main1 file shown
SKILL.md
Show the full text109 lines

SEO On-Page: Open Graph

Guides implementation of Open Graph meta tags for social media previews (Facebook, LinkedIn, Slack, Discord, etc.). Pages with proper OG tags get 2–3× more clicks than bare URL links.

When invoking: On first use, if helpful, open with 1–2 sentences on what this skill covers and why it matters, then provide the main output. On subsequent use or when the user asks to skip, go directly to the main output.

Scope (Social Sharing)

  • Open Graph: Facebook-originated protocol; controls preview card when links are shared on social platforms

The 4 Essential Tags

Every shareable page requires these minimum tags:

<meta property="og:title" content="Your Page Title">
<meta property="og:description" content="Your description">
<meta property="og:image" content="https://yourdomain.com/image.png">
<meta property="og:url" content="https://yourdomain.com/page">
Tag Guideline
og:title Keep under 60 chars; compelling; match page content
og:description 150–200 chars; conversion-focused
og:image Absolute URL (https://); 1200×630px recommended
og:url Canonical URL; deduplicates shares
Tag Purpose
og:type Content type: website, article, video, product
og:site_name Website name; displayed separately from title
og:image:width / og:image:height Image dimensions (1200×630px)
og:image:alt Alt text for accessibility
og:locale Language/territory (e.g., en_US); for multilingual sites

Image Best Practices

Item Guideline
Size 1200×630px (1.91:1 ratio) for Facebook, LinkedIn, WhatsApp
Format JPG, PNG, WebP; under 5MB
URL Absolute URL with https://; no relative paths
Unique One unique image per page when possible

Common Mistakes

  • Using relative image URLs instead of absolute https://
  • Images too small or wrong aspect ratio
  • Empty or placeholder values
  • Missing og:url (canonical)

Implementation

Next.js (App Router)
export const metadata = {
  openGraph: {
    title: '...',
    description: '...',
    url: 'https://example.com/page',
    siteName: 'Example',
    images: [{ url: 'https://example.com/og.jpg', width: 1200, height: 630, alt: '...' }],
    locale: 'en_US',
    type: 'website',
  },
};
HTML (generic)
<meta property="og:title" content="Your Title">
<meta property="og:description" content="Your description">
<meta property="og:image" content="https://example.com/og.jpg">
<meta property="og:url" content="https://example.com/page">
<meta property="og:type" content="website">
<meta property="og:site_name" content="Your Site">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content="Alt text">

Testing

  • social-share-generator: Share buttons use OG tags for rich previews when users share; OG must be set for share buttons to show proper cards
  • article-page-generator: Use og:type article for article/post pages; article-specific tags (published_time, author)
  • page-metadata: Hreflang, other meta tags
  • title-tag: Title tag often mirrors og:title
  • meta-description: Meta description often mirrors og:description
  • twitter-cards: Twitter uses OG as fallback; add Twitter-specific tags for best results
  • canonical-tag: og:url should match canonical URL
  • og-image-generator: Programmatic OG image generation — 6 visual styles (Terminal/CLI, Magazine Editorial, Swiss Minimal, Pixel Retro, Brutalist, Newspaper), Satori+resvg, Puppeteer, AI image generation tools, and Agent-Native content-aware workflow. This skill covers how to SET the image tag; og-image-generator covers how to CREATE the image.
1---
2name: open-graph
3description: When the user wants to add or optimize Open Graph metadata for social sharing. Also use when the user mentions "Open Graph," "og:tags," "og:title," "og:image," "og:description," "Facebook preview," "LinkedIn preview," or "social share preview." For X (Twitter) link previews, use twitter-cards. For SERP title/description, use title-tag and meta-description.
4metadata:
5 version: 1.1.0
6---
7 
8# SEO On-Page: Open Graph
9 
10Guides implementation of Open Graph meta tags for social media previews (Facebook, LinkedIn, Slack, Discord, etc.). Pages with proper OG tags get 2–3× more clicks than bare URL links.
11 
12**When invoking**: On **first use**, if helpful, open with 1–2 sentences on what this skill covers and why it matters, then provide the main output. On **subsequent use** or when the user asks to skip, go directly to the main output.
13 
14## Scope (Social Sharing)
15 
16- **Open Graph**: Facebook-originated protocol; controls preview card when links are shared on social platforms
17 
18## The 4 Essential Tags
19 
20Every shareable page requires these minimum tags:
21 
22```html
23<meta property="og:title" content="Your Page Title">
24<meta property="og:description" content="Your description">
25<meta property="og:image" content="https://yourdomain.com/image.png">
26<meta property="og:url" content="https://yourdomain.com/page">
27```
28 
29| Tag | Guideline |
30|-----|-----------|
31| **og:title** | Keep under 60 chars; compelling; match page content |
32| **og:description** | 150–200 chars; conversion-focused |
33| **og:image** | Absolute URL (https://); 1200×630px recommended |
34| **og:url** | Canonical URL; deduplicates shares |
35 
36## Recommended Additional Tags
37 
38| Tag | Purpose |
39|-----|---------|
40| **og:type** | Content type: `website`, `article`, `video`, `product` |
41| **og:site_name** | Website name; displayed separately from title |
42| **og:image:width** / **og:image:height** | Image dimensions (1200×630px) |
43| **og:image:alt** | Alt text for accessibility |
44| **og:locale** | Language/territory (e.g., `en_US`); for multilingual sites |
45 
46## Image Best Practices
47 
48| Item | Guideline |
49|------|-----------|
50| **Size** | 1200×630px (1.91:1 ratio) for Facebook, LinkedIn, WhatsApp |
51| **Format** | JPG, PNG, WebP; under 5MB |
52| **URL** | Absolute URL with https://; no relative paths |
53| **Unique** | One unique image per page when possible |
54 
55## Common Mistakes
56 
57- Using relative image URLs instead of absolute https://
58- Images too small or wrong aspect ratio
59- Empty or placeholder values
60- Missing og:url (canonical)
61 
62## Implementation
63 
64### Next.js (App Router)
65 
66```tsx
67export const metadata = {
68 openGraph: {
69 title: '...',
70 description: '...',
71 url: 'https://example.com/page',
72 siteName: 'Example',
73 images: [{ url: 'https://example.com/og.jpg', width: 1200, height: 630, alt: '...' }],
74 locale: 'en_US',
75 type: 'website',
76 },
77};
78```
79 
80### HTML (generic)
81 
82```html
83<meta property="og:title" content="Your Title">
84<meta property="og:description" content="Your description">
85<meta property="og:image" content="https://example.com/og.jpg">
86<meta property="og:url" content="https://example.com/page">
87<meta property="og:type" content="website">
88<meta property="og:site_name" content="Your Site">
89<meta property="og:image:width" content="1200">
90<meta property="og:image:height" content="630">
91<meta property="og:image:alt" content="Alt text">
92```
93 
94## Testing
95 
96- **Facebook**: [Sharing Debugger](https://developers.facebook.com/tools/debug/)
97- **LinkedIn**: [Post Inspector](https://www.linkedin.com/post-inspector/)
98 
99## Related Skills
100 
101- **social-share-generator**: Share buttons use OG tags for rich previews when users share; OG must be set for share buttons to show proper cards
102- **article-page-generator**: Use og:type `article` for article/post pages; article-specific tags (published_time, author)
103- **page-metadata**: Hreflang, other meta tags
104- **title-tag**: Title tag often mirrors og:title
105- **meta-description**: Meta description often mirrors og:description
106- **twitter-cards**: Twitter uses OG as fallback; add Twitter-specific tags for best results
107- **canonical-tag**: og:url should match canonical URL
108- **og-image-generator**: Programmatic OG image generation — 6 visual styles (Terminal/CLI, Magazine Editorial, Swiss Minimal, Pixel Retro, Brutalist, Newspaper), Satori+resvg, Puppeteer, AI image generation tools, and Agent-Native content-aware workflow. This skill covers how to SET the image tag; og-image-generator covers how to CREATE the image.
109 
View all files on GitHub →

Details

License
MIT
Stars on the repo
★ 1,006
Checked
Source
kostja94/marketing-skills ↗
Creator
kostja94 · 106 listings
View creator

Similar skills

See all →
SkillAgent Browsing AuditorAgriciDaniel/claude-seo · by AgriciDanielAudit and fix agent readiness: the Lighthouse Agentic Browsing fraction, accessibility tree for agents, robots.txt and Content-Signal for AI agents, WAF treatment of agent traffic, llms.txt, Markdown delivery, ai-catalog.json, /.well-known discovery files, and WebMCP tools. Exclude AI citability and brand signals (seo-geo) and commerce protocol depth (seo-ecommerce).★ 17.4k GitHub starsSkillBacklink Profile AnalysisAgriciDaniel/claude-seo · by AgriciDanielBacklink profile analysis: referring domains, anchor text distribution, toxic link detection, competitor gap analysis. Works with free APIs (Moz, Bing Webmaster, Common Crawl) and DataForSEO extension. Use when user says backlinks, link profile, referring domains, anchor text, toxic links, link gap, link building, disavow, or backlink audit.★ 17.4k GitHub starsSkillCMS Configuration Helpernowork-studio/notfair-plugin · by nowork-studioConnect a CMS to notfair SEO tools. Guides users through configuring WordPress, Strapi, Contentful, or Ghost — tests the connection, and writes credentials to .env.local. Once set up, seo-analysis automatically cross- references CMS content against Google Search Console data. Use whenever the user says "connect my CMS", "set up WordPress", "configure Strapi", "add Contentful", "connect Ghost", or "CMS setup". Also trigger if the user asks why no CMS data appears in a seo-analysis report.★ 3.9k GitHub starsSkillBacklink Comparison ToolRyze-AI-Adgent/open-seo-mcp-skills · by Ryze-AI-AdgentBacklink profile for any domain — referring domains, authority, anchors, new/lost links, and a side-by-side vs a competitor. Use when asked "check my backlinks", "backlink profile of X", "who links to them", or "link gap vs competitor".★ 3.1k GitHub starsSkillWeb Vitals Auditoraddyosmani/web-quality-skills · by addyosmaniOptimize Core Web Vitals (LCP, INP, CLS) for better page experience using field and lab evidence. Use when asked to "improve Core Web Vitals", "fix LCP", "reduce CLS", "optimize INP", "page experience optimization", or "fix layout shifts".★ 2.8k GitHub starsSkillSEO Publishing Looptsingyuai/growth-lab · by tsingyuaiRun an SEO page observation-action-review loop with persistent Memory by coordinating demand research, page creation, adversarial review, image generation, IndexNow submission, and performance review. Use when taking an SEO page from opportunity discovery through publication, measurement, iteration, or continuing a previous SEO loop from Memory.★ 2k GitHub stars

More from kostja94

SkillAffiliate Marketing Strategykostja94/marketing-skills · by kostja94When the user wants to plan, implement, or optimize affiliate marketing strategy. Also use when the user mentions "affiliate marketing," "affiliate program strategy," "CPS model," "affiliate recruitment," "commission structure," "affiliate partners," "affiliate network," "affiliate tracking," "affiliate commission," or "partner marketing." For affiliate page, use affiliate-page-generator.★ 1k GitHub starsSkillAI Search Traffic Trackerkostja94/marketing-skills · by kostja94When the user wants to track AI search traffic in GA4 or GSC. Also use when the user mentions "AI traffic," "ChatGPT referral," "Perplexity traffic," "AI Overviews," "GA4 AI sources," "AI search analytics," "track AI referrals," "AI search traffic," "Claude traffic," or "how to track AI traffic." For AI SEO strategy, use generative-engine-optimization.★ 1k GitHub starsSkillGA4 Analytics Optimizerkostja94/marketing-skills · by kostja94When the user wants to set up, audit, or optimize analytics tracking (GA4, events, conversions). Also use when the user mentions "Google Analytics," "GA4," "event tracking," "conversions," "attribution model," "gtag," "data layer," "GA4 setup," "conversion tracking," "event setup," "User ID tracking," or "CTA attribution." For traffic insights, use traffic-analysis.★ 1k GitHub starsSkillMobile App Campaign Managerkostja94/marketing-skills · by kostja94When the user wants to run app install ads, user acquisition (UA), or promote mobile apps. Also use when the user mentions "app ads," "app install ads," "UA," "user acquisition," "Google App Campaigns," "Apple Search Ads," "ASA," "UAC," "App Store ads," "Play Store ads," "CPI," or "app promotion." For store listings, use distribution-channels.★ 1k GitHub starsSkillLong-Form Article Writerkostja94/marketing-skills · by kostja94When the user wants to write, generate, or create article body content—blog post body, long-form content, how-to guide, listicle. Also use when the user mentions "write article," "article content," "blog post content," "article body," "long-form content creation," "generate article," "article draft," "how-to guide content," "listicle content," "information gain," or "content density." For single post page structure, schema, and SEO metadata, use article-page-generator. For blog index/listing page, use blog-page-generator. For short ad, landing, or email copy, use copywriting.★ 1k GitHub starsSkillBacklink Profile Analyzerkostja94/marketing-skills · by kostja94When the user wants to analyze backlinks, audit link profile, or identify link issues. Also use when the user mentions "backlink analysis," "backlink audit," "referring domains," "toxic links," "link profile," or "disavow file." For acquisition, use link-building.★ 1k GitHub stars