og-preview
Skill3 starsChanged 30 days agoMITView on GitHub
Test Open Graph, Twitter Card and other social-link meta tags fully offline. Point it at a URL (localhost works) or an HTML file: it parses the tags and renders a self-contained HTML report with mocked link-preview cards for Telegram, X/Twitter, Facebook, Discord, Slack, WhatsApp, LinkedIn, Reddit and iMessage, plus a findings table of rule violations. No third-party API, no external validator - everything runs locally. Use when the user asks to test or preview og tags, social cards, link unfurling or how a page looks when shared, before deploying.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- educlopez/mallardtheir own version, first seen Nov 15, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- educlopez/mallard★ 5same 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 repositoryOne other file it gives its agents.
- AGENTS.mdAGENTS.md
The file
Files
OG preview
When this skill applies
The user wants to see how a page's link preview (Open Graph card, Twitter card, Telegram/Discord/Slack unfurl) will look, or to validate social meta tags - especially on localhost or a file, where public validators cannot reach.
Workflow
Run the checker. Pick the invocation that matches what the user gave:
# live page, local dev server included python3 scripts/og_preview.py http://localhost:3000/blog/post # static HTML file; --base makes relative og:image resolvable python3 scripts/og_preview.py dist/index.html --base https://example.com/Output:
og-preview.html(report) in the current directory. Add--json report.jsonfor machine-readable findings when the fix loop is automated. Exit code is 1 when errors are found, 0 otherwise - usable in CI.- Read the findings table first. Errors (missing
og:title/og:image, relative or http image URLs, unreachable image) block correct rendering on real platforms; warnings are truncation and size-degradation risks. The rules live split by platform underreferences/- consultreferences/index.mdfor the summary table, then open only the files of the platforms that flagged findings (references/platforms/<name>.md) instead of loading every rule. - Show the report. Open
og-preview.htmlfor the user (a local preview server or the browser tool) so they can compare the nine platform mocks. The mocks apply per-platform truncation budgets; they approximate layout, not pixel-exact rendering. - Fix and re-run. Patch the page's
<head>and re-run until zero errors. Typical minimal fix set:og:title,og:description,og:site_name,og:type,og:url, absolutehttps://og:image1200x630 withog:image:width/height/alt,twitter:card=summary_large_image,theme-colorfor Discord/Slack accents.
Notes
- The only network access is fetching the page itself and its
og:imagefor a dimension check (--no-fetchdisables the image fetch). No external validators or preview APIs are used - safe for intranet and offline work. - Mocks cannot reproduce real crawler caches. Remind the user that after deploying, Telegram/Facebook cache the first scrape: a changed card needs a fresh URL or the platform's re-scrape tool.
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.

