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.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
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.
Popularity
- GitHub stars
- 75k
- Ranking position
- #3065
- License
- MIT
- Updated
- 10/31/2026
Comments
- …
More skills from this repository
frontendchecklist
75kChecks frontend code and live pages against 380+ rules for accessibility, speed, SEO and security, using a command-line tool.
frontend-checklist-global
75kAudits a frontend project against all 386 Front-End Checklist rules, and gives a specific fix for each issue found.
404-page
75kChecks that your missing-page screen offers helpful links and returns a real 404 status, to help lost visitors find their way.
about-page
75kReviews whether your site has a clear About page that explains who runs it, to build trust with visitors and search engines.
Similar skills
xurl
394kHelps your agent post, reply, search, and read on X, send direct messages, and upload media, using the authenticated xurl tool.
connections-optimizer
280kImproves your social network connections. It suggests who to follow or unfollow and helps create personalized messages to expand your network.
content-engine
280kCreates content for different platforms. It helps produce posts, scripts, and content calendars that work well on networks like X, LinkedIn, and YouTube.