
Twitter Cards
- 789 installs
- 787 repo stars
- Updated June 9, 2026
- kostja94/marketing-skills
twitter-cards is an SEO skill that generates correct Twitter Card meta tags—including twitter:card, twitter:image, and twitter:title—for developers who need professional X link previews when sharing site URLs.
About
twitter-cards is version 1.1.0 from kostja94/marketing-skills and guides implementation of Twitter Card metadata for X link previews. It triggers when developers mention Twitter Card, twitter:card, twitter:image, twitter:title, X preview, or tweet preview, and notes that X falls back to Open Graph when Twitter-specific tags are missing—so both sets should be added for best results. Developers reach for twitter-cards when shipping landing pages, blog posts, or product URLs that will be shared on X and must show the right title, image, and card type. For Facebook or LinkedIn previews, the skill directs users to the companion open-graph skill. Output is correct meta tag markup ready to paste into HTML head sections or framework SEO components.
- Guides all four official Twitter Card types including summary and summary_large_image
- Recommends the 1200×675px large image format for maximum engagement
- Provides complete ready-to-paste HTML meta tag snippets
- Explains fallback behavior when Twitter-specific tags are omitted
- Distinguishes Twitter Cards from Open Graph tags for cross-platform sharing
Twitter Cards by the numbers
- 789 all-time installs (skills.sh)
- +6 installs in the week ending Jul 25, 2026 (Skillselion tracking)
- Ranked #573 of 1,879 Marketing & SEO skills by installs in the Skillselion catalog
- Security screen: LOW risk (skills.sh audit)
- Data as of Jul 31, 2026 (Skillselion catalog sync)
npx skills add https://github.com/kostja94/marketing-skills --skill twitter-cardsAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 789 |
|---|---|
| repo stars | ★ 787 |
| Security audit | 3 / 3 scanners passed |
| Last updated | June 9, 2026 |
| Repository | kostja94/marketing-skills ↗ |
How do you add Twitter Card meta tags?
Generate correct and optimized Twitter Card meta tags that make shared links look professional on X.
Who is it for?
Frontend developers shipping pages that will be shared on X who need correct Card markup without guessing tag names or fallback behavior.
Skip if: Facebook or LinkedIn-only Open Graph optimization should use the open-graph skill rather than twitter-cards alone.
When should I use this skill?
A developer asks for Twitter Card tags, X preview fixes, twitter:image, or tweet link preview optimization on a web page.
What you get
Optimized twitter:card, twitter:title, twitter:image, and related meta tags in HTML head for X link previews.
- Twitter Card meta tag markup
- Documented Open Graph pairing guidance
By the numbers
- Skill metadata version 1.1.0 in the readme frontmatter
Files
SEO On-Page: Twitter Cards
Guides implementation of Twitter Card meta tags for X (Twitter) link previews. Twitter falls back to Open Graph if Twitter-specific tags are missing; add both for best results.
When invoking: On first use, if helpful, open with 1–2 sentences on what this skill covers and why it matters, then provide the main output. On subsequent use or when the user asks to skip, go directly to the main output.
Scope (Social Sharing)
- Twitter Cards: X-specific meta tags; control how links appear when shared on X/Twitter
Card Types
| Type | Use case |
|---|---|
| summary | Small card with thumbnail |
| summary_large_image | Large prominent image (recommended; 1200×675px) |
| app | Mobile app promotion |
| player | Video/audio content |
Recommended Tags (summary_large_image)
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Your Title">
<meta name="twitter:description" content="Your description">
<meta name="twitter:image" content="https://example.com/image.jpg">
<meta name="twitter:site" content="@yourusername">
<meta name="twitter:creator" content="@authorusername">
<meta name="twitter:image:alt" content="Alt text for image">| Tag | Guideline |
|---|---|
| twitter:card | Required; summary_large_image for most pages |
| twitter:title | Max 70 chars; concise title |
| twitter:description | Max 200 chars; summary |
| twitter:image | Absolute URL; unique per page |
| twitter:site | @username of website |
| twitter:creator | @username of content creator |
| twitter:image:alt | Alt text; max 420 chars; accessibility |
Image Requirements
| Item | Guideline |
|---|---|
| Aspect ratio | 2:1 |
| Minimum | 300×157 px |
| Recommended | 1200×675 px |
| Max | 4096×4096 px |
| File size | Under 5MB |
| Formats | JPG, PNG, WebP, GIF (first frame only); SVG not supported |
Common Mistakes
- Missing Twitter Card tags (Twitter won't display images properly without them)
- Using relative image URLs instead of absolute https://
- Images too small or wrong aspect ratio
- Title/description too long (gets truncated)
Implementation
Next.js (App Router)
export const metadata = {
twitter: {
card: 'summary_large_image',
title: '...',
description: '...',
images: ['https://example.com/twitter.jpg'],
site: '@yourusername',
creator: '@authorusername',
},
};HTML (generic)
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Your Title">
<meta name="twitter:description" content="Your description">
<meta name="twitter:image" content="https://example.com/image.jpg">
<meta name="twitter:site" content="@yourusername">
<meta name="twitter:image:alt" content="Alt text">Testing
- X (Twitter): Card Validator
Related Skills
- social-share-generator: Share buttons use Twitter Cards for X previews when users share; Cards must be set for share buttons to show proper previews
- open-graph: OG tags; Twitter falls back to OG if Twitter tags missing
- title-tag: Title tag often mirrors twitter:title
- meta-description: Meta description often mirrors twitter:description
- page-metadata: Hreflang, other meta tags
- twitter-x-posts: X post copy and engagement (different from link previews)
- twitter-card-image-generator: Programmatic Twitter Card image generation — 1200×675px, 2:1 ratio, player card posters, dark mode adaptations for ~40% of X users, timeline-safe zone design for mobile 1:1 crop, all 6 visual styles from og-image-generator. This skill covers how to SET the twitter:image tag; twitter-card-image-generator covers how to CREATE the image.
Related skills
How it compares
Use twitter-cards for X-specific previews; use the open-graph skill when Facebook or LinkedIn metadata is the primary goal.
FAQ
What happens if Twitter Card tags are missing?
twitter-cards notes that X falls back to Open Graph tags when Twitter-specific metadata is absent. The skill recommends adding both Twitter Card and Open Graph tags for reliable previews across platforms.
Which meta tags does twitter-cards implement?
twitter-cards guides twitter:card, twitter:image, twitter:title, and related Twitter Card fields for X link previews. Version 1.1.0 also points to the open-graph skill for Facebook and LinkedIn metadata.
Is Twitter Cards safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.