Skip to content

Claude Code plugin for GitHub repository optimization. Auto-generates social preview images via DALL-E/Stable Diffusion, creates SEO-friendly descriptions, and suggests discoverable topics. Works with zero configuration.

License

Notifications You must be signed in to change notification settings

zircote/github-social

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github-social

License: MIT Claude Code Plugin Version GitHub Stars GitHub Issues Last Commit PRs Welcome

github-social - Claude Code Plugin for GitHub Repository Optimization

A Claude Code plugin that optimizes GitHub repository presentation by analyzing project intent and purpose.

Features

Social Preview Images

  • 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)

Repository Metadata

  • Generates engaging, SEO-friendly repository descriptions (max 350 chars)
  • Suggests relevant topics/labels for discoverability (max 20 topics)
  • Can apply changes directly via gh CLI or output for manual review
  • Works with zero configuration

README Enhancement

  • 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

Installation

# Install via Claude Code plugin directory
claude --plugin-dir /path/to/github-social

Usage

Quick Start (No Configuration)

Simply 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.

With Configuration (Optional)

Run the setup command to configure your preferences:

/github-social:setup

This creates .claude/github-social.local.md with your settings.

Configuration Options

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

Supported Providers

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

SVG Style Options

  • 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

GitHub Requirements

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

Example Output

The plugin generates images that:

  1. Capture the project's purpose and spirit
  2. Use appropriate visual metaphors for the technology/domain
  3. Include readable project name (optional)
  4. Meet all GitHub size requirements

Skills

social-preview

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"

repo-metadata

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"

readme-enhance

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"

Commands

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)

License

MIT

About

Claude Code plugin for GitHub repository optimization. Auto-generates social preview images via DALL-E/Stable Diffusion, creates SEO-friendly descriptions, and suggests discoverable topics. Works with zero configuration.

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published