repo-social-preview
Skill6 starsChanged 3 months agoMITView on GitHub
Build the repository social preview (og:image) as a hand-crafted hero-section HTML (1280x640, 40pt crop-safe padding, no self-made SVG), rendered to PNG via headless Chrome. Source of truth: the project website's hero section when one exists - re-typeset it clean, never screenshot it. Triggers: 'social preview', 'og image', 'og:image', 'social share image', 'repo preview png', 'open graph image', 'github social preview'.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- Muvon/octomind-taptheir own version, first seen Nov 1, 2026
- jamestexas/agentstheir own version, first seen May 16, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- Muvon/octomind-tap★ 6same name
- jamestexas/agents★ 2same 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 repository59 other files it gives its agents.
- skills/chronos/references/AGENTS.mdAGENTS.md
- api-contract-testingSkill
- api-doc-generatorSkill
- canonSkill
- censorSkill
- changelog-generatorSkill
- chronosSkill
- code-reviewSkill
- commit-lintSkill
- commit-message-writerSkill
- coverage-analyzerSkill
- csv-proSkill
- data-analysisSkill
- deweySkill
- diagram-makerSkill
- doc-compareSkill
- docs-productSkill
- docs-projectSkill
- docs-systemSkill
- dsh-runnerSkill
- frontend-a11ySkill
- frontend-design-tasteSkill
- frontend-perfectionSkill
- frontend-performanceSkill
- frontend-testingSkill
- github-repo-hygieneSkill
- long-running-agent-workflowSkill
- mermaid-to-imageSkill
- mobile-frontendSkill
- pdf-report-builderSkill
- plan-skillSkill
- prd-to-appSkill
- presentation-craftSkill
- presentation-engineeringSkill
- presentation-makerSkill
- raster-to-svgSkill
- reddit-karmaSkill
- repo-community-filesSkill
- repo-metadata-healthSkill
- repo-readme-assetsSkill
- secret-scannerSkill
- security-reviewSkill
- seo-auditSkill
- seo-contentSkill
- seo-crawlSkill
- seo-schemaSkill
- seo-toolkitSkill
- skill-feedbackSkill
- skill-forgeSkill
- skill-suggesterSkill
- sql-helperSkill
- systematic-debuggerSkill
- test-generatorSkill
- test-graphicsSkill
- velesSkill
- version-bumperSkill
- video-script-writerSkill
- web-replicationSkill
- web-scraperSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
Typeset HTML — never compose pixels: No Pillow drawing, no self-made SVG shapes, no site screenshots.
- Distinctive: line 23
Hero only: No header, nav, footer, badges, cookie bars.
- Distinctive: line 27
Site is the source of truth: If the repo has a website with a hero section, re-typeset *that* hero: its headline, subline, palette, …
- Distinctive: line 38
No website → build from README/description: repo name + one-line value prop.
- Distinctive: line 82
Do not use to rewrite README content or repository metadata.
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 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
Repo Social Preview — og:image as a typeset hero section
The social preview is a piece of web design, not a generated raster. Lay out a clean hero section in HTML/CSS, render it with headless Chrome, upload the PNG.
Hard rules
- Typeset HTML — never compose pixels. No Pillow drawing, no self-made SVG
shapes, no site screenshots. The deliverable is a standalone
hero.html. Existing assets from the site (logo URL, brand fonts) may be referenced; do not draw new ones. - Hero only. No header, nav, footer, badges, cookie bars. One full-bleed 1280×640 hero section: headline, optional subline/CTA, brand background.
- 40pt padding on all sides (
padding: 40pt). This is the GitHub crop-safe hint: essential text and logos must stay inside it — share previews crop edges. - Site is the source of truth. If the repo has a website with a hero section, re-typeset that hero: its headline, subline, palette, typeface. Do not invent a different design; do not embed an iframe or screenshot of it.
- Front-end quality bar. Build the markup per the
frontendskill: real typography scale, brand tokens as CSS variables, no layout hacks.
Workflow
- Collect source material
- Website exists → fetch it, extract the hero: headline, subline, CTA text, colors, fonts, logo URL.
- No website → build from README/description: repo name + one-line value prop.
- Lay out
hero.html(standalone file, fixed 1280×640 viewport):
Solid background preferred over transparency; hard color stops are fine, keep text contrast ≥ WCAG AA.<!doctype html> <html><head><meta charset="utf-8"> <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800"> <style> :root { --brand-a:#F64A8A; --brand-b:#0ABAB5; --ink:#1A1A1A; } * { margin:0 } body { width:1280px; height:640px; overflow:hidden } .hero { width:100%; height:100%; box-sizing:border-box; padding:40pt; display:flex; flex-direction:column; justify-content:center; gap:16pt; background:linear-gradient(90deg, var(--brand-a) 50%, var(--brand-b) 50%); } </style></head> <body><section class="hero">…</section></body></html> - Render to PNG:
Headless Chrome renders real web layout pixel-perfectly (webfonts included).python3 scripts/render_social_preview.py hero.html --out og.png - Verify: exactly 1280×640, < 1 MB, nothing clipped at the edges, text readable at thumbnail size. Re-render if any check fails.
- Upload manually: Settings → Social preview → Edit → Upload (no API).
Requirements (GitHub)
- File in root /
docs// default branch; format PNG/JPG/GIF; < 1 MB; minimum ≥ 640×320, recommended 1280×640. - Transparency is supported but a solid background is recommended.
- For GitHub Pages OG tags, see
references/social-preview.md.
Anti-patterns
- Drawing the preview with Pillow/composed SVG instead of typesetting HTML.
- Screenshotting the live site (header/footer/badges leak into the shot).
- Content touching the canvas edges (violates the 40pt crop-safe zone).
- Oversized file (> 1 MB) or too small (< 640×320).
- Overwriting an existing preview without explicit request.
Boundaries
- Do not use to rewrite README content or repository metadata.
Evidence and completion gate
Run the documented command against the user’s actual input. Report the command, exit status, files changed or produced, and relevant stdout/stderr. Separate blocked or pre-existing failures from failures introduced by the current work. Do not call the result complete when the script was only described or when an artifact was not reopened and checked.
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.

