prompt-to-asset: Skill for Claude Code

.claude/skills/og-image/SKILL.md

og-image is a skill for Claude Code from MohamedAbdallah-14/prompt-to-asset. It costs 67 tokens per session (805 once invoked), scanned A, original, MIT.

A generator for Open Graph and Twitter Card images, the preview images shown when a webpage is shared on social networks. It creates fixed-size PNG or JPEG files with rendered text.

In plain words
What is it for?
Use it to create 1200×630 social sharing images, optionally with a generated illustration behind the text, while meeting file-size and contrast requirements.
Why use it?
It keeps social preview images readable and consistent by rendering headlines with real fonts instead of relying on generated lettering.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is MohamedAbdallah-14/prompt-to-asset's own configuration. It tells Claude Code how to work on prompt-to-asset itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything prompt-to-asset configures →

Part of the prompt-to-asset plugin — 13 skills, 1 MCP server shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to MohamedAbdallah-14/prompt-to-asset. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/MohamedAbdallah-14/prompt-to-asset/main/.claude/skills/og-image/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/MohamedAbdallah-14/prompt-to-asset

Made for: Claude Code.

Or install prompt-to-asset, the plugin that ships this one along with the rest of its 13 skills, 1 MCP server.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mohamedabdallah-14/prompt-to-asset/og-image"><img src="https://agentmods.dev/badge/skills/mohamedabdallah-14/prompt-to-asset/og-image.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 805 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00067 $0.00805
Opus 5 $0.00034 $0.00402
Sonnet 5 $0.00013 $0.00161
Haiku 4.5 $0.00007 $0.00081

Measured 12d ago against content hash ef05f599e7a8, 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 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.

.claude/skills/og-image/SKILL.md · 75 lines

How it starts

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

OG image generation

Spec

  • Dimensions: 1200×630 (OG 1.91:1) primary. Optional: 1080×1080 square (Instagram), 2:1 Twitter Card summary_large_image.
  • Format: PNG or JPEG, <5MB, served over absolute HTTPS URL, no auth headers.
  • Text: Deterministic — use Satori + real fonts. Never sample typography from a diffusion model for OG cards; headlines get garbled (see logo skill § 3-word rule).
  • Headline: ≤8 words, 64–96pt. Subheadline: ≤15 words, 28–36pt.
  • Contrast: WCAG AA min 4.5:1 (Slack/Discord render inside their own color backgrounds).

Architecture

Default: template-based, no diffusion. The OG engine is:

  1. Satori — converts JSX or HTML+CSS to SVG with real font shaping.
  2. @resvg/resvg-js — rasterizes the SVG to PNG deterministically, no system fonts leaked.
  3. Optional hero layer — if brief says "with illustration," diffusion-generate a 1200×630 background and composite the Satori-rendered text layer on top.
  4. @vercel/og — reference Satori wrapper if running inside Next.js/Vercel.
brief + brand bundle
   ↓
pick template (centered hero, left-aligned, minimal)
   ↓
fill template slots:
   - title (required)
   - subtitle (optional)
   - logo.svg (optional, brand bundle)
   - accent color (brand palette)
   - background: solid | gradient | image
   ↓
[optional] generate background image (diffusion, see skills/hero or skills/illustration)
   ↓
satori(jsx) → SVG
   ↓
resvg.render(svg) → 1200×630 PNG
   ↓
validate: dimensions exact, <5MB, contrast, no-text-cropped

Templates (canonical)

Template id Layout Use for
centered_hero title + subtitle centered; logo bottom-left launch posts, generic pages
left_title title left-aligned; hero image right feature pages, blog posts
minimal title + brand color block landing pages
quote pull-quote + attribution blog, documentation
product_card logo + product name + tagline + accent bar product pages

Read the full file on GitHub · 75 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 · 75 lines · 67 tokens per session scan A ef05f599e7a8

Subscribe to this mod's changes

og-image is a skill published in the GitHub repository MohamedAbdallah-14/prompt-to-asset (19 stars, last pushed yesterday), licensed MIT. It adds 67 tokens to every session and 805 once invoked, about $0.0003 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-30.

Related

Other skills, from other repositories

skillshare-implement-feature

Implement a feature from a spec file or description using TDD workflow. Use this skill whenever the user asks to: add a new CLI command, implement a feature from a spec, build new functionality, add a flag, create a new internal package, or write Go code for skillshare. This skill enforces test-first development…

runkids/skillshare · 114 tokens

skillshare-update-docs

Update website docs to match recent code changes, cross-validating every flag against source. Use this skill whenever the user asks to: update documentation, sync docs with code, document a new flag or command, fix stale docs, or update the README. This skill covers all website/docs/ categories (commands, reference…

runkids/skillshare · 123 tokens

best-practices

Transforms vague prompts into optimized Claude Code prompts. Adds verification, specific context, constraints, and proper phasing. Invoke with /best-practices.

MoizIbnYousaf/Ai-Agent-Skills · 35 tokens

code-documentation

Writing effective code documentation - API docs, README files, inline comments, and technical guides. Use for documenting codebases, APIs, or writing developer guides.

MoizIbnYousaf/Ai-Agent-Skills · 35 tokens

curate-a-team-library

Use when building a managed team skills library for a real stack. Map work to shelves, browse before curating, write meaningful whyHere notes, and create a starter pack once the first pass is solid.

MoizIbnYousaf/Ai-Agent-Skills · 49 tokens

migrate-skills-between-libraries

Use when moving skills between library workspaces or upgrading from a personal library to a team library. Export from one workspace, import into another.

MoizIbnYousaf/Ai-Agent-Skills · 36 tokens