liush2yuxjtu

GitHub Social Preview AI — AI skill for Claude Code

AI community

AI GitHub social preview / Open Graph (OG) image & repo cover generator — Agent Skill for Claude Code, Cursor, Codex.

How to install GitHub Social Preview AI

This entry records only its repository, not the path inside it, so there is no exact command to give. Open liush2yuxjtu/github-social-preview-ai and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What GitHub Social Preview AI does

AI GitHub social preview / Open Graph (OG) image & repo cover generator — Agent Skill for Claude Code, Cursor, Codex. Text-free AI art + real-font HTML typography (great CJK), 1280x640, batch via JSON. GitHub 仓库封面生成 Skill.

Alternatives in AI

  • Guizang Ppt Skill — AI-agent Skill for generating polished HTML slide decks: editorial magazine and Swiss layouts, image prompts 24.9k ★
  • Architecture Diagram Generator — Generate beautiful dark-themed system architecture diagrams as standalone HTML/SVG files 7k ★
  • Kimi Cc — Use Kimi's latest model (kimi-k2-0711-preview) to drive Claude Code 1.7k ★

README

github-social-preview-ai — AI GitHub Social Preview / OG Image Generator (Agent Skill)

[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE) [![Agent Skill](https://img.shields.io/badge/Agent%20Skill-Claude%20Code-orange)](SKILL.md) [![GitHub stars](https://img.shields.io/github/stars/liush2yuxjtu/github-social-preview-ai?style=social)](https://github.com/liush2yuxjtu/github-social-preview-ai)

**Generate crisp GitHub social preview images (repo cover / Open Graph image, 1280×640) with text-free AI art + real-font HTML typography — an Agent Skill for Claude Code, Cursor, Codex and other coding agents.**

[English](#english) · [中文](#中文)

![GitHub social preview example generated by github-social-preview-ai: douyin-video-skill cover](examples/out/douyin-video-skill.png)

English

Why

  • Image models garble text, so the background is text-free AI art and text is composed in HTML + headless Chrome with real fonts (excellent CJK support).
  • Max 2 text layers (headline + repo name), readable at 320×160 thumbnail size; a .thumb.png is generated for checking.
  • Reserved clean text zone + scrim so text never overlaps the art.
  • Batch many repo covers from one covers.json.

Install

# Claude Code (personal skills)
git clone https://github.com/liush2yuxjtu/github-social-preview-ai ~/.claude/skills/github-social-preview-ai
# project-level: .claude/skills/  ·  other agents: .agents/skills/ or .cursor/skills/
# or: npx skills add liush2yuxjtu/github-social-preview-ai

Requirements: Python 3 + Pillow, Google Chrome / Chromium, a CJK font (e.g. Noto Sans CJK).

Usage

Ask your agent: *"Make a GitHub social preview for this repo"*. Or run directly:

python3 scripts/render.py examples/covers.json --out-dir out   # renders + verifies, exit 1 on FAIL
python3 scripts/verify.py out/my-repo.png                      # verify a single cover
{"defaults": {"art_shift": 60, "accent": ["#25f4ee", "#fe2