repo-social-preview

Solid

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'.

AI & Automation 5 stars 0 forks Updated today MIT

Install

View on GitHub

Quality Score: 83/100

Stars 20%
26
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# 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 1. **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. 2. **Hero only.** No header, nav, footer, badges, cookie bars. One full-bleed 1280×640 hero section: headline, optional subline/CTA, brand background. 3. **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. 4. **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. 5. **Front-end quality bar.** Build the markup per the `frontend` skill: real typography scale, brand tokens as CSS variables, no layout hacks. ## Workflow 1. **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. 2. **Lay out `hero.html`** (standalone file, fixed 1280×640 viewport)...

Details

Author
bestdeejay-design
Repository
bestdeejay-design/agent-skills
Created
1 months ago
Last Updated
today
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category