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

twitter-cards

できること

このスキルは、ページを X で共有したときの表示を決めるタグを追加します。SNS でリンクを共有するサイト運営者やマーケター向けです。

使う場面

  • ✓X で共有したページが、単なるリンクとしてしか表示されないとき。
  • ✓新しいサイトに、SNS で共有するためのタグが必要なとき。
  • ✓共有された記事で、大きな画像のプレビューを表示したいとき。

スキルのリンク

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

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

使い方

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

貼り付け用メッセージ

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

AIへの頼み方の例

“ブログ記事を X で共有すると、ただのリンクとしか表示されません。画像と説明が表示されるように、正しいタグを追加してもらえますか。”

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

仕組み

エージェントは、ページの head に、カードの種類、タイトル、説明、画像のメタタグを追加します。X は、Twitter 専用のタグがないときは Open Graph のタグを代わりに使います。

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

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

Add Twitter Card meta tags

Pages shared on X without Twitter Cards show only a bare link; Cards add an image and description that significantly increase click-through rates from social traffic.

Quick Reference

  • Add <meta name="twitter:card" content="summary_large_image"> to enable rich previews when shared on X (Twitter)
  • Minimum required tags: twitter:card, twitter:title, twitter:description
  • X falls back to Open Graph tags (og:title, og:image) if Twitter-specific tags are absent
  • Recommended image size for summary_large_image: 1200×630 px, max 5 MB, JPG/PNG/WebP

Check

Inspect <head> for <meta name="twitter:card">, <meta name="twitter:title">, <meta name="twitter:description">, and <meta name="twitter:image">. Verify the card type is valid (summary or summary_large_image). Test the URL in the X Card Validator.

Fix

Add the required Twitter Card meta tags to the <head>. For article/blog pages use summary_large_image. Ensure twitter:image points to an absolute URL of an image at least 300×157 px (ideally 1200×630 px) under 5 MB.

Explain

Explain how Twitter Cards enhance shared links, the difference between summary and summary_large_image card types, and how X falls back to Open Graph tags.

Code Review

Review metadata generation, rendered HTML, structured data, and response headers related to Add Twitter Card meta tags. Flag exact routes or templates where search-facing output violates the rule, and describe how to verify the final page output.


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

Rule page: https://frontendchecklist.io/rules/seo/twitter-cards

よくある質問

summary と summary_large_image の違いは何ですか?

summary は小さなカードで、summary_large_image は大きな画像を表示します。記事には大きい方を勧めています。

画像のサイズはどのくらいにすべきですか?

1200×630ピクセル、5MB 未満で、JPG、PNG、WebP のいずれかを推奨しています。

カードの見た目を確認できますか?

はい。X Card Validator で URL をテストすることを勧めています。

詳細

作者による元の説明

Use when applies to any page intended to be shared on X (Twitter). Use when auditing social sharing previews or adding social meta tags to a new site.

repo: thedaviddias/Front-End-Checklist

人気

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

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

0

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

コメント

  • …

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

似ているスキル