← 返回
未分类 中文

social-share-generator

When the user wants to add, optimize, or audit social share buttons (share article to X, LinkedIn, Facebook, etc.). Also use when the user mentions "share bu...
当用户想要添加、优化或审核社交分享按钮(分享文章到X、LinkedIn、Facebook等)时使用。当用户提到“分享按钮”等相关内容时也使用。
kostja94
未分类 clawhub v1.0.1 2 版本 100000 Key: 无需
★ 0
Stars
📥 780
下载
💾 1
安装
2
版本
#latest

概述

Components: Social Share Buttons

Guides implementation of share buttons that let users share the current page (article, post, product) to social platforms. Distinct from social profile links (footer links to your brand's X, LinkedIn, etc.) — share buttons share this content.

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

  • Share buttons: Share current page URL to X, LinkedIn, Facebook, WhatsApp, etc.
  • Not social profile links (e.g. "Follow us on X") — those live in footer/nav

Why It Matters

  • Websites with visible social share icons tend to see higher social engagement
  • Share buttons amplify reach; Open Graph and Twitter Cards control preview — see open-graph, twitter-cards

Placement (Article Pages)

Fewer, better-placed buttons outperform scattered placement. Research: removing 80% of buttons and repositioning the remaining 20% at high-emotion moments can 3× conversion on share actions.

PlacementBest ForNotes
----------------------------
After first paragraphMost articlesCatches speed-readers; visible early
Sticky sidebarLong-form (desktop)Always visible; consider hiding on mobile
Below title / heroShort postsHigh visibility
End of articleAllNatural completion point; pair with CTA
Mid-article (after key insight)Long contentPlace at friction points (after surprising stat, before CTA)

Avoid: Dozens of icons; every platform when audience uses 2–3. Choose 3–5 platforms that match your audience (e.g. B2B: X, LinkedIn; B2C: X, Facebook, WhatsApp).

Share URLs (Intent Links)

Use platform share/intent URLs so users share with one click:

PlatformShare URL pattern
-----------------------------
X (Twitter)https://twitter.com/intent/tweet?url={url}&text={text}
LinkedInhttps://www.linkedin.com/sharing/share-offsite/?url={url}
Facebookhttps://www.facebook.com/sharer/sharer.php?u={url}
WhatsApphttps://wa.me/?text={url}%20{text}
Telegramhttps://t.me/share/url?url={url}&text={text}

Encode url and text with encodeURIComponent(). Use page title or a short pre-written message for textplatform-specific prompts with pre-written messages perform ~4× better than generic icons.

Platform Brand Guidelines (Icons)

Use official brand assets. Minimum sizes and color rules:

PlatformMin sizeColorsNotes
-----------------------------------
Facebook16pxBlue #1877F2 or monochromeNo rotation, animation without permission
X (Twitter)32pxBlack or white onlyUse current X logo, not deprecated bird
LinkedIn21px heightBlue #0A66C2 or monochromeUse "in" bug for icons
Instagram29×29pxBlack, white, or official gradientGlyph for social icons

Source icons from official brand resource centers. Outdated or non-compliant icons reduce perceived shareability.

Design & Technical

ItemGuideline
-----------------
FormatSVG preferred (scalable, small); PNG/WebP with fallback
PerformanceLightweight; avoid heavy share plugins that slow LCP
Accessibilityaria-label="Share on X"; keyboard accessible
MobileTouch targets ≥44×44px; consider native share API (navigator.share) on mobile

Native Share API (Mobile)

On supported browsers, navigator.share lets users share via system dialog (includes more apps). Fallback to intent links when unsupported:

if (navigator.share) {
  navigator.share({ title, url, text }).catch(() => {});
} else {
  window.open(shareUrl, '_blank', 'noopener');
}

Output Format

  • Placement recommendation for page type
  • Platforms to include (3–5)
  • Share URL examples with placeholders
  • Icon guidelines (size, source)
  • Accessibility checklist

Related Skills

  • article-page-generator: Share buttons on article pages; placement after intro, end of article
  • blog-page-generator: Share buttons on blog index and post cards
  • open-graph: OG tags control share preview (og:image, og:title, etc.) — required for share buttons to show rich cards on Facebook, LinkedIn
  • twitter-cards: Twitter Cards control X preview — required for share buttons to show rich cards when shared to X
  • footer-generator: Footer has social profile links (Follow us); this skill is for share buttons (share this page)

版本历史

共 2 个版本

  • v1.0.1 当前
    2026-05-03 03:52 安全 安全
  • v1.0.0
    2026-03-30 12:25 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

youtube-seo

kostja94
用于优化YouTube视频搜索排名、编写视频描述或提升频道曝光度;用户提及“YouTube”时亦可使用。
★ 0 📥 1,209
data-analysis

email-marketing

kostja94
当用户想要规划邮件营销、EDM、Newsletter 策略或邮件送达率时使用,也适用于用户提及“邮件营销”“EDM”“Newsletter”等关键词。
★ 0 📥 1,483

influencer-marketing

kostja94
当用户计划、实施或优化网红营销策略,或提及网红营销、KOL及创作者合作时使用。
★ 1 📥 900