og-preview
Skill5 starsChanged 16 days agoMITView on GitHub
Builds a site's link preview: the static og:image and, optionally, an animated one (GIF + MP4 + poster) from the site's real visuals. Next, Laravel or PrestaShop. Use when the user says "haz la OG", "OG animada" or "og:image", or when a new web project is created.
- Installs packages
1 other project uses a version of this.
Adopted by
Most recently taken up by
- EvilFreelancer/og-previewtheir own version, first seen Nov 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- EvilFreelancer/og-preview★ 3same 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 repository43 other files it gives its agents.
- agents-md-completenessSkill
- blast-radiusSkill
- diagnose-bugSkill
- elementflow-kbSkill
- gitlab-changelog-releaseSkill
- gitlab-ci-quality-gatesSkill
- gitlab-project-bootstrapSkill
- gitlab-security-setupSkill
- gitlab-wiki-bootstrapSkill
- grillSkill
- lando-checkSkill
- lando-img-placeholderSkill
- lando-mail-smtpSkill
- lando-setupSkill
- mallard-releaseSkill
- mr-flowSkill
- no-commentsSkill
- paginated-report-pdfSkill
- panda-kbSkill
- ploi-prestashop-deploySkill
- prestashop-kbSkill
- ps-consoleSkill
- ps-css-buildSkill
- ps-demo-userSkill
- ps-email-previewSkill
- ps-env-faviconsSkill
- ps-image-regenSkill
- ps-invoice-previewSkill
- ps-new-projectSkill
- ps-one-page-checkoutSkill
- ps-project-docSkill
- ps-security-auditSkill
- ps-storefront-polishSkill
- ps-theme-cacheSkill
- ps-translateSkill
- ps-view-transitionsSkill
- ps-watchSkill
- reflectSkill
- show-me-your-workSkill
- skill-authorSkill
- task-contextSkill
- task-reviewSkill
- verify-ps-projectSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
When a new web project is being created, ask once: "¿Le hacemos OG estática, y también animada?" Static is the default for every site.
- Very specific: line 29
Check every claim on the card against the README or the page copy (og:title, description).
- Very specific: line 46
Write index.html at 1200x630: the CSS is the rest state.
- Distinctive: line 54
Check the loop: compare the first and last frames (a few hundred antialiasing pixels on rotated layers is acceptable).
- Very specific: line 61
Put the files in public/social/ (Next, Laravel) or the theme's assets/img/social/ (PrestaShop).
- Very specific: line 62
Read robots.txt (and the code that generates it).
- Very specific: line 63
Add the tags from references/metas.md for the stack.
- Distinctive: line 76
Does not commit, open PRs, merge or deploy without the user asking.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
og-preview
Makes the image a link shows when it is shared (X, LinkedIn, Slack, WhatsApp, iMessage). It is not a social post video and not a favicon.
0. New project: ask first
When a new web project is being created, ask once: "¿Le hacemos OG estática, y también animada?" Static is the default for every site. Build the animated one only when the user says yes.
1. Read the site's real visuals
- Open the live site (or the dev server) and take a full-page screenshot. Headless Chrome without a GPU can crash pages that use WebGL: launch with
--enable-unsafe-swiftshader --use-angle=swiftshader. - Collect, from the code, not from the screenshot:
- colors and fonts from the CSS tokens and computed styles, never the average color of the logo;
- the backgrounds that sit under the hero and the illustrations (gradients, dot grids, blurred scenes): copy their CSS as-is;
- logos and icons from
public/or the components. Never draw or invent a logo; a missing one is asked for; - real product content: screenshots, cards, commands with their real output, names from the README.
- Check every claim on the card against the README or the page copy (
og:title,description).
Done when you can list, with its source file, the background, the colors, the font, the logo and the content the card uses.
Taste rules that came from rejected drafts: the site's own background beats a saturated full-bleed brand color; the brand color goes on one accent (a pill, a word, a line). Flat, no glow, no black filler.
2. Static og:image (always)
| Stack | How |
| Next (App Router) | ImageResponse route with dynamic = 'force-static'. Satori reads TTF/OTF only: commit the font files. Satori has no CSS blur: pre-render blurred backgrounds to a JPG and embed it as a data URL. Shared renderer for home and per-page cards. |
| Laravel, PrestaShop, any other | Build the card as HTML (step 3), render one still with scripts/stills.mjs, save it as og-image.png (1200x630, under 600 KB for WhatsApp). |
Done when the image returns 200 locally and you have looked at it at full size.
3. Animated preview (only when asked)
- Write
index.htmlat 1200x630: the CSS is the rest state.anim.jsbuilds every animation with the Web Animations API, pauses them and exposeswindow.DURATIONandwindow.seek(ms), so each frame is deterministic. 5 to 6 s; frame 0 must equal the last frame. - Render and encode:
cd <skill>/scripts && npm i node stills.mjs <page>/index.html /tmp/og 0 2000 4000 # check stills first node frames.mjs <page>/index.html <out>/frames ./encode.sh <out>/frames <out>/og-animated 0120 # poster = frame 120 - Check the loop: compare the first and last frames (a few hundred antialiasing pixels on rotated layers is acceptable). Check stills at full size, by zone.
- Weight: photos moving all the time make huge GIFs (12.5 MB measured). Move in steps with rests; aim for a GIF under 3 MB.
Done when the MP4, GIF and poster exist and the user has seen them (open <file>).
4. Serve and wire the metadata
- Put the files in
public/social/(Next, Laravel) or the theme'sassets/img/social/(PrestaShop). - Read
robots.txt(and the code that generates it). AnyDisallowcovering the image paths blocks X, LinkedIn and Slack, which honour robots. Check the home and one inner page of each section, not only the home. - Add the tags from references/metas.md for the stack.
og:videomust be an absolute URL (Next does not resolve videos againstmetadataBase).
Done when the dev server serves the tags and every file returns 200 with the right content-type.
5. After deploy
curl -sL https://<site> | grep -oE '<meta[^>]+(og:image|og:video|twitter:image)[^>]+>'
for f in og-animated.gif og-animated.mp4 og-animated-poster.png; do curl -sI https://<site>/social/$f | head -1; doneDone when production serves the tags and the three files return 200. Platforms cache previews: an old card after a deploy is their cache.
Does not commit, open PRs, merge or deploy without the user asking.
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.

