github-social-preview-generator

Generates a 1280×640 GitHub repository social preview image from README, metadata, and visual assets.

Updated Jul 7, 2026
One-click install
npx skills add https://github.com/vmitsaras/Agent-Skills --skill github-social-preview-generator-vmitsaras
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: github-social-preview-generator
Source: https://github.com/vmitsaras/Agent-Skills/tree/main/skills/repo-readiness/github-social-preview-generator
Command: npx skills add https://github.com/vmitsaras/Agent-Skills --skill github-social-preview-generator-vmitsaras

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Repositories shared on social platforms or chat apps often show a generic or missing link preview, making the project hard to recognize and reducing click-through. This Skill creates a repository-specific GitHub social preview image grounded in the actual README, package metadata, and existing visual assets instead of a generic gradient template. ## Core Features & Use Cases - Repository-Driven Design: Inspects README, package manifests, screenshots, logos, and brand colors to derive copy and layout from real project evidence. - GitHub-Compliant Output: Produces a 1280×640 PNG/JPG under 1 MB at .github/social-preview.png, with safe-area handling and reduced-size readability checks. - Multiple Layout Patterns: Chooses among typography-led, product preview, component-focused, developer-tool, and collection card compositions based on the repository type. - Use Case: Before launching an open-source library, run this Skill to audit existing assets, write concise preview copy, and export a validated social card ready for manual upload in GitHub settings. ## Quick Start Ask the agent to create a GitHub social preview image for this repository and save it to .github/social-preview.png.

Frequently Asked Questions about github-social-preview-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a GitHub social preview image for my repository?▼

Inspect the repository's README, package metadata, and visual assets, then compose a 1280×640 image with the project name, a concise description, and one visual anchor. Export it as a PNG under 1 MB to .github/social-preview.png and upload it manually through the repository's GitHub settings.

What size should a GitHub social preview image be?▼

GitHub's published recommendation is 1280×640 pixels with a 2:1 aspect ratio, in PNG, JPG, or GIF format, and no larger than 1 MB. Verify current requirements against official GitHub documentation when network access is available.

Can I generate a social preview without a logo or screenshots?▼

Yes. Use a typography-led composition built from the repository name, a concise evidence-based description, and simple shapes derived from the project's function. Do not fabricate logos or fake product interfaces.

Why does my social preview look bad when the link is shared?▼

Common causes include content placed outside the safe area, text too small to read at reduced sizes, and cluttered compositions. Test the image at 640×320 and 320×160 and remove details that fail at thumbnail scale.

Should I include star counts or version numbers in the preview image?▼

Generally no, because dynamic metrics and version numbers quickly become stale and misleading. Include them only when explicitly required, verifiably current, and the user accepts ongoing maintenance.