social-preview-images

social-preview-images is a skill for Claude Code from hermoso-ai/hermoso. It costs 142 tokens per session (1,668 once invoked), scanned A, original, Apache-2.0.

A workflow that creates the images and browser metadata used when a website link is shared. It makes an Open Graph preview image, an X card image, an SVG favicon and an Apple touch icon, then connects them to the site.

In plain words
What is it for?
Use it when launching or rebranding a website, especially when shared links need a correct title, image and description.
Why use it?
It prevents link previews and browser icons from being missing, mismatched or based on generic branding. It reads the site's existing name, colours, fonts and logo so the files fit the project.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the hermoso plugin — 11 skills, 4 MCP servers, 2 plugins shipped together

Good fit Use it when launching or rebranding a website, especially when shared links need a correct title, image and description.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hermoso-ai/hermoso/social-preview-images
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 hermoso-ai/hermoso --skill social-preview-images
Clone the repo
git clone --depth 1 https://github.com/hermoso-ai/hermoso

Made for: Claude Code.

Or install hermoso, the plugin that ships this one along with the rest of its 11 skills, 4 MCP servers, 2 plugins.

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 social-preview-images

README.md
[![agentmods](https://agentmods.dev/badge/skills/hermoso-ai/hermoso/social-preview-images/github.svg)](https://agentmods.dev/skills/hermoso-ai/hermoso/social-preview-images)
Your own site
<a href="https://agentmods.dev/skills/hermoso-ai/hermoso/social-preview-images"><img src="https://agentmods.dev/badge/skills/hermoso-ai/hermoso/social-preview-images/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 social-preview-images

Your own site · 80×15
<a href="https://agentmods.dev/skills/hermoso-ai/hermoso/social-preview-images"><img src="https://agentmods.dev/badge/skills/hermoso-ai/hermoso/social-preview-images.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 142 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,668 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.00142 $0.01668
Opus 5.5 $0.00057 $0.00667
Sonnet 5.5 $0.00028 $0.00334
Haiku 4.5 $0.00014 $0.00167

Measured today against content hash 18eeec67bf6c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

social-preview-images 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 today.

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.

4. Download the returned URL into the static folder with `curl -L -o <static>/og-background.png "<url>"` and continue
copilot-plugin/skills/social-preview-images/SKILL.md · 96 lines

How it starts

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

Social preview images and favicons

The image a link preview shows is a file in the repository plus two or three tags that point at it. This skill makes the files from what the repository already says about the product, puts them where the framework serves static files, and wires the tags. Text on the card is set by code, never painted by an image model, so it is always spelled right.

1. Read the brand from the repository (free)

Collect, and show the user what you found:

  • Name and one-line tagline: package.json name/description, the README's first heading and first sentence, the site's <title> and hero heading.
  • Colours: CSS custom properties (--primary, --brand, --accent), tailwind.config.* theme.extend.colors, a theme file, or the most used colours in the main stylesheet.
  • Font: next/font imports, @font-face, a Google Fonts link, fontFamily in the Tailwind config.
  • Logo: an existing logo.svg, icon.svg, favicon.* or the inline SVG in the header component.
  • Static folder: public/ (Next.js, Vite, Astro, Nuxt), static/ (Hugo, SvelteKit, Docusaurus), or the site root.

If the repo has no logo, the favicon in step 3 is a monogram of the name in the brand colour; say so.

2. Make the 1200x630 card (free routes first)

Pick the first route that fits:

A. Next.js App Router. Write app/opengraph-image.tsx (and app/twitter-image.tsx re-exporting it) using ImageResponse from next/og, export const size = { width: 1200, height: 630 } and export const contentType = 'image/png': the name, the tagline and the logo on the brand colour, in the brand font loaded with fetch or readFile. Next.js renders it at build time and adds the tags itself. Add metadataBase to the root layout if it is missing, or the image URL is not absolute. Per-route variants go in the route's folder.

B. Any other site. Write og-image.svg (1200x630, the same layout) next to the static files, then rasterise it to og-image.png with a tool that is ALREADY available. Check, in this order, and use the first one present: resvg, rsvg-convert, magick (ImageMagick 7), inkscape, then a sharp, playwright or puppeteer dependency already in package.json. If none is present, tell the user which one you would install and wait for them to agree before installing anything. Keep the SVG source in the repo so the card can be regenerated.

Read the full file on GitHub · 96 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. today First seen · 96 lines · 142 tokens per session scan A 18eeec67bf6c

Subscribe to this mod's changes

social-preview-images is a skill published in the GitHub repository hermoso-ai/hermoso (10 stars, last pushed today), licensed Apache-2.0. It adds 142 tokens to every session and 1,668 once invoked, about $0.0006 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-12-02.

Related

social-preview-images compared with skills from other repositories

social-preview-images next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
social-preview-imageshermoso-ai/hermosoSkill10todayApache-2.0A142Claude Code
taskade-fix-first-screentaskade/mcpSkill1706d agoMITA148Claude Code
html-design-revisionzenitheditor/zenithSkill278d agoApache-2.0A54Claude Code, Codex
html-authorzenitheditor/zenithSkill278d agoApache-2.0A70Claude Code, Codex
genpark-vision-coderalphaparkinc/genpark-vision-coderSkill91mo agoMITA28Claude Code, Codex
section-rebuildbryntay/a1-mcpSkill122d agoMITA56Claude Code
vectorizesvgnew/mcpSkill11mo agoMITA55Claude Code