本文へスキップ
Skillpedia
SNS75k · #2960

og-tags

できること

このスキルは、ページのheadセクションにあるソーシャル共有用のタグを確認し、不足しているものを追加します。共有リンクを分かりやすく魅力的に見せたいサイト運営者向けです。

使う場面

  • ✓ページにソーシャル共有用のタグが正しくあるか確認するようエージェントに頼むとき。
  • ✓SNSで共有されたリンクに、推測されたタイトルや違う画像が表示されるとき。
  • ✓新しいページを公開し、共有の準備として完全なタグを付けたいとき。

スキルのリンク

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/og-tags/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/og-tags/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“私のページにソーシャル共有用のタグがあるか確認し、不足しているものを追加してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、ページのheadでog:title、og:description、og:image、og:url、og:typeを探します。不足しているタグを、空でない値で補い、画像とURLには絶対HTTPSのアドレスを使います。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Open Graph Tags

Open Graph tags control how your pages appear when shared on Facebook, LinkedIn, Slack, and other platforms—missing or incorrect tags result in unappealing link previews that reduce click-through rates.

Quick Reference

  • Include og:title, og:description, og:image, and og:url on every page
  • Use absolute URLs for og:image and og:url
  • og:image should be at least 1200×630 px for optimal display
  • og:type defaults to 'website' if omitted, but setting it explicitly is best practice

Check

Check the <head> for Open Graph meta tags: og:title, og:description, og:image, og:url, and og:type. Verify all values are non-empty and og:image/og:url use absolute HTTPS URLs.

Fix

Add the four required Open Graph meta tags to the <head>: og:title (≤95 chars), og:description (≤200 chars), og:image (absolute HTTPS URL, 1200×630), og:url (canonical absolute URL). Add og:type='website' for standard pages.

Explain

Open Graph tags control how this page is displayed when shared on social platforms like Facebook, LinkedIn, and Slack. Without them, platforms fall back to guessing the title, description, and image, often with poor results.

Code Review

Check the rendered <head> for all five core OG properties: og:title, og:description, og:image, og:url, og:type. Verify og:image and og:url values start with 'https://'. Flag any empty content attributes. Compare og:url against the canonical tag — they must match exactly.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/seo/og-tags

よくある質問

必須のタグはどれですか?

このスキルは、og:title、og:description、og:image、og:urlを全ページの基本のタグとして挙げ、og:typeも推奨しています。

URLはなぜ絶対アドレスである必要がありますか?

SNSのプラットフォームが、画像とページを確実に取得するには完全なアドレスが必要だからです。

これらのタグがないとどうなりますか?

プラットフォームがタイトル、説明、画像を推測するため、多くの場合、見栄えの悪い結果になります。

詳細

作者による元の説明

Use when auditing a web page's social sharing metadata. Applies to any page users might share on social networks or messaging apps.

repo: thedaviddias/Front-End-Checklist

人気

GitHubのスター
75k
ランキング
#2960
ライセンス
MIT
更新日
2026/10/31

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル