og-generation

og-generation is a skill for Claude Code, Codex from termio-sh/termio. It costs 89 tokens per session (1,090 once invoked), scanned C, original, MIT.

A process for regenerating a website's OG image, the preview card shown when a page is shared on social networks and messaging apps.

In plain words
What is it for?
Use it after changing the landing-page headline, subline, agent icons, or screenshot layout, so the updated card can be rendered from the site's actual components.
Why use it?
It keeps the sharing preview aligned with the website's real hero design and current text.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/termio-sh/termio/og-generation
Any agent
npx skills add termio-sh/termio --skill og-generation
Clone the repo
git clone --depth 1 https://github.com/termio-sh/termio

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-generation

README.md
[![agentmods](https://agentmods.dev/badge/skills/termio-sh/termio/og-generation.svg)](https://agentmods.dev/skills/termio-sh/termio/og-generation)
Your own site
<a href="https://agentmods.dev/skills/termio-sh/termio/og-generation"><img src="https://agentmods.dev/badge/skills/termio-sh/termio/og-generation.svg" alt="Measured on agentmods" height="20"></a>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,090 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. Scan, not verified.
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 $0.00089 $0.01090
Opus 5 $0.00044 $0.00545
Sonnet 5 $0.00018 $0.00218
Haiku 4.5 $0.00009 $0.00109

Measured 5d ago against content hash 964e3612c4e2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

og-generation scanned grade C with 2 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 5d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf src/app/og-card

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

Verify with `curl -s localhost:<port>/og-card` returning 200 (and kill the
skills/og-generation/SKILL.md · 85 lines

How it starts

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

OG Card Generation

The OG image is NOT hand-drawn or CSS-faked: it is a screenshot of a temporary Next.js route that reuses the site's real components (HeroGradient WebGL aurora + grain overlay + AgentIcon), so the card always matches the live hero. The canonical card source lives in this skill at assets/og-card-page.tsx.

Workflow

All paths below are relative to web/landing/.

  1. Restore the temp route from the skill asset:

    mkdir -p src/app/og-card
    cp <skill-dir>/assets/og-card-page.tsx src/app/og-card/page.tsx
    
  2. Apply the requested changes (copy, screenshot, layout) to src/app/og-card/page.tsx. Current design decisions — keep them unless the user overrides:

    • Wordmark is capitalized "Termio" (matches the nav Logo component).
    • Headline slogan has no trailing period.
    • Subline: "Terminal-first Agentic Development Environment, built for AI builders."
    • Agent row uses real AgentIcon icons; sizes are tuned (30px text / 34px icons / 30px gap) so all six agents fit on ONE row inside the 1080px left column — if you add an agent or grow the sizes, re-check that Kimi/Pi don't clip under the screenshot or wrap to a lonely second line.
    • Screenshot window: public/screenshots/hero1.png at left 1240 / top 150 / width 1560, 28px radius, white/0.18 border.
    • The page includes nextjs-portal { display: none } — this hides the Next dev-tools badge, which otherwise ships in the capture. Don't remove it.
  3. Find the landing dev server port — do NOT assume 3000. Port 3000 is often a different project (you'll get a foreign 404 page). Trick: attempt to start a server; if one is already running for this directory, Next refuses and prints the existing server's port:

    npx next dev -p 3210   # either becomes the server, or prints
                           # "Another next dev server is already running.
                           #  - Local: http://localhost:3001"
    

    Verify with curl -s localhost:<port>/og-card returning 200 (and kill the server afterwards if you started it yourself).

Read the full file on GitHub · 85 lines

Files

What ships with it

1 file 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. 5d ago First seen · 85 lines · 89 tokens per session scan C 964e3612c4e2

Subscribe to this mod's changes

og-generation is a skill published in the GitHub repository termio-sh/termio (395 stars, last pushed yesterday), licensed MIT. It adds 89 tokens to every session and 1,090 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.