From craft-workspace-webconsulting-skills
Generates Open Graph social media preview images by analyzing the project's design system, creating a 1200x630 screenshot-optimized page, capturing with Playwright, and configuring meta tags.
npx claudepluginhub dirnbauer/webconsulting-skillsThis skill uses the workspace's default tool permissions.
This skill creates professional Open Graph images for social media sharing. It analyzes the existing codebase to match the project's design system, generates a dedicated OG image page, screenshots it, and configures all necessary meta tags.
Generates Open Graph configurations, code, and best practices for frontend apps using React, Vue, or CSS. Activates on 'open graph creator' phrases for social preview tasks.
Generates favicons (multi-size), PWA icons, Open Graph images for social sharing, apple-touch-icon, and HTML meta tags from logo or text. Use before deploying sites, landing pages, or PWAs.
Generates favicons, PWA app icons, and Open Graph social images for Facebook/Twitter/WhatsApp/LinkedIn from logos or text. Includes image resizing, text-to-image, and HTML meta tags.
Share bugs, ideas, or general feedback.
This skill creates professional Open Graph images for social media sharing. It analyzes the existing codebase to match the project's design system, generates a dedicated OG image page, screenshots it, and configures all necessary meta tags.
Explore the project to understand:
Framework Detection
package.json for Next.js, Vite, Astro, Remix, etc./og-image routeDesign System Discovery
tailwind.config.js/ts) for color palette:root definitions)Branding Assets
/public, /assets, /src/assetsProduct Information
package.json, landing page, or meta tagsExisting Components
Create a dedicated route at /og-image (or equivalent for the framework):
Page Requirements:
[data-nextjs-dialog-overlay],
[data-nextjs-dialog],
nextjs-portal,
#__next-build-indicator {
display: none !important;
}
Content Structure:
Design Principles:
Use Playwright to capture the OG image:
http://localhost:3000/og-image or similar)og-image.pngPlaywright Commands:
browser_navigate: http://localhost:{port}/og-image
browser_resize: width=1200, height=630
browser_take_screenshot: og-image.png (then copy to /public)
Audit and update the project's meta tag configuration. For Next.js App Router, update layout.tsx. For other frameworks, update the appropriate location.
Required Meta Tags:
// Open Graph
openGraph: {
title: "Product Name - Short Description",
description: "Compelling description for social sharing",
url: "https://yourdomain.com",
siteName: "Product Name",
locale: "en_US",
type: "website",
images: [{
url: "/og-image.png", // or absolute URL
width: 1200,
height: 630,
alt: "Descriptive alt text for accessibility",
type: "image/png",
}],
},
// Twitter/X
twitter: {
card: "summary_large_image",
title: "Product Name - Short Description",
description: "Compelling description for Twitter",
creator: "@handle", // if provided
images: [{
url: "/og-image.png",
width: 1200,
height: 630,
alt: "Descriptive alt text",
}],
},
// Additional
other: {
"theme-color": "#000000", // match brand color
"msapplication-TileColor": "#000000",
},
appleWebApp: {
title: "Product Name",
statusBarStyle: "black-translucent",
capable: true,
},
Ensure metadataBase is set for relative URLs to resolve correctly:
metadataBase: new URL("https://yourdomain.com"),
Verify the image exists at the public path
Check meta tags are correctly rendered in the HTML
Provide cache-busting instructions:
Summary output:
Only ask the user if these cannot be determined from the codebase:
Domain/URL - If not found in existing config, ask: "What's your production domain? (e.g., https://example.com)"
Twitter/X handle - If adding twitter:creator, ask: "What's your Twitter/X handle for attribution? (optional)"
Tagline - If no clear tagline found, ask: "What's a short tagline for social previews? (1 sentence)"
Next.js App Router:
/app/og-image/page.tsx/app/layout.tsx'use client' directive for the OG pageNext.js Pages Router:
/pages/og-image.tsx_app.tsx or use next-seoVite/React:
index.html meta tags or use react-helmetAstro:
/src/pages/og-image.astroBefore completing, verify:
This skill is based on the excellent work by Stevy Smith.
Original repository: https://github.com/stevysmith/og-image-skill
Special thanks to Stevy Smith for their generous open-source contributions, which helped shape this skill collection. Adapted by webconsulting.at for this skill collection