og-image-generator

og-image-generator is a skill for Claude Code, Codex from kostja94/social-cards-skills. It costs 187 tokens per session (6,503 once invoked), scanned A, original, MIT.

A skill for creating Open Graph images: the preview cards shown when a webpage link is shared on services such as Facebook, LinkedIn, Slack, and Discord.

In plain words
What is it for?
Use it to create 1200×630-pixel social sharing images, including content-aware designs, Satori JSX templates, AI-generated visuals, or one of six listed styles.
Why use it?
It helps produce a visual preview that reflects the page's actual content instead of leaving the shared link without an image or using an unrelated one.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it to create 1200×630-pixel social sharing images, including content-aware designs, Satori JSX templates, AI-generated visuals, or one of six listed styles.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kostja94/social-cards-skills/og-image-generator
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 kostja94/social-cards-skills --skill og-image-generator
Clone the repo
git clone --depth 1 https://github.com/kostja94/social-cards-skills

Made for: Claude Code, Codex.

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 og-image-generator

README.md
[![agentmods](https://agentmods.dev/badge/skills/kostja94/social-cards-skills/og-image-generator/github.svg)](https://agentmods.dev/skills/kostja94/social-cards-skills/og-image-generator)
Your own site
<a href="https://agentmods.dev/skills/kostja94/social-cards-skills/og-image-generator"><img src="https://agentmods.dev/badge/skills/kostja94/social-cards-skills/og-image-generator/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 og-image-generator

Your own site · 80×15
<a href="https://agentmods.dev/skills/kostja94/social-cards-skills/og-image-generator"><img src="https://agentmods.dev/badge/skills/kostja94/social-cards-skills/og-image-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 187 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,503 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00187 $0.06503
Opus 5 $0.00093 $0.03252
Sonnet 5 $0.00037 $0.01301
Haiku 4.5 $0.00019 $0.00650

Measured 12d ago against content hash 28a3f3ad765b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

og-image-generator scanned grade A with 0 findings 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 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (templates/nodejs-generic.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

og-image-generator/SKILL.md · 482 lines

How it starts

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

OG Image Generator

Generate Open Graph images — the 1200x630px preview cards that appear when links are shared on social platforms. Pages with unique, well-designed OG images get 2–3x more clicks than bare URL links.

This skill's core is content-aware generation: extracting meaning from the page, matching a visual style, and producing an image that reflects the actual content — not just filling a template with a title.

When to Use

  • User needs 1200×630px (1.91:1) images for Facebook, LinkedIn, Slack, Discord, WhatsApp, Telegram, Pinterest, iMessage, or QQ
  • User mentions og:image, Open Graph, social share image, link preview image, or dynamic/programmatic OG generation
  • User wants Satori JSX templates, AI image generation, or a content-aware workflow that extracts page meaning into a visual card
  • User needs one of the six visual styles (Terminal, Magazine, Swiss, Pixel, Brutalist, Newspaper)

When NOT to Use

  • Twitter/X Card images (1200×675, 2:1) — use twitter-card-image-generator instead
  • Only setting HTML meta tags (not creating the image file) — use open-graph from marketing-skills
  • No-code visual editor or hosted API — use Oginify instead of running an agent pipeline

When invoking: On first use, open with 1–2 sentences on what this skill covers and why it matters, then go directly to the generation approach that best fits the user's needs. On subsequent use or when the user asks to skip, go directly to the main output.

1. Six Generation Approaches

These are six fundamentally different ways to produce an OG image. They answer "how does an image get made?" — orthogonal to "what does the image look like?" (which §3 Style System answers).

1.1 AI Image Generation (Core #1)

Use an external AI image model to generate the OG image directly from a prompt. This is the most flexible approach — no template code, no font files, no layout engine. The model handles composition, color, and visual hierarchy in one shot.

Read the full file on GitHub · 482 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. 12d ago First seen · 482 lines · 0 tokens per session scan A 28a3f3ad765b

Subscribe to this mod's changes

og-image-generator is a skill published in the GitHub repository kostja94/social-cards-skills (9 stars, last pushed 3mo ago), licensed MIT. It adds 187 tokens to every session and 6,503 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories