repo-social-preview

Solid

Generate a custom GitHub social preview (og:image) PNG 1280x640 for a repository: header composition + waves, solid background recommended, <1MB, PNG/JPG/GIF. Script: generate_social_preview.py (requires Pillow). 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 yesterday MIT

Install

View on GitHub

Quality Score: 81/100

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

Skill Content

# Repo Social Preview — custom og:image for GitHub Use this skill to **generate a custom social preview (og:image) for a repository**. GitHub auto-generates a default preview, but a custom one (header composition + waves) gives a branded, crop-safe image for social shares. ## When to use - The repository needs a branded social preview instead of the auto-generated one. - User asks for "social preview", "og image", "social share image", "repo preview png". ## Do NOT use - For README content/visual header/footer — use `repo-readme-assets`. - For legal/community files — use `repo-community-files`. - For description/topics/Pages/health — use `repo-metadata-health`. ## Files - `SKILL.md` — this file - `scripts/generate_social_preview.py` — generates PNG 1280x640 (header composition + waves; **requires Pillow**) - `references/social-preview.md` — details + OG tags for Pages ## Requirements (GitHub) - File in root / `docs/` / default branch; format PNG/JPG/GIF; **< 1 MB**; **≥ 640×320**, recommended **1280×640**. - Set in Settings → Social preview → Edit → Upload (**UI only**, no API). - Transparency is supported, but a solid background is recommended. - Crop-safety: keep essential text away from the edges (share previews crop on some platforms). ## Usage ```bash python3 scripts/generate_social_preview.py \ --name X --desc Y --user Z --cold #HEX --warm #HEX [--out og.png] ``` Then upload via Settings → Social preview. For GitHub Pages OG tags, see `references/social-...

Details

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

Similar Skills

Semantically similar based on skill content — not just same category