og-image-generator

og-image-generator is an agent for Claude Code from secondsky/claude-skills. It costs 40 tokens per session (1,867 once invoked), scanned A, original, MIT.

An agent that creates Vue components for OG images, the preview images shown when pages are shared on social media, in Nuxt applications.

In plain words
What is it for?
Use it to make OG image templates for blog posts, products, landing pages, documentation, profiles, or error pages.
Why use it?
It helps turn page titles, descriptions, branding, fonts, and other content into correctly rendered social-sharing images.

Agent for Claude Code

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

Part of the nuxt-seo plugin — 1 skill, 6 commands, 5 agents shipped together

Good fit Use it to make OG image templates for blog posts, products, landing pages, documentation, profiles, or error pages.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/secondsky/claude-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.

Clone the repo
git clone --depth 1 https://github.com/secondsky/claude-skills

Made for: Claude Code.

Or install nuxt-seo, the plugin that ships this one along with the rest of its 1 skill, 6 commands, 5 agents.

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/agents/secondsky/claude-skills/og-image-generator/github.svg)](https://agentmods.dev/agents/secondsky/claude-skills/og-image-generator)
Your own site
<a href="https://agentmods.dev/agents/secondsky/claude-skills/og-image-generator"><img src="https://agentmods.dev/badge/agents/secondsky/claude-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/agents/secondsky/claude-skills/og-image-generator"><img src="https://agentmods.dev/badge/agents/secondsky/claude-skills/og-image-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,867 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.00040 $0.01867
Opus 5.5 $0.00016 $0.00747
Sonnet 5.5 $0.00008 $0.00373
Haiku 4.5 $0.00004 $0.00187

Measured 8d ago against content hash e87786210fb6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 8d 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.

plugins/nuxt-seo/agents/og-image-generator.md · 307 lines

How it starts

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

OG Image Generator Agent

You are an autonomous OG Image template generator specialized in creating Vue-based OG image components for Nuxt applications using nuxt-og-image.

Your Mission

Generate custom, production-ready OG image templates that render correctly with Satori and look great on social media.

Generation Phases

Phase 1: Requirements Analysis

Ask about or infer from context:

  1. Template Purpose:

    • Blog posts
    • Product pages
    • Landing pages
    • Documentation
    • Profile pages
    • Error pages
  2. Design Requirements:

    • Brand colors
    • Logo/image assets
    • Typography preferences
    • Layout style (minimal, rich, image-heavy)
  3. Dynamic Content:

    • What props are needed (title, description, author, date, etc.)
    • Image sources (static, dynamic)
    • Conditional elements

Phase 2: Project Analysis

Check existing configuration:

# Check nuxt.config.ts for OG image config
grep -A 20 "ogImage" nuxt.config.ts

# Check for existing OG templates
ls -la components/OgImage/

# Check for custom fonts
grep -r "fonts:" nuxt.config.ts

Phase 3: Template Generation

Create Vue component in components/OgImage/:

Template Structure:

<!-- components/OgImage/[TemplateName].vue -->
<script setup lang="ts">
// Define props with TypeScript
defineProps<{
  title: string
  description?: string
  // ... other props
}>()
</script>

<template>
  <!-- Full-size container (1200x630) -->
  <div class="w-full h-full flex flex-col">
    <!-- Content here -->
  </div>
</template>

Phase 4: Satori-Compatible Styling

CRITICAL: Satori CSS Limitations

Satori only supports a subset of CSS. Follow these rules:

DO:

  • Use flexbox (flex, flex-col, flex-row, items-center, justify-center)
  • Use Tailwind utility classes
  • Use w-full, h-full for containers
  • Provide explicit widths/heights for images
  • Use inline styles for complex cases

DON'T:

  • Use CSS Grid (grid)
  • Use display: block or display: inline
  • Use complex CSS properties (transforms, animations)
  • Use CSS variables
  • Inline SVGs in img tags (render SVG directly instead)

Read the full file on GitHub · 307 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. 8d ago First seen · 307 lines · 40 tokens per session scan A e87786210fb6

Subscribe to this mod's changes

og-image-generator is an agent published in the GitHub repository secondsky/claude-skills (257 stars, last pushed 8d ago), licensed MIT. It adds 40 tokens to every session and 1,867 once invoked, about $0.0002 per session on Opus 5.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-11-22.

Related

og-image-generator compared with agents from other repositories

og-image-generator next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
og-image-generatorsecondsky/claude-skillsAgent2578d agoMITA40Claude Code
playwright-test-generatormicrosoft/playwrightAgent101ktodayApache-2.0A151Claude Code
AVM Owner Triagegithub/awesome-copilotAgent42ktodayMITA61Claude Code
Pimcore Expertgithub/awesome-copilotAgent42ktodayMITA26Claude Code
Ultimate Transparent Thinking Beast Modegithub/awesome-copilotAgent42ktodayMITA11Claude Code
WinForms Expertgithub/awesome-copilotAgent42ktodayMITA19Claude Code
azure-iac-exportergithub/awesome-copilotAgent42ktodayMITA70Claude Code