twitter-cards by kostja94/marketing-skills
npx skills add https://github.com/kostja94/marketing-skills --skill twitter-cards指导为 X(Twitter)链接预览实现 Twitter 卡片元标签。如果缺少 Twitter 特定的标签,Twitter 会回退到使用开放图谱标签;为获得最佳效果,建议同时添加两者。
调用时:在首次使用时,如果合适,可以先用 1-2 句话说明此技能涵盖的内容及其重要性,然后提供主要输出。在后续使用或用户要求跳过时,直接提供主要输出。
| 类型 | 使用场景 |
|---|---|
| summary | 带有缩略图的小卡片 |
| summary_large_image | 突出显示大图(推荐;1200×675 像素) |
| app | 移动应用推广 |
| player | 视频/音频内容 |
<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">
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 标签 | 指南 |
|---|---|
| twitter:card | 必需;大多数页面使用 summary_large_image |
| twitter:title | 最多 70 个字符;简洁的标题 |
| twitter:description | 最多 200 个字符;摘要 |
| twitter:image | 绝对 URL;每个页面唯一 |
| twitter:site | 网站的 @用户名 |
| twitter:creator | 内容创作者的 @用户名 |
| twitter:image:alt | 替代文本;最多 420 个字符;用于无障碍访问 |
| 项目 | 指南 |
|---|---|
| 宽高比 | 2:1 |
| 最小尺寸 | 300×157 像素 |
| 推荐尺寸 | 1200×675 像素 |
| 最大尺寸 | 4096×4096 像素 |
| 文件大小 | 小于 5MB |
| 格式 | JPG、PNG、WebP、GIF(仅第一帧);不支持 SVG |
export const metadata = {
twitter: {
card: 'summary_large_image',
title: '...',
description: '...',
images: ['https://example.com/twitter.jpg'],
site: '@yourusername',
creator: '@authorusername',
},
};
<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">
每周安装数
186
代码仓库
GitHub 星标数
237
首次出现
2026年3月1日
安全审计
安装于
kimi-cli171
cursor171
gemini-cli170
github-copilot170
opencode170
amp170
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.
| 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 |
<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 |
| 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 |
export const metadata = {
twitter: {
card: 'summary_large_image',
title: '...',
description: '...',
images: ['https://example.com/twitter.jpg'],
site: '@yourusername',
creator: '@authorusername',
},
};
<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">
Weekly Installs
186
Repository
GitHub Stars
237
First Seen
Mar 1, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
kimi-cli171
cursor171
gemini-cli170
github-copilot170
opencode170
amp170
社交媒体内容策略指南:创建、优化与互动全流程 | 营销技能
40,400 周安装