Skip to content
Skillpedia
Social media75k · #3065

twitter-cards

What it does

This skill adds the tags that control how a page looks when it is shared on X. It is for site owners and marketers who share links on social media.

When to use it

  • ✓When a page shared on X shows only a plain link.
  • ✓When a new site needs social sharing tags.
  • ✓When a shared article should show a large image preview.

Skill link

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

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/twitter-cards/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“When I share my blog post on X it just shows a plain link. Can you add the right tags so it has a picture and description?”

5 new skills a week. 1 minute to read.

How it works

The agent adds meta tags for the card type, title, description and image to the page head. X also falls back to Open Graph tags when the Twitter-specific ones are missing.

Technical content (original SKILL.md)

Original text by the author, straight from 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

FAQ

What is the difference between summary and summary_large_image?

The summary card is smaller, while summary_large_image shows a large picture. The skill suggests the large version for articles.

What size should the image be?

The skill recommends 1200 by 630 pixels, under 5 MB, as JPG, PNG or WebP.

Can I test how the card looks?

Yes. The skill suggests testing the URL in the X Card Validator.

Details

Original description by the author

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

Popularity

GitHub stars
75k
Ranking position
#3065
License
MIT
Updated
10/31/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills