og-image
Skill77 starsChanged 11 days agoMITView on GitHub
Design and build a website's Open Graph image (the link preview) from real OG images on posts.design - pick a direction from the closest ones, then make it in the person's project with their own colours, type and logo, in Next.js as an opengraph-image.tsx. Use when someone wants an OG image, social preview, link preview, social card or share image for their site or one of its pages.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- exbald/skillstheir own version, first seen Nov 22, 2026
- paralect/saas-skillstheir own version, first seen Nov 22, 2026
- ImBIOS/skillstheir own version, first seen Nov 8, 2026
- HenryQW/skillstheir own version, first seen Jul 15, 2026
- Yahiasherif002/claude-skillstheir own version, first seen Jun 26, 2026
- MohamedAbdallah-14/prompt-to-assettheir own version, first seen May 6, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- MohamedAbdallah-14/prompt-to-asset★ 18same name
- html2png/skills★ 10same name
- paralect/saas-skills★ 4same name
- exbald/skills★ 1same name
- HenryQW/skills★ 1same name
- ImBIOS/skills★ 1same name
- Yahiasherif002/claude-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository10 other files it gives its agents.
- competitor-auditSkill
- launch-briefSkill
- launch-copySkill
- launch-referencesSkill
- launch-video-directionSkill
- layered-soundSkill
- rebuildSkill
- remakeSkill
- sound-breakdownSkill
- x-headerSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 2 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Call get_my_access (free).
- Very specific: line 20
Read the brand from the project before asking: colours (CSS variables, the Tailwind or theme config), fonts, logo files, the page's title …
- Very specific: line 27
If the person's brand is in the library, search its own OG images first (brand set to it, limit: 5, an empty query, and pageType as below.
- Distinctive: line 57
Use the project's stack and its real assets: the logo file, a real screenshot of the product, the brand's fonts.
- Very specific: line 72
Check that the page sets twitter:card to summary_large_image, or X shows a small square card.
- Distinctive: line 80
Look at the result: open the image route or the PNG, and view it at about 400 pixels wide as a timeline shows it.
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
OG image
You design your person's link preview image from real OG images that fit their page, then build it in their project. The
posts.design MCP (the posts server in this plugin) holds the library; every image carries its source.
1. Start
Call get_my_access (free). If the posts.design tools are missing or ask for sign-in, tell your person to connect posts.design and sign in with a free account
(in Claude Code, run /mcp and choose posts.design; elsewhere, add https://posts.design/mcp to the agent's MCP servers),
then stop: don't answer from memory. On the first call of the
conversation, share the plan and credits left from its summary in one line, leaving out any sentence that offers Pro.
A search page or an opened reference costs one credit; this skill spends one to three.
Read the brand from the project before asking: colours (CSS variables, the Tailwind or theme config), fonts, logo files,
the page's title and description, and any OG image it already has (opengraph-image.*, an og:image tag, an og file
in its public folder). The best images come from the brand's font files, its logo as SVG and a real screenshot of the
page's product. You need which page the image is for; ask only for what the project doesn't hold.
2. Find references
If the person's brand is in the library, search its own OG images first (brand set to it, limit: 5, an empty
query, and pageType as below; nothing back costs nothing). Then call search_references with collection:
"og-images", limit: 5, the product's category in a word or two as query ("invoicing"), and up to two more phrasings
in alsoQueries: what it is and who it's for ("invoicing app for freelancers"), and the look; colour and type words
match little on their own. Set pageType when the page is one of product, pricing, docs, blog, changelog, company,
careers, security or solutions; if no result is in the product's field, search once more without it. Results past
total are looser matches (matched says how), and with total 0 all of them are: judge those by how they look. Each
result's pageUrl is the page it previews.
Pick up to five that fit, preferring different brands and layouts, and say when none is in the product's field. If your
tools can show images, download their previewUrls into a scratch folder outside the project in one command and look at
them; if they can't, work from the description, palette and classification and say you haven't seen them. Open one with
get_reference only for its exact on-image text (description.visibleText).
3. Direction
Say what the closest references share (layout, headline size, logo placement, product shot or none, colour) and pick one direction for the person's image, naming the reference each idea comes from. Borrow structure, not identity: their colours, type and logo, never a reference's.
Make it 1200×630 (1.91:1). The words are theirs: the page's own title or heading, never a claim you can't check (a
price, "simple", "free"). Keep any text meant to be read large enough at a third of that width (about 72 px or more at
full size), and keep text and the logo clear of the lower-left corner, where X lays the site's domain over the image;
many references put their logo there, so move it rather than copy it. With no real product screenshot, make it type-led
and say where one would go. posts.design's free guide https://posts.design/opengraph/size.md has what each platform
documents and what 1,000+ real OG images measure; read it (no credit) when the person asks about another size or
platform.
4. Build
Use the project's stack and its real assets: the logo file, a real screenshot of the product, the brand's fonts. Never draw a stand-in logo or invent UI; when the logo file is an icon alone, set the name beside it in the brand's font and say so. When the page doesn't exist yet, add only the image in its route folder and say the page still needs building; don't write the page.
- Next.js (App Router): an
opengraph-image.tsxin the page's route folder (app/for the whole site), exportingsize(1200×630),contentType(image/png),alt, and a default function that returns anImageResponsefromnext/og. If the project's Next.js version behaves differently, its own docs are innode_modules/next/dist/docs/. The renderer takes flexbox only (an element with more than one child needsdisplay: "flex"; no grid), fonts as ttf, otf or woff (not woff2) read once at module scope, images as absolute URLs or data URIs (a relative path doesn't load), and a bundle under 500 KB, fonts and images included. SetmetadataBasein the root layout'smetadataso the image URL is absolute, taking the domain from the project (README,package.json, a canonical tag) and saying where. - Other stacks: the framework's own OG image route, else a script with Satori and resvg, else a static 1200×630 PNG
in the public folder with an
og:imagetag (absolute URL) andog:image:width,og:image:heightandog:image:alt.
Check that the page sets twitter:card to summary_large_image, or X shows a small square card; X takes the image from
og:image. In Next.js that is metadata.twitter.card, set wherever a page sets twitter, since a page's twitter
replaces the layout's. Say which files you changed. When the brand's font file isn't in the project, ask before fetching
one: build with a fallback that can't fail the build (the renderer's default is a sans), and name the file to add.
Install a package only after asking.
5. Check
Look at the result: open the image route or the PNG, and view it at about 400 pixels wide as a timeline shows it. Check the headline reads, nothing important sits under the domain corner, and the colours hold on light and dark timelines. If you can't render it here, say so and list those checks for the person. Leave deploying to the person.
Cite each reference you used with its posts.design url and, when it differs from pageUrl, its sourceUrl. For a
profile banner, offer the x-header skill next.
Notes
- A
noticeon a result or amessageon a refusal is written for your person: pass it on in a sentence with its link.get_my_access'sreconnectmatters only when they want to save references. rate_limitedorin_progresscarryretryAfterSeconds: wait that long, then retry once. Run reads one after another, not all at once.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

