跳到正文
Skillpedia
社交媒体75k · #3019

share-buttons

它能做什么

这个技能使用标准的分享地址,而不是笨重的第三方脚本,为博客文章和文章添加分享链接。它面向希望文章被更多人分享的内容发布者。

适用场景

  • ✓你请智能体为博客文章或文章添加分享按钮的时候。
  • ✓你的文章页面没有让读者轻松分享的方式的时候。
  • ✓你希望分享链接不加载第三方追踪脚本的时候。

技能链接

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

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/share-buttons/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我在博客文章中添加分享到 X、LinkedIn 和 Facebook 的按钮,并且不加载额外的追踪脚本吗?”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会使用每个平台的标准分享地址为其构建分享链接,并填入页面标题和网址。它会使用规范页面地址,并检查是否设置了 Open Graph 标题和图片,以便分享的链接显示预览。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Add share buttons to content pages

Social sharing extends content reach organically — shared articles gain traffic, which can attract backlinks that do contribute to search rankings over time.

Quick Reference

  • Add sharing buttons to article and blog post pages to lower the friction for social distribution
  • Use privacy-friendly share buttons (no third-party scripts): construct share URLs manually
  • X (Twitter), LinkedIn, and Facebook share the vast majority of B2B and B2C content
  • Share buttons do not directly affect Google ranking but drive traffic that can result in backlinks

Check

On article and blog post pages, check for social sharing buttons or links. Verify they use the correct share URL format for each platform (X, LinkedIn, Facebook, WhatsApp). Check that share URLs pre-populate the article title and URL. Verify no heavy third-party share scripts are loaded.

Fix

Add share links constructed with platform share URLs (no third-party SDKs required). Use window.location.href or the page's canonical URL as the shared link. Include og:title and og:image so the shared link renders a rich preview.

Explain

Explain how social sharing contributes to content distribution and indirect SEO through traffic and backlinks, why privacy-friendly share links (no tracking scripts) are preferred, and which platforms matter most for a given content type.

Code Review

Review metadata generation, rendered HTML, structured data, and response headers related to Add share buttons to content pages. 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/share-buttons

常见问题

分享按钮会直接影响 Google 排名吗?

这个技能说,它们不会直接影响排名,但它们带来的流量随着时间可能会带来反向链接。

为什么要避免第三方分享脚本?

这个技能更倾向于不添加追踪脚本、注重隐私的链接。

哪些平台最重要?

这个技能提到 X、LinkedIn 和 Facebook,它们在商业和个人内容中都被广泛使用。

详情

作者的原始描述

Use when applies to blog posts, news articles, tutorials, and other long-form content. Less relevant for product pages, service pages, or home pages. Use when optimizing content distribution.

repo: thedaviddias/Front-End-Checklist

热度

GitHub 星标
75k
排名
#3019
许可证
MIT
更新时间
2026/10/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能