A Claude Code plugin that optimizes GitHub repository presentation by analyzing project intent and purpose.
- Analyzes project files (README, package.json, CLAUDE.md, etc.) to understand purpose
- SVG generation by default - Free, instant, editable vector graphics
- Supports multiple providers: SVG (default), DALL-E 3, Gemini, or manual prompts
- Dark mode support with automatic theme switching
- Outputs images meeting GitHub's social preview requirements (1280x640px, <1MB)
- Generates engaging, SEO-friendly repository descriptions (max 350 chars)
- Suggests relevant topics/labels for discoverability (max 20 topics)
- Can apply changes directly via
ghCLI or output for manual review - Works with zero configuration
- Generates marketing badges (shields.io) based on project analysis
- Creates NotebookLM-style infographic prompts capturing architecture and features
- Supports multiple badge types: version, build, license, downloads, language, and more
- Hybrid infographic style adapts to project type (CLI, library, framework, app)
- Direct README.md modification with intelligent badge section management
# Install via Claude Code plugin directory
claude --plugin-dir /path/to/github-socialSimply invoke the skill by asking Claude:
Generate a social preview image for this project
Or use the command:
/social-preview
Without configuration, the plugin generates a clean SVG image directly. Use --provider=manual to output a text prompt instead.
Run the setup command to configure your preferences:
/github-social:setup
This creates .claude/github-social.local.md with your settings.
Create .claude/github-social.local.md with YAML frontmatter:
---
provider: svg # svg (default) | dalle-3 | gemini | manual
svg_style: minimal # minimal | geometric | illustrated (for SVG provider)
dark_mode: false # false | true | both (generate both variants)
api_key_env: OPENAI_API_KEY # For dalle-3; use GEMINI_API_KEY for gemini
output_path: .github/social-preview.svg
dimensions: 1280x640 # Recommended for GitHub
include_text: true # Include project name in image
upload_to_repo: false # Auto-upload to GitHub repository
---
# Optional: Additional brand guidelines or context| Provider | Requirements | Cost | Notes |
|---|---|---|---|
svg (default) |
None | Free | Claude generates clean SVG graphics directly |
dalle-3 |
OPENAI_API_KEY env var |
~$0.08/image | Artistic, creative AI images |
gemini |
GEMINI_API_KEY env var |
~$0.039/image | Google's image generation |
manual |
None | Free | Outputs optimized prompt only |
- minimal (default): Clean design with 3-5 shapes, generous whitespace
- geometric: Complex arrangements with 8-15 shapes representing domain metaphors
- illustrated: Organic paths with hand-drawn aesthetic and warm colors
Social preview images must meet these requirements:
- Minimum size: 640x320 pixels
- Recommended size: 1280x640 pixels (2:1 aspect ratio)
- Maximum file size: 1MB
- Supported formats: SVG, PNG, JPG, GIF
The plugin generates images that:
- Capture the project's purpose and spirit
- Use appropriate visual metaphors for the technology/domain
- Include readable project name (optional)
- Meet all GitHub size requirements
Analyzes your project and generates social preview images. Triggered by:
- "generate social preview"
- "create github social image"
- "repository preview image"
- "og image for this project"
Generates optimized repository descriptions and topics. Triggered by:
- "update repo description"
- "improve repository description"
- "generate topics"
- "add labels to repo"
- "optimize github metadata"
- "make repo more discoverable"
Enhances README with badges and infographics. Triggered by:
- "enhance readme"
- "add badges to readme"
- "create readme infographic"
- "improve readme marketing"
- "add shields.io badges"
- "generate project infographic"
| Command | Description |
|---|---|
/social-preview |
Generate a social preview image for the current project |
/github-social:setup |
Interactive setup wizard for configuration |
/repo-metadata |
Generate optimized description and topics (use --apply to update GitHub) |
/readme-enhance |
Add marketing badges and infographic to README |
/github-social:all |
Run all skills in sequence (metadata, social preview, README enhancement) |
MIT
