cover-my-repo
其他 活跃维护

cover-my-repo

sjh9714/cover-my-repo

一条命令即可将任意GitHub仓库转换为三张设计好的社交预览卡片,支持Codex或Cursor生成卡片内容,本地Chrome直接渲染输出,无需额外复杂配置。

6
Stars 标星
0
Forks 分支
6
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
3.2 MB
仓库大小
3 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:sjh9714/cover-my-repo
git clone https://github.com/sjh9714/cover-my-repo.git
git clone git@github.com:sjh9714/cover-my-repo.git
README.md main

Cover My Repo

Give your GitHub repo a social preview worth clicking.

한국어 | 日本語 | 简体中文

HOL Guard Scanner

Cover My Repo CLI demo

Run it

npx cover-my-repo owner/repo

Pass any public GitHub repository. The CLI detects an authenticated Codex or
Cursor CLI, creates three design options, renders them with your local Chrome,
and opens a comparison preview.

To use the repository in your current directory instead, run this inside it.

npx cover-my-repo

It uses no image model and sends no repository credentials.

Node.js 20 and Chrome are required. Upload stays manual under
Settings → Social preview, so nothing changes on GitHub without you.

Five moods

A generator template compared with Cover My Repo

What you get

  • three self-contained HTML options
  • matching 1280x640 PNG files rendered by local Chrome
  • a comparison page with full-size and feed-size previews
  • deterministic checks for contrast, CJK line breaks, and canvas size

The CLI leaves the final GitHub upload to you.

Repository data boundary

The design agent never receives README, issue, or raw manifest text. The
parent process supplies fixed placeholders and text lengths, then inserts the
HTML-escaped repository name and description after generation.

The CLI resolves Codex, Cursor, Git, Chrome, and the system opener outside the
target repository. Codex runs read-only with shell and file tools disabled.
Cursor runs in Ask mode inside an empty temporary workspace. Both return a
bounded JSON object instead of writing files. The parent process accepts only
the bundled Google Fonts stylesheet and inline PNG data, adds a restrictive
content security policy, and checks every card before Chrome renders it.

Five moods

Every example is a live page in the
gallery. Click through to view its
source.

editorial. Warm paper, a Fraunces wordmark, and restrained corner arcs editorial
poster. A deep field mixed from the language color and a cropped initial poster
blueprint. Navy grid, mono type, corner ticks, and a derived plate number blueprint
gallery. A museum wall label with centered, light serif type gallery
terminal. The repo as a terminal session with window chrome and EXIT 0 terminal

The accent comes from the primary language. Layout details are seeded by the
repository name, so the options keep a shared system without becoming clones.

Use it as an agent skill

The original repo-cover skill remains available for compatible agents. Its
internal name stays unchanged.

# Agent Skills CLI
npx skills add sjh9714/cover-my-repo

# Claude Code plugin marketplace
/plugin marketplace add sjh9714/cover-my-repo
/plugin install repo-cover@repo-cover

# Codex
codex plugin marketplace add sjh9714/cover-my-repo
codex plugin add repo-cover@repo-cover

# Pi
pi install https://github.com/sjh9714/cover-my-repo

# fx
/skills install sjh9714/cover-my-repo --skill repo-cover

Then ask your agent to make a social preview card for the repository.

What the checker enforces

  • one accent per card with WCAG contrast
  • title size tiers from 132px to 64px
  • a 110-character description budget, or 60 characters for CJK
  • no shadows, gradients, glass effects, or emoji
  • star counts off by default because they go stale

skills/repo-cover/scripts/check_card.py checks canvas size,
self-containment, contrast, CJK line breaking, and downscale legibility.

CJK support

Korean example

Korean uses word-break:keep-all and Noto Sans KR. Japanese and Chinese use
Noto Sans JP and Noto Sans SC with their own line-breaking rules.

Keep a card fresh

The bundled Action can render an existing HTML card again in CI.

- uses: sjh9714/cover-my-repo@main
  with:
    card: assets/my-repo-cover.html
    output: cover.png

When not to use it

  • Use a diagram tool for charts or architecture diagrams.
  • Use an image generator for a logo or mascot.
  • Keep GitHub's default card when a private repository is never shared.

License

MIT