What problem does it solve?
GitHub repos often show a generic or missing social preview when shared, so links look unprofessional and get less engagement; this skill generates a correct branded 1280x640 Open Graph image directly from a repository URL.
Core Features & Use Cases
- Auto-fetches repo metadata: Pulls repo name, description (with README fallback), topics (with README keyword fallback), owner/org, and primary language when available.
- Produces GitHub-ready output: Exports a JPEG sized to GitHub’s social preview dimensions (1280x640) and ensures it stays under 1 MB via recompression and optional scaling.
- Theme presets and layout rules: Supports multiple theme presets (including GitHub dark, docs-blue, builder-green, launch-warm) and smart text fitting with truncation to keep things readable.
- Optional richer visuals: Can include optional logo, screenshot, or background art when provided, with graceful fallbacks if assets are missing.
Quick Start
Use the github-social-preview skill by starting your message with gsp followed by a GitHub repository URL.