
Open Graph
- 847 installs
- 787 repo stars
- Updated June 9, 2026
- kostja94/marketing-skills
open-graph is a Claude Code skill that generates complete, correctly formatted Open Graph meta tags for developers who need higher click-through rates when pages are shared on Facebook, LinkedIn, Slack, and Discord.
About
open-graph is a marketing skill at version 1.1.0 from kostja94/marketing-skills that guides implementation of Open Graph metadata for social link previews. The skill walks developers through og:title, og:description, og:image, and related tags so shared URLs render rich cards instead of bare links, with the source noting proper OG tags can yield 2–3× more clicks than bare URL links. Developers reach for open-graph when adding or fixing Facebook, LinkedIn, Slack, or Discord previews, and the skill explicitly defers X/Twitter cards and SERP title/meta-description work to sibling skills. It triggers on mentions of Open Graph, og:tags, or social share preview problems during frontend page work.
- Guides the 4 essential Open Graph tags every shareable page requires
- Provides specific character limits and content guidelines for og:title, og:description, og:image and og:url
- Optimizes social share previews that deliver 2–3× more clicks than bare links
- Triggered by mentions of Open Graph, og:tags, og:title, og:image, Facebook preview or LinkedIn preview
- Distinct from twitter-cards skill used for X/Twitter link previews
Open Graph by the numbers
- 847 all-time installs (skills.sh)
- +5 installs in the week ending Jul 29, 2026 (Skillselion tracking)
- Ranked #511 of 1,879 Marketing & SEO skills by installs in the Skillselion catalog
- Security screen: LOW risk (skills.sh audit)
- Data as of Jul 31, 2026 (Skillselion catalog sync)
npx skills add https://github.com/kostja94/marketing-skills --skill open-graphAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 847 |
|---|---|
| repo stars | ★ 787 |
| Security audit | 3 / 3 scanners passed |
| Last updated | June 9, 2026 |
| Repository | kostja94/marketing-skills ↗ |
How do you add Open Graph tags for social previews?
Generate complete, correctly formatted Open Graph meta tags that maximize click-through rates when their pages are shared on Facebook, LinkedIn, Slack, Discord an
Who is it for?
Frontend developers shipping marketing pages, docs sites, or SaaS landing pages that get shared on Facebook, LinkedIn, Slack, or Discord.
Skip if: Developers optimizing X/Twitter Card tags or SERP title and meta-description snippets, which this skill routes to other skills.
When should I use this skill?
The user mentions Open Graph, og:tags, og:image, Facebook preview, LinkedIn preview, or social share preview issues.
What you get
Complete Open Graph meta tag blocks with title, description, image, and platform-correct preview markup in page head.
- Open Graph meta tag snippet
- Platform-specific preview guidance
By the numbers
- Skill version 1.1.0 in source metadata
- Cites 2–3× more clicks with proper Open Graph tags vs bare URLs
Files
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 |
Recommended Additional Tags
| 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
- Facebook: Sharing Debugger
- LinkedIn: Post Inspector
Related Skills
- 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
articlefor 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.
Related skills
How it compares
Use open-graph for Facebook, LinkedIn, Slack, and Discord previews; use sibling twitter-cards skill when the problem is X link cards specifically.
FAQ
What platforms does the open-graph skill optimize for?
open-graph targets Open Graph previews on Facebook, LinkedIn, Slack, and Discord. The skill directs X/Twitter Card work to twitter-cards and SERP snippets to title-tag and meta-description skills.
What click impact does open-graph cite for proper OG tags?
open-graph states pages with proper Open Graph tags get 2–3× more clicks than bare URL links when shared on social platforms, motivating complete og:title, og:description, and og:image coverage.
Is Open Graph safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.