Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

GitHubCard

БесплатноБез исполняемых скриптовНе проверен

Create embeddable GitHub profile and repository card images with the ghcard CLI, design custom card layouts, and add them to README files. Use when the user…

cactusinhandот cactusinhand235 установок в других каталогах

Об этом скилле

GitHubCard cards with ghcard

ghcard turns a GitHub username or owner/repo into a published card image with stable SVG/PNG links and ready-made Markdown/HTML embeds. Card images show live GitHub data, so a card never needs regenerating to stay current.

Before you start

  1. Check the CLI is installed: ghcard --version (this skill is written for 0.1.0 or later). If it is missing and Node.js 20+ is available, run it through npx without installing: replace ghcard with npx -y @ghcardhq/ghcard in every command below. Suggest npm install -g @ghcardhq/ghcard to the user if they will use it again; do not install global packages without asking.
  2. Check auth: ghcard auth status --json.
    • Exit code 3 / NO_API_KEY or UNAUTHORIZED: the user needs a key from https://githubcard.com/dashboard. Ask them to run ghcard auth login themselves, or to set GHCARD_API_KEY. Never ask the user to paste the key into the chat, and never echo, log, or write a key into a file in the repository.
    • Listing templates/palettes works without a key.

Always pass --json and read stdout as one JSON document: {"ok": true, "data": ...} or {"ok": false, "error": {"code", "message", "retryable", "hint"}}.

Main flows

Card for a profile or repo (the common case):

ghcard create octocat --json
ghcard create octocat/hello-world --json

Use data.urls.svg / data.urls.png for links and data.embed.markdown for a README. data.created is false when the identical card already existed, which is expected and fine.

Add it to a README (inserts after the first heading, or replaces the existing <!-- ghcard:<subject> --> block on later runs):

ghcard create octocat --readme README.md --json

For a GitHub profile README the file lives in the repo named after the user (<user>/<user>/README.md). Show the user the diff before committing; do not commit or push unless they ask.

Choose a look only if the user cares about style:

ghcard templates --scope profile --free --json   # or --scope repo
ghcard templates --scope profile --free --widget streak --json   # must contain these widgets
ghcard palettes --json
ghcard create octocat --template pro-terminal --palette sage --json

Each template lists its widgets. --palette takes only preset ids; for any other background colour, font, size, or widget changes, use a custom layout (below). When several templates qualify, start from the one whose size and widgets need the fewest edits.

Template scope must match the subject: profile templates for a user, repo templates for owner/repo (templates with scope all fit both). Prefer templates with "pro": false unless the user has Pro (ghcard usage --json → data.tier).

Custom layout when the user wants specific widgets, colours, fonts, or sizes that no template has:

ghcard components --json                                 # widget types
ghcard design init social --subject octocat -o design.json --json   # template as JSON (free, no quota)
# edit design.json: artboard (width, height, background.color, style.*) and layers[]
ghcard create octocat --design design.json --dry-run --json   # free check: ids, Pro features, layout
ghcard create octocat --design design.json --json            # publish it

Always --dry-run an edited design first: it catches every request error without creating a card or using quota, and data.warnings lists layers that reach outside the artboard (they would be clipped). Fix warnings before publishing. When you darken or lighten the background a lot, also set artboard.style.textColor / secondaryTextColor so text stays readable.

Prefer a template that already has exactly the widgets the user wants (--widget to filter, then check each candidate's widgets for ones to avoid); edit layers only when no template fits.

Editing rules (ghcard design --help has the full list):

  • Layers are absolutely positioned (x, y, width, height). Removing one leaves its space empty; widen or move neighbours to fill it.
  • Keep each layer's id unique and its type from ghcard components. layer is only stacking order; gaps are fine.
  • The subject inside the file is ignored; the create argument decides whose data is shown. showWatermark is decided by the server.
  • artboard.background.color is a full CSS background: a hex colour, or a gradient/pattern such as radial-gradient(...) 0 0 / 22px 22px #0d1117. Replacing it with a hex removes the template's texture; to keep the texture, change only the trailing base colour.
  • Any plain solid colour ("#14213d") is free; gradients and patterns are free only when they are a free preset, a ghcard palettes palette, or a free template's own background. On Free, the editor's Pro fonts and background presets fail with PRO_FEATURE; fonts and backgrounds that free templates already use are fine.

To change an existing card: `

Полный SKILL.md на ClawHub

Установить GitHubCard в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл GitHubCard?

Create embeddable GitHub profile and repository card images with the ghcard CLI, design custom card layouts, and add them to README files. Use when the user wants a GitHub stats card, a profile card, a repo card or banner, a social preview image for a repository, or to put such a card in a README or profile README (github.com/<user>/<user>). Also covers listing, deleting, and checking quota for GitHubCard cards.

Как установить скилл GitHubCard?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл GitHubCard запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить GitHubCard с