Open Graph Social Preview 标志

Open Graph Social Preview

社区
MiladJoodi
open-graph-social-preview

实现并调试 Open Graph / Twitter(X)/ Telegram / WhatsApp / LinkedIn / Discord / Facebook 链接预览。添加社交分享元数据时,或在以下情况下使用:og:image 缺失、损坏(500)、被裁切、在 X 上缓存错误,或 Next.js(或任何)网站的动态 OG 图片中波斯语文本显示异常。根据证据判断,不要盲目照搬检查清单。

概览

发布者MiladJoodi
代码仓库skills
技能名称open-graph-social-preview
星标数
24
复刻数
1
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 MiladJoodi 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Open Graph Social Preview AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/MiladJoodi/skills/tree/main/skills/open-graph-social-preview
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/MiladJoodi/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/open-graph-social-preview .claude/skills/open-graph-social-preview
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Open Graph Social Preview,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Open Graph Social Preview。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Open Graph Social Preview 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Open Graph & Social Link Previews

Practical guide for coding agents shipping share cards that work on Facebook, X, LinkedIn, WhatsApp, Telegram, and Discord.

Goal: reliable title + description + image that crawlers fetch without JS, without auth, and without platform-cache traps.

Scope & version

Skill version1.0.0
In scopeImplementation of OG/Twitter metadata and share images; debugging broken or stale social previews
Out of scopeGeneral SEO, rankings, sitemaps, content strategy, unrelated marketing

How to use this skill: Checklists and tables are aids, not a script. The agent must gather evidence, form a hypothesis, and choose a fix. Skipping diagnosis to “run every step” is incorrect. Skipping evidence to rip out working dynamic OG is also incorrect.


0. Agent Workflow (mandatory)

Never jump to “replace with static PNG.” Follow this order:

1) Inspect

  • Find how OG is implemented: metadata / generateMetadata, metadataBase, opengraph-image.*, twitter-image.*, /og routes, siteConfig.ogImage, public assets.
  • Note hosting (Vercel / Cloudflare / Docker / other / local-only).
  • Note whether current cards are static, dynamic (ImageResponse), or mixed.

2) Diagnose

  • Confirm live HTML tags (og:*, twitter:*).
  • Fetch the live image URL (status, redirects, Content-Type, size, timing).
  • Identify environment (local OK vs prod fail).
  • Check cache layer (browser / CDN / crawler / X).
  • Check origin consistency (no localhost, HTTP, wrong preview domain).

3) Plan (before any edits)

  • Emit the Pre-change brief below (required).
  • Choose Static vs Dynamic with the decision tree using that evidence.
  • List files to change and what not to touch.

4) Fix

  • Minimal change that addresses the stated root cause.
  • Do not rip out working dynamic OG without a reason tied to evidence.

5) Verify

  • Live production URL when possible (not only local).
  • Page source + direct image request + dimensions + checker/platform smoke.

6) Report

  • Use the Agent Report format at the end of this skill.

Pre-change brief (required before edits)

Output this block before modifying files. If evidence is insufficient, gather more first—do not invent a cause.

markdown
## Pre-change brief

**Root cause:** … (one clear hypothesis)
**Evidence:** … (commands, URLs, status codes, HTML snippets, local vs prod)
**Proposed fix:** … (minimal approach; static vs dynamic choice + why)
**Files affected:** …

Cross-platform code search

rg (ripgrep) is optional. Prefer this order:

bash
# 1) ripgrep if installed
rg -n "openGraph|twitter:|ogImage|opengraph-image|twitter-image|ImageResponse|metadataBase" app lib src 2>/dev/null

# 2) git grep (works in most repos)
git grep -n -E "openGraph|twitter:|ogImage|opengraph-image|twitter-image|ImageResponse|metadataBase" -- app lib src 2>/dev/null

# 3) POSIX grep fallback
grep -R -n -E "openGraph|ogImage|opengraph-image|ImageResponse|metadataBase" app lib src 2>/dev/null

Windows PowerShell (if bash tools unavailable):

powershell
Get-ChildItem -Recurse -Include *.ts,*.tsx,*.js,*.jsx app,lib,src -ErrorAction SilentlyContinue |
  Select-String -Pattern "openGraph|ogImage|opengraph-image|ImageResponse|metadataBase"

1. When to use

  • Adding/changing og:* / twitter:*
  • Missing / broken / wrong share image
  • Checker: Image is invalid / Internal Server Error
  • Telegram OK, X empty (or reverse)
  • Persian/Arabic issues in generated OG
  • Choosing static PNG vs opengraph-image.tsx / ImageResponse

Out of scope: general SEO, sitemaps, rankings, content strategy.


2. Non‑negotiables

  1. Crawlers do not run your client React bundle. Tags must be in initial HTML.
  2. Image URL must be absolute HTTPS, publicly fetchable, return a real image.
  3. Prefer fixing the existing approach if it is close to working.
  4. Prefer static images when dynamic generation is broken, fragile, slow, or unnecessary.
  5. Do not replace working dynamic infrastructure without a documented reason.
  6. Code looking correct ≠ fixed. Verify live.

3. Decision tree: Static vs Dynamic

Is there an existing opengraph-image.* / ImageResponse / /og route?
├─ YES → Does it work in production (200, image/*, correct render)?
│        ├─ YES → Keep it unless product needs a simpler static card.
│        │        (Optional: harden fonts/assets/timeouts; don't rip out.)
│        └─ NO  → Prefer static PNG (or fix dynamic only if dynamic is required).
└─ NO  → Prefer static PNG in /public + metadata images.

Prefer static when

  • Dynamic route 404/500/timeouts
  • Missing fonts/assets in deploy
  • Crawlers fail while local works
  • No need for per-page generated art
  • Persian/Arabic shaping in Satori is wrong and redesigning fonts is costly
  • You need maximum crawler reliability

Prefer dynamic when

  • It already works in production
  • Per-route titles/descriptions must be baked into the image
  • Brand requires programmatic cards
  • Fonts + assets are proven in the target runtime
  • Latency is acceptable for crawlers

Never

  • Delete a working opengraph-image.tsx “just because static is safer”
  • Leave a crashing file-based OG route alongside good metadata (file route still gets hit)

4. Image specs

PropertyRecommendation
Aspect1.91:1
Size1200×630
FormatPNG or JPG
Weight< 5 MB (aim < 1 MB)
Safe areaKeep logo/title away from edges

Wrong aspect (e.g. 1920×1581) often still displays but may crop/letterbox.

Dedicated share file is best: public/og.png or public/.../og-1200x630.png.


5. Required tags

html
<meta property="og:type" content="website" />
<meta property="og:url" content="https://example.com/" />
<meta property="og:title" content="Title" />
<meta property="og:description" content="Description" />
<meta property="og:image" content="https://example.com/og.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:locale" content="fa_IR" />

<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Title" />
<meta name="twitter:description" content="Description" />
<meta name="twitter:image" content="https://example.com/og.png" />

Rules:

  • twitter:card = summary_large_image for large cards
  • Absolute HTTPS image URLs in production
  • X falls back to og:* when Twitter image tags are incomplete; still set both

6. Next.js App Router (15/16) guidance

Applies to App Router Metadata API in Next.js 15 and 16.

Building blocks

PieceRole
metadataBaseResolves relative image/canonical URLs to absolute
openGraph.imagesDeclares OG images in Metadata API
twitter.imagesDeclares Twitter images
generateMetadataPer-route/dynamic metadata (often async)
app/opengraph-image.tsx (or .png/.jpg)File-based OG image convention
app/twitter-image.tsx (or static)File-based Twitter image
Nested layout.tsx / page.tsx metadataRoute overrides

Precedence / conflicts (practical)

  1. File-based opengraph-image.* / twitter-image.* in the matching segment are served as that segment’s OG/Twitter image endpoints and are linked from metadata automatically.
  2. Explicit openGraph.images / twitter.images in Metadata API also emit tags.
  3. If both exist, crawlers may see multiple images or hit the file route URL. A broken opengraph-image.tsx (500) will fail even if Metadata points at a good static file—crawlers often request the convention URL.
  4. Nested routes override/merge with parents via Next metadata rules; a child generateMetadata can replace images for that path.
  5. Wrong metadataBase (localhost / preview host) produces wrong absolute og:image / og:url in production HTML.

metadataBase: prefer a fixed production origin

Default (recommended): set metadataBase from a stable production URL such as NEXT_PUBLIC_APP_URL / siteConfig.url.

ts
metadataBase: new URL(
  process.env.NEXT_PUBLIC_APP_URL ?? "https://example.com"
)

Why not always derive host from headers()?

  • Behind Proxy/CDN, x-forwarded-host / host can be wrong, duplicated, or internal.
  • Preview / middleware hosts can leak into absolute og:image and og:url.
  • Social crawlers then cache the wrong origin.

Use request-derived host only when you truly need it, for example:

  • Multi-tenant sites where each host must emit its own absolute URLs
  • Local/preview tooling where you deliberately want the current request host

Even then: validate allowlists, prefer x-forwarded-host carefully, and never ship localhost in production HTML.

Example A — Root metadata with fixed production origin (Next 15/16)

tsx
// app/layout.tsx
import type { Metadata } from "next"

const siteUrl = process.env.NEXT_PUBLIC_APP_URL ?? "https://example.com"

export const metadata: Metadata = {
  metadataBase: new URL(siteUrl),
  title: { default: "Example", template: "%s · Example" },
  description: "…",
  openGraph: {
    type: "website",
    locale: "fa_IR",
    url: siteUrl,
    siteName: "Example",
    title: "Example",
    description: "…",
    images: [
      {
        url: "/og.png", // public/og.png → absolute via metadataBase
        width: 1200,
        height: 630,
        alt: "Example",
      },
    ],
  },
  twitter: {
    card: "summary_large_image",
    title: "Example",
    description: "…",
    images: ["/og.png"],
  },
}

Put the file at public/og.png. If a crashing app/opengraph-image.tsx exists, remove or fix it so it cannot 500.

Example A2 — Request-derived host (only when required)

tsx
import type { Metadata } from "next"
import { headers } from "next/headers"

const FALLBACK = process.env.NEXT_PUBLIC_APP_URL ?? "https://example.com"
const ALLOWED = new Set(["example.com", "www.example.com"])

export async function generateMetadata(): Promise<Metadata> {
  const h = await headers()
  const raw =
    h.get("x-forwarded-host")?.split(",")[0]?.trim() ||
    h.get("host")?.trim() ||
    ""
  const host = ALLOWED.has(raw) ? raw : new URL(FALLBACK).host
  const proto =
    h.get("x-forwarded-proto")?.split(",")[0]?.trim() || "https"
  const metadataBase = new URL(`${proto}://${host}`)

  return {
    metadataBase,
    openGraph: {
      url: metadataBase.origin,
      images: [{ url: "/og.png", width: 1200, height: 630 }],
    },
    twitter: {
      card: "summary_large_image",
      images: ["/og.png"],
    },
  }
}

Example B — Route generateMetadata override (params as Promise — Next 15+)

tsx
// app/docs/[slug]/page.tsx
import type { Metadata } from "next"

type Props = { params: Promise<{ slug: string }> }

export async function generateMetadata({ params }: Props): Promise<Metadata> {
  const { slug } = await params
  const title = `Docs · ${slug}`
  const description = "…"

  return {
    title,
    description,
    alternates: { canonical: `/docs/${slug}` },
    openGraph: {
      title,
      description,
      type: "article",
      images: [{ url: "/og.png", width: 1200, height: 630 }],
    },
    twitter: {
      card: "summary_large_image",
      title,
      description,
      images: ["/og.png"],
    },
  }
}

Example C — Keep a working dynamic file convention

tsx
// app/opengraph-image.tsx
import { ImageResponse } from "next/og"

export const runtime = "nodejs"
export const size = { width: 1200, height: 630 }
export const contentType = "image/png"
export const alt = "Example"

export default async function Image() {
  // Prefer bundled fonts/assets that exist in production.
  return new ImageResponse(
    (
      <div
        style={{
          width: "100%",
          height: "100%",
          display: "flex",
          alignItems: "center",
          justifyContent: "center",
          background: "#09090b",
          color: "white",
          fontSize: 64,
        }}
      >
        Example
      </div>
    ),
    { ...size }
  )
}

Only keep this if /opengraph-image returns 200 + image/png in production and text renders correctly.

Example D — Conflict to avoid

text
app/opengraph-image.tsx  → 500 (missing font)
layout metadata images   → /og.png (fine)

Result: crawlers still often fail on the convention URL / broken generation.

Fix the file route or remove it and rely on Metadata + public/og.png — do not leave both fighting.

Inspect before changing

Use the cross-platform search commands in §0.


7. Live image URL diagnostics

Target the exact URL from HTML (og:image / twitter:image).

curl (adjust URL)

bash
curl -sI -L --max-redirs 10 "https://example.com/og.png"
curl -sI -L "https://example.com/opengraph-image"
curl -sL -o /tmp/og-out --write-out "http=%{http_code} type=%{content_type} size=%{size_download} time=%{time_total} final=%{url_effective}\n" "https://example.com/og.png"
file /tmp/og-out

Windows (PowerShell):

powershell
Invoke-WebRequest -Uri "https://example.com/og.png" -Method Head -MaximumRedirection 10 |
  Select-Object StatusCode, Headers

Verify

CheckExpect
HTTP statusFinal 200 (after redirects)
Redirect chainNo login/HTML interstitial
Final URLProduction HTTPS origin
Content-Typeimage/png, image/jpeg, or image/webp
BodyReal image bytes (file says PNG/JPEG…) — not HTML
Size> ~1KB; < 5MB
TimePrefer fast (< ~2–3s); slow responses get dropped by crawlers
AuthNo cookie/login required
Middleware/WAFBot UA not blocked
robotsImage/HTML not disallowed for crawlers that respect robots

Red flags

  • 200 + text/html → login page / error page / SPA shell
  • 302/301 → /login or marketing HTML
  • 500 on /opengraph-image → runtime exception / missing asset / font
  • Empty or tiny body → malformed generation

8. Environment-aware debugging

Identify host early (Vercel dashboard, Dockerfile, Cloudflare, next start only…).

EnvironmentCommon prod-only failures
VercelMissing files outside traced output; edge vs node runtime; cold start; env URL mismatch
CloudflareCDN cache of old image/HTML; WAF bot challenges; redirect rules
DockerDifferent WORKDIR / process.cwd(); fonts not copied into image
Preview deploysog:url/og:image pointing at preview host leaked to prod metadata
Local onlyWorks via local FS; fails when fonts/assets not in deploy

Dynamic OG checklist in prod:

  • Font paths use deploy-safe locations (prefer import/fetch of bundled assets over brittle process.cwd() guesses)
  • Runtime compatible (nodejs vs edge — fs needs node)
  • All referenced PNGs/TTFs exist in the deployment
  • No reliance on localhost absolute URLs

9. Cache debugging

Layers:

  1. Browser cache
  2. CDN cache (Cloudflare/Vercel)
  3. Platform crawler cache (Facebook/LinkedIn scrapers)
  4. X cache (aggressive; keyed by exact URL)

Facts:

  • Fixing metadata/code does not refresh an already-cached preview for the same URL.
  • X often keeps a failed “no image” card for that exact string.
  • Telegram / many checkers scrape fresher than X.

Busting:

MethodUse
Query string ?v=2Fast test for X/Telegram
New pathStronger bust
New image filenameBust CDN/image URL caches when bytes changed at same logical asset
Platform debugger “rescrape”Facebook/LinkedIn official tools

X: standalone Card Validator preview is retired; composer draft preview is ground truth.


10. Trusted checkers & platform tools

Use official tools first; third-party only as a quick second opinion.

ToolURLNotes
Facebook Sharing Debuggerhttps://developers.facebook.com/tools/debug/Official rescrape for Facebook/IG-family previews
LinkedIn Post Inspectorhttps://www.linkedin.com/post-inspector/Official LinkedIn rescrape
X / TwitterTweet composer draft with the URLNo reliable public validator; cache is URL-keyed
TelegramPaste into a Saved Messages / chatGood fresh-scrape smoke test
Optional: Open Graph previewhttps://www.opengraph.xyz/Unofficial; useful after the image URL itself is healthy

Do not treat unofficial checkers as more authoritative than: (1) raw HTML tags, (2) direct image curl, (3) official platform debuggers / composer.


11. URL / canonical consistency

On the live production HTML, confirm same production origin for:

  • page URL
  • canonical
  • og:url
  • og:image
  • twitter:image

Reject:

  • http://
  • localhost / 127.0.0.1
  • accidental preview deployment host
  • wrong domain / staging

Fix metadataBase (prefer fixed NEXT_PUBLIC_APP_URL), siteConfig.url, and any hardcoded origins.


12. Crawler safety

Crawlers must fetch initial HTML, OG image, and redirects without:

  • JavaScript execution
  • authentication / cookies
  • client-only meta injection
  • interactive challenges aimed at humans
  • unbounded server work

Keep image/metadata endpoints fast and deterministic. Avoid long ImageResponse work on cold starts when crawlers are the audience.


13. Persian / Arabic OG text

Satori / next/og frequently fails at glyph joining (letters look disconnected).

Do not auto-switch to static PNG solely because the site is Persian.

Inspect:

  • Font files actually loaded in the OG route
  • Format (TTF/OTF supported by the renderer)
  • Font present in production bundle
  • RTL / direction handling
  • Shaping result on the production PNG (open the image URL)
  • Punctuation and digits (Persian vs Latin)

If production PNG shows correct joined Persian → dynamic can stay.
If disconnected / missing glyphs and fixing fonts is hard → static designed PNG is the reliable fix.


14. Failure → cause → fix

SymptomCauseFix
No image tagsMissing metadataAdd openGraph/twitter images
Tags present, image 404Wrong pathFix public path / filename
Image 500Dynamic crash / missing font/assetFix route or switch to static
200 but HTML bodyMiddleware/login/error HTMLExclude OG routes; allow public GET
200 wrong Content-TypeMisconfigured routeReturn image/*
Redirect to loginAuth middlewareBypass for OG image + HTML GET for bots if needed
Local OK, prod failcwd/fonts/assets/runtimeBundle assets; node runtime; static fallback
localhost in tagsBad metadataBase/urlFixed production origin
Wrong host behind CDNRequest-derived metadataBasePrefer NEXT_PUBLIC_APP_URL
Telegram OK, X emptyX cacheNew URL ?v=N; don't expect old posts to update
Cropped cardBad aspect ratioExport 1200×630
Disconnected PersianSatori shaping/fontsFix fonts or static PNG
Duplicate/conflicting imagesMetadata + file conventionAlign or remove broken file route
Nested route wrong cardChild metadata overrideFix route generateMetadata
Empty/malformed imageGenerator bugRegenerate; verify with file
Stale image bytesCDN cacheNew filename or cache purge
Edge runtime + fsIncompatibleexport const runtime = "nodejs" or avoid fs

15. Debug playbook (short)

  1. View-source / fetch HTML: tags present? absolute HTTPS?
  2. Fetch image URL: status, type, bytes, time
  3. Identify static vs dynamic vs conflict
  4. Check origin consistency
  5. Check host-specific issues
  6. Plan fix (decision tree)
  7. Apply minimal fix
  8. Verify live
  9. If X still stale → bust URL and retest composer
  10. Report

16. Verification checklist (after every fix)

Do not claim fixed until checked:

  • Production HTML contains correct og:* / twitter:*
  • og:image / twitter:image final URL = 200 + image/*
  • Body is a valid image; dimensions sane (prefer ~1200×630)
  • No localhost/preview/HTTP in tags
  • Facebook Debugger and/or LinkedIn Inspector when those platforms matter
  • Telegram or X composer smoke OK
  • X composer OK on a fresh URL if prior URL was poisoned
  • Noted whether old URLs still need cache expiry

17. Agent Report format

markdown
## OG / Social preview report

**Root cause:** …
**Files changed:** …
**What changed:** …
**Why it works:** …
**Verification:**
- HTML tags: …
- Image URL status/type/size/time: …
- Dimensions: …
- Checker/platform: …
**Remaining limitations:** …
**Cache busting required?** yes/no — recommended URL if yes: …

18. What not to do

  • Run this skill as a blind checklist without evidence
  • Edit files before emitting the Pre-change brief
  • Replace working dynamic OG without cause
  • Leave a crashing opengraph-image.tsx in place
  • Assume code review equals production success
  • Assume X updates old posts after a fix
  • Publish localhost/preview origins in OG tags
  • Prefer request-derived metadataBase by default behind Proxy/CDN
  • Treat unofficial OG sites as more authoritative than curl + official debuggers
  • Treat this skill as general SEO

常见问题

Open Graph Social Preview AI 技能有什么作用?

实现并调试 Open Graph / Twitter(X)/ Telegram / WhatsApp / LinkedIn / Discord / Facebook 链接预览。添加社交分享元数据时,或在以下情况下使用:og:image 缺失、损坏(500)、被裁切、在 X 上缓存错误,或 Next.js(或任何)网站的动态 OG 图片中波斯语文本显示异常。根据证据判断,不要盲目照搬检查清单。

为什么在 TypingMind 中使用 Open Graph Social Preview?

因为您只需安装一次,就能搭配任何模型使用。Open Graph Social Preview 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Open Graph Social Preview?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/MiladJoodi/skills/tree/main/skills/open-graph-social-preview。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Open Graph Social Preview?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Open Graph Social Preview 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Open Graph Social Preview 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Open Graph Social Preview AI 技能免费吗?

是的。MiladJoodi 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇