share-buttons
它能做什么
这个技能使用标准的分享地址,而不是笨重的第三方脚本,为博客文章和文章添加分享链接。它面向希望文章被更多人分享的内容发布者。
适用场景
- ✓你请智能体为博客文章或文章添加分享按钮的时候。
- ✓你的文章页面没有让读者轻松分享的方式的时候。
- ✓你希望分享链接不加载第三方追踪脚本的时候。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/share-buttons/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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.
热度
- GitHub 星标
- 75k
- 排名
- #3019
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。