Chuyển đến nội dung
Skillpedia
Mạng xã hội75k · #3065

twitter-cards

Skill này làm gì

Skill này thêm các thẻ kiểm soát cách trang hiển thị khi được chia sẻ trên X. Skill dành cho chủ site và người làm marketing chia sẻ liên kết trên mạng xã hội.

Khi nào nên dùng

  • ✓Khi một trang được chia sẻ trên X chỉ hiển thị một liên kết trơn.
  • ✓Khi một site mới cần các thẻ chia sẻ mạng xã hội.
  • ✓Khi một bài viết được chia sẻ cần hiển thị bản xem trước hình ảnh lớn.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/twitter-cards/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Khi tôi chia sẻ bài blog lên X, nó chỉ hiện một liên kết trơn. Bạn có thể thêm các thẻ đúng để nó có hình và mô tả không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent thêm các thẻ meta cho loại thẻ, tiêu đề, mô tả và hình ảnh vào phần head của trang. X cũng dùng thẻ Open Graph khi các thẻ riêng của Twitter bị thiếu.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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

Câu hỏi thường gặp

Khác nhau giữa summary và summary_large_image là gì?

Thẻ summary nhỏ hơn, còn summary_large_image hiển thị một hình lớn. Skill khuyên dùng bản lớn cho bài viết.

Hình ảnh nên có kích thước nào?

Skill khuyên 1200 x 630 pixel, dưới 5 MB, dạng JPG, PNG hoặc WebP.

Tôi có thể kiểm tra thẻ hiển thị thế nào không?

Có. Skill gợi ý kiểm tra URL bằng X Card Validator.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
75k
Vị trí xếp hạng
#3065
Giấy phép
MIT
Cập nhật
31/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự