返回目录
开发工具 技能

cover-my-repo

sjh9714/cover-my-repo

Agent skill that designs your GitHub social preview (og:image) as one self-contained HTML file. Five moods, CJK-first, deterministic checks, PNG export. repo cover, opengraph, link card.

Stars
4
Forks
0
Issues
0
更新
今天

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:sjh9714/cover-my-repo

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

Cover My Repo

Give your GitHub repo a social preview worth clicking.

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

Cover My Repo CLI demo

Run it

npx cover-my-repo

Run the command inside a Git repository. It detects an authenticated Codex or Cursor CLI, creates three design options, renders them with your local Chrome, and opens a comparison preview.

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.

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

CLASSIFICATION EVIDENCE

分类依据

项目类型技能
功能分类开发工具
规则置信度

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: agent-skills、claude-skill、claude-skills、codex-skill、skill-md、claude-code、github-actions、og-image、social-preview。