No slash command · from git-plugin
Generates 1280x640 PNG social preview images for GitHub repos using nano-banana-pro. Useful when asked for Open Graph images or repo images for social media.
Ships in git-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Generate professional social preview images for GitHub repositories. These images appear when repository links are shared on social media platforms like Twitter, LinkedIn, Slack, and Discord.
This skill piggybacks on the nano-banana-pro skill for image generation. Ensure:
GOOGLE_API_KEY or GEMINI_API_KEY is available to the generation command, exported or injected per command by a secret manager (fnox exec --only GEMINI_API_KEY -- <cmd>, op run -- <cmd>)pip install google-genai Pillow (or use uv run)| Requirement | Value |
|---|---|
| Minimum dimensions | 640 × 320 pixels |
| Recommended dimensions | 1280 × 640 pixels |
| Aspect ratio | 2:1 (width:height) |
| File formats | PNG, JPG, GIF |
| Max file size | 1 MB |
| Transparency | Supported (PNG only) |
PNG transparency can be beneficial for dark mode, but test against:
# Generate a social preview for your repository
uv run python .claude/scripts/nano_banana_pro.py \
"Professional GitHub social preview image for [PROJECT NAME]: [DESCRIPTION]. \
Modern, clean design with bold typography. Tech-focused aesthetic. \
Include visual elements representing [KEY FEATURE]. \
Optimized for social media sharing." \
--aspect 16:9 \
--resolution 2K \
--output social-preview.png
Note: Use 16:9 aspect ratio (closest to 2:1) for optimal display.
Professional GitHub social preview for a developer tool called "[NAME]".
Modern terminal aesthetic with code-inspired elements.
Bold, readable project name. Dark background with syntax highlighting colors.
Clean, minimalist design suitable for social media sharing.
GitHub social preview for "[NAME]" - a [LANGUAGE] library for [PURPOSE].
Abstract geometric patterns representing [CONCEPT].
Project name in bold modern typography.
Professional tech aesthetic with gradients.
Social preview image for "[NAME]" application.
Illustrate the core functionality: [DESCRIPTION].
Clean UI mockup or abstract representation.
Vibrant colors with professional polish.
GitHub preview for "[NAME]" - [DESCRIPTION].
Data visualization or neural network inspired graphics.
Modern scientific aesthetic with clean typography.
Blue and purple color scheme.
If you have an existing brand image or style reference:
uv run python .claude/scripts/nano_banana_pro.py \
"GitHub social preview in the style of the reference. \
Include project name '[NAME]' prominently. \
Maintain brand consistency." \
--aspect 16:9 \
--resolution 2K \
--reference brand-logo.png \
--output social-preview.png
# Check image dimensions
magick identify social-preview.png
# Should show: 1280x640 or similar 2:1 ratio
# Resize to exact GitHub recommended dimensions
magick social-preview.png -resize 1280x640! github-preview.png
# Or resize maintaining aspect ratio (adds letterboxing)
magick social-preview.png -resize 1280x640 \
-gravity center -background '#1a1a1a' \
-extent 1280x640 github-preview.png
# Optimize PNG (must be under 1MB)
magick social-preview.png -strip -quality 95 optimized-preview.png
# Check file size
ls -lh optimized-preview.png
Before uploading, preview how the image will appear:
The preview may take a few minutes to propagate across platforms.
# 1. Generate the image
uv run python .claude/scripts/nano_banana_pro.py \
"GitHub social preview for 'dotfiles' - a cross-platform configuration manager. \
Show abstract connected nodes representing configuration sync. \
Modern dark theme with blue accents. Bold 'dotfiles' text." \
--aspect 16:9 \
--resolution 2K \
--output generated/social-preview.png
# 2. Resize to exact dimensions
magick generated/social-preview.png \
-resize 1280x640^ \
-gravity center \
-extent 1280x640 \
social-preview-final.png
# 3. Verify size (must be < 1MB)
ls -lh social-preview-final.png
# 4. Check dimensions
magick identify social-preview-final.png
# Reduce quality
magick social-preview.png -quality 85 -strip smaller.png
# Convert to JPEG (smaller but no transparency)
magick social-preview.png -quality 85 preview.jpg
| Use this skill when... | Use other skills instead when... |
|---|---|
| Creating or refreshing a repository's social preview image | Generating arbitrary images from a text prompt — use nano-banana-pro directly |
| Producing project thumbnails for documentation | Resizing or optimizing an existing image — use imagemagick-conversion |
| Generating Open Graph images for GitHub Pages | Producing complex illustrations or pixel-perfect layouts (use a dedicated design tool) |
| You want repo metadata (name, language, description) auto-fed into the prompt | Producing animated GIF previews (use video editing tools) |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
52 skills in this plugin
/deadbranchdeadbranch CLI for stale-branch cleanup — dry-run preview, TUI or non-interactive delete, protects main/develop/WIP. Use when asked to clean up branches, prune branches, or remove stale branches./external-pr-trustAuthorship as a precondition of merging — bot vs stranger classification, what a merge executes, the merge-guard hook. Use when bulk-merging PRs, or when a merge is denied for a non-self author./gh-cli-agenticgh CLI commands with JSON output for agents. Use when querying PRs, issues, runs, or repo metadata; inspecting PR checks; fetching failed CI logs; or mapping a github.com URL to an API call.npx claudepluginhub laurigates/claude-plugins --plugin git-pluginOther plugins' skills for the same job