twitter-card-image-generator

twitter-card-image-generator is a skill for Claude Code, Codex from kostja94/social-cards-skills. It costs 142 tokens per session (4,254 once invoked), scanned A, original, MIT.

A skill for creating images used as link previews on X, formerly called Twitter, at the platform's 1200×675 pixel size.

In plain words
What is it for?
Use it to create X or Twitter Card images, summary-large-image previews, or player-card posters.
Why use it?
It accounts for X's specific image shape, cropping, dark-mode considerations, and preview behavior instead of treating the image like a generic social-media graphic.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create X or Twitter Card images, summary-large-image previews, or player-card posters.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kostja94/social-cards-skills/twitter-card-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 twitter-card-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 twitter-card-image-generator

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/kostja94/social-cards-skills/twitter-card-image-generator"><img src="https://agentmods.dev/badge/skills/kostja94/social-cards-skills/twitter-card-image-generator.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 4,254 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.00142 $0.04254
Opus 5 $0.00071 $0.02127
Sonnet 5 $0.00028 $0.00851
Haiku 4.5 $0.00014 $0.00425

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

Security

Grade A, and why

twitter-card-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.

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.

twitter-card-image-generator/SKILL.md · 274 lines

How it starts

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

Twitter Card Image Generator

Generate images optimized for X (Twitter) link previews — the cards that appear in the timeline when someone shares a link. Twitter Cards have distinct image dimensions and rendering behavior that differ from standard Open Graph. This skill covers the complete generation pipeline adapted for Twitter's 2:1 aspect ratio and platform-specific quirks.

All six generation approaches and all six visual styles from og-image-generator apply here. The only differences are: output dimensions (1200x675 instead of 1200x630), X-specific design adaptations, timeline-safe zoning, and player card support.

When to Use

  • User needs 1200×675px (2:1) images for X/Twitter link previews, summary_large_image, or player card posters
  • User mentions twitter:image, Twitter Card, X preview image, tweet preview, or timeline card design
  • User needs dark-mode-safe layouts, upper-60% content zones, or 20px edge masks for X's rounded-corner crop
  • User already uses og-image-generator and wants the Twitter-adapted variant of the same styles and pipeline

When NOT to Use

  • Generic OG images (1200×630, 1.91:1) for Facebook, LinkedIn, Slack, etc. — use og-image-generator instead
  • Only setting HTML meta tags (not creating the image file) — use twitter-cards from marketing-skills
  • SVG output — Twitter does not support SVG for card images; use PNG or JPG
  • 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 provide the main output. On subsequent use or when the user asks to skip, go directly to the main output.

1. How Twitter Consumes Images

Twitter reads images in this priority order:

  1. twitter:image — if explicitly set, used directly
  2. og:image — falls back to OG image if no Twitter Card tags exist
  3. No image — plain text link preview

Read the full file on GitHub · 274 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 274 lines · 142 tokens per session scan A cd377e6ac1de

Subscribe to this mod's changes

twitter-card-image-generator is a skill published in the GitHub repository kostja94/social-cards-skills (9 stars, last pushed 3mo ago), licensed MIT. It adds 142 tokens to every session and 4,254 once invoked, about $0.0007 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