repo-social-preview

repo-social-preview is a skill for Claude Code from jamestexas/agents. It costs 58 tokens per session (1,886 once invoked), scanned A, original, Apache-2.0.

A checker for the social-preview image shown when a GitHub repository link is shared on sites such as Hacker News, Twitter, Slack, or Discord. It also explains how to upload a replacement image manually.

In plain words
What is it for?
It is for checking a repository’s OpenGraph preview image, assessing how readable it is at small sizes, and reporting possible image sources and upload steps.
Why use it?
It helps find missing or unclear preview images that can make a shared repository link harder to recognize.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit It is for checking a repository’s OpenGraph preview image, assessing how readable it is at small sizes, and reporting possible image sources and upload steps.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jamestexas/agents/repo-social-preview
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jamestexas/agents --skill repo-social-preview
Clone the repo
git clone --depth 1 https://github.com/jamestexas/agents

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for repo-social-preview

README.md
[![agentmods](https://agentmods.dev/badge/skills/jamestexas/agents/repo-social-preview/github.svg)](https://agentmods.dev/skills/jamestexas/agents/repo-social-preview)
Your own site
<a href="https://agentmods.dev/skills/jamestexas/agents/repo-social-preview"><img src="https://agentmods.dev/badge/skills/jamestexas/agents/repo-social-preview/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for repo-social-preview

Your own site · 80×15
<a href="https://agentmods.dev/skills/jamestexas/agents/repo-social-preview"><img src="https://agentmods.dev/badge/skills/jamestexas/agents/repo-social-preview.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,886 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00058 $0.01886
Opus 5.5 $0.00023 $0.00754
Sonnet 5.5 $0.00012 $0.00377
Haiku 4.5 $0.00006 $0.00189

Measured 2mo ago against content hash 4eaec9600a46, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

repo-social-preview scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

allowed-tools: Read Glob Grep Bash(gh api graphql *) Bash(jq *) Bash(curl *) Bash(file *)
skills/repo-social-preview/SKILL.md · 179 lines

How it starts

The opening of the file, as written. The whole thing — 179 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/repo-social-preview — GitHub Social Preview (OpenGraph)

Audit a GitHub repository's social preview image — the 1280×640 card shown when the repo URL is unfurled on HN, Twitter, Slack, Discord, or any OpenGraph-aware surface.

Arguments

$ARGUMENTS

  • <owner/repo> — one or more target repos. Defaults to the repo containing the current working directory.
  • --audit-only (default) — report state and recommendations; no writes.

Why this skill is audit-only

GitHub's API does not support uploading social preview images via REST. The image must be uploaded through the web UI:

Settings → General → Social preview → Edit → Upload an image

This skill therefore does not apply changes. It produces:

  1. An inventory of which repos are missing previews (or have a stale auto-generated one).
  2. Concrete recommendations for what image to upload.
  3. The manual upload URL for each repo, so you can click through quickly.

What this solves

When someone posts your repo link to HN, Slack, or Twitter, the recipient sees one of three things:

  1. Custom social preview (good) — a designed card that reinforces what the project is.
  2. GitHub's auto-generated card (mediocre) — the repo name + description on a grey background. Better than nothing, but every repo on GitHub looks the same.
  3. No preview (bad) — happens for some surfaces when the OpenGraph fetch fails. Just a bare link.

Custom previews dramatically improve link click-through on social. They're also the most often-forgotten SEO surface because the upload is buried in repo settings.

What a good social preview looks like

  • 1280×640 pixels (GitHub's recommendation; 2:1 ratio).
  • The repo's identity legible at thumbnail size — Twitter/Slack often display these at 600×300 or smaller.
  • The project name in large text if there's no recognizable logo yet.
  • A one-line tagline below the name — the same one that's in the GitHub description, ideally.
  • Strong contrast — these are seen on light and dark backgrounds across surfaces.
  • Avoid screenshots of code — they don't survive being scaled down.
  • Avoid emoji as the primary visual element — they render inconsistently across platforms.

Read the full file on GitHub · 179 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed 4eaec9600a46
  2. 3mo ago First seen · 179 lines · 58 tokens per session scan A 03969a9ae9a9

Subscribe to this mod's changes

repo-social-preview is a skill published in the GitHub repository jamestexas/agents (2 stars, last pushed today), licensed Apache-2.0. It adds 58 tokens to every session and 1,886 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

repo-social-preview compared with skills from other repositories

repo-social-preview next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
repo-social-previewjamestexas/agentsSkill2todayApache-2.0A58Claude Code
markdown-ui-dslMegaByteMark/markdown-ui-dslSkill258mo agoMITA25Claude Code, Codex
prototypevinvcn/mattpocock-skills-zh-CNSkill6.2kyesterdayMITA39Claude Code, Codex
prototypedevcxl/mattpocock-skills-zhSkill568todayMITA39Claude Code, Codex
design-system-architectroedyrustam/vibes-plugSkill1304d agoMITA43Cursor
visual-ui-auditorroedyrustam/vibes-plugSkill1304d agoMITA51Cursor
svg-animation-motion-expertroedyrustam/vibes-plugSkill1304d agoMITA46Cursor