write-social-preview-head

write-social-preview-head is a skill for Codex from tranfu-labs/tranfu-skills. It costs 204 tokens per session (1,892 once invoked), scanned A, original, MIT.

A web-page head-writing tool for controlling how links appear when shared in Lark, Slack, WeChat, and similar messaging platforms. It adds the page title, description, preview image, icon, and related metadata that crawlers read.

In plain words
What is it for?
Use it when creating or updating Open Graph, Twitter card, favicon, touch-icon, manifest, canonical, and related head tags for shareable pages.
Why use it?
It helps fix missing or outdated link previews and avoids relying on JavaScript or browser behavior that social crawlers may not support.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it when creating or updating Open Graph, Twitter card, favicon, touch-icon, manifest, canonical, and related head tags for shareable pages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tranfu-labs/tranfu-skills/write-social-preview-head
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 tranfu-labs/tranfu-skills --skill write-social-preview-head
Clone the repo
git clone --depth 1 https://github.com/tranfu-labs/tranfu-skills

Made for: 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 write-social-preview-head

README.md
[![agentmods](https://agentmods.dev/badge/skills/tranfu-labs/tranfu-skills/write-social-preview-head/github.svg)](https://agentmods.dev/skills/tranfu-labs/tranfu-skills/write-social-preview-head)
Your own site
<a href="https://agentmods.dev/skills/tranfu-labs/tranfu-skills/write-social-preview-head"><img src="https://agentmods.dev/badge/skills/tranfu-labs/tranfu-skills/write-social-preview-head/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 write-social-preview-head

Your own site · 80×15
<a href="https://agentmods.dev/skills/tranfu-labs/tranfu-skills/write-social-preview-head"><img src="https://agentmods.dev/badge/skills/tranfu-labs/tranfu-skills/write-social-preview-head.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 204 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,892 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00204 $0.01892
Opus 5 $0.00102 $0.00946
Sonnet 5 $0.00041 $0.00378
Haiku 4.5 $0.00020 $0.00189

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

Security

Grade A, and why

write-social-preview-head scanned grade A with 1 finding 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 9d 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.

Makes network callslowCapability

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

curl -L -I https://example.com/
own-skills/write-social-preview-head/SKILL.md · 135 lines

How it starts

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

核心规则

社交分享场景优先保证爬虫能在初始 HTML 的 <head> 里直接读到完整预览信息,不依赖客户端 JS 注入,不依赖浏览器容错,也不要把 favicon 当作唯一 icon 来源。

对 Lark/飞书这类 IM 预览,图像优先级按 og:image > twitter:image > body 首张大于 100x100 的图片 > 空处理。因此页面 head 必须把 OG/Twitter 主图写完整,并提供 icon/touch icon/manifest 的一致资源链路。

Head 编写清单

每个需要被分享的 HTML 页面都要显式写这些标签:

<title>Page Title</title>
<meta name="description" content="Short page description" />
<link rel="canonical" href="https://example.com/page/" />

<meta property="og:type" content="website" />
<meta property="og:site_name" content="Site Name" />
<meta property="og:locale" content="zh_CN" />
<meta property="og:url" content="https://example.com/page/" />
<meta property="og:title" content="Page Title" />
<meta property="og:description" content="Short page description" />
<meta property="og:image" content="https://example.com/og-image-1200x630-YYYYMMDD.png" />
<meta property="og:image:secure_url" content="https://example.com/og-image-1200x630-YYYYMMDD.png" />
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="Readable image alt text" />

<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Page Title" />
<meta name="twitter:description" content="Short page description" />
<meta name="twitter:image" content="https://example.com/og-image-1200x630-YYYYMMDD.png" />

<link rel="image_src" href="https://example.com/og-image-1200x630-YYYYMMDD.png" />
<link rel="shortcut icon" href="/favicon-YYYYMMDD.ico" sizes="32x32" type="image/x-icon" />
<link rel="icon" type="image/png" sizes="32x32" href="https://example.com/favicon-32x32-YYYYMMDD.png" />
<link rel="icon" type="image/png" sizes="16x16" href="https://example.com/favicon-16x16-YYYYMMDD.png" />
<link rel="apple-touch-icon" sizes="180x180" href="https://example.com/apple-touch-icon-YYYYMMDD.png" />
<link rel="apple-touch-icon-precomposed" sizes="180x180" href="https://example.com/apple-touch-icon-YYYYMMDD.png" />
<link rel="manifest" href="https://example.com/manifest.json" />

Read the full file on GitHub · 135 lines

Files

What ships with it

5 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. 9d ago First seen · 135 lines · 204 tokens per session scan A ec2075cbdc45

Subscribe to this mod's changes

write-social-preview-head is a skill published in the GitHub repository tranfu-labs/tranfu-skills (2 stars, last pushed 2d ago), licensed MIT. It adds 204 tokens to every session and 1,892 once invoked, about $0.0010 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

chakra-ui-builder

Build responsive, accessible UI components and layouts using Chakra UI v3, install or configure Chakra UI in new and existing projects, and design scalable themes using tokens, semantic tokens, recipes, and slot recipes. Use this skill whenever a user asks to build, create, or generate any UI component, page, form…

chakra-ui/chakra-ui · 214 tokens

visual-ralph

Visual Ralph orchestration for frontend UI from generated references, static references, or live URL targets, using $ultragoal with built-in visual verdict and pixel-diff evidence until the implementation matches and leaves a reproducible design system.

Yeachan-Heo/oh-my-codex · 52 tokens

frontend-visual-qa

Audits already-rendered web, landing-page, HTML deck/slide, browser tool/game, dashboard/admin, design-system, and desktop UIs using real-browser or native-app journeys, inspected screenshots, DOM geometry, responsive or projection viewports, and a bundled Playwright sweep. Use after UI implementation to find…

daymade/claude-code-skills · 145 tokens

prototype-web

A clickable, high-fidelity web product prototype with navigation, a hero section, feature cards, steps, social proof, and optional pricing. It is designed to resemble a finished landing page while remaining a prototype.

nexu-io/html-anything · 24 tokens

waitlist-page

A simple waitlist page for collecting email addresses from people interested in a new product or early-access release.

nexu-io/html-anything · 25 tokens

refactoring-ui

Audit and fix visual hierarchy, spacing, color, and depth in web UIs. Use when the user mentions "my UI looks off" (or amateur/unprofessional), "fix the design", "Tailwind styling", "color palette", "visual hierarchy", "design system", "spacing scale", or "component styling". Also trigger when building consistent…

wondelai/skills · 132 tokens