nosnippet
它能做什么
这个技能检查关键页面上的 robots meta 标签和响应头,查找隐藏搜索摘要的设置。它面向希望重要页面在搜索结果中显示描述的网站所有者。
适用场景
- ✓你请智能体检查关键页面是否在搜索结果中阻止摘要的时候。
- ✓重要页面在搜索结果中只显示标题和链接、没有描述的时候。
- ✓你在审查着陆页、文章页或产品页的 robots 标签的时候。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/nosnippet/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我的一些重要页面在 Google 中没有显示描述。请帮我检查是否有摘要设置阻止了它吗?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会检查每个重要页面的 robots meta 标签和 X-Robots-Tag 响应头,查找 nosnippet 或 max-snippet:0。它会标记这些页面,并将该设置替换为 max-snippet:-1 或直接移除。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Avoid nosnippet on important pages
Pages with nosnippet display without a description in search results, reducing click-through rates and making it harder for users to understand whether the result is relevant to their query.
Quick Reference
- nosnippet prevents Google from showing a description under your title in search results
- Pages without snippets have significantly lower click-through rates
- Use max-snippet:-1 to explicitly allow unlimited snippet length instead
- Only use nosnippet deliberately on legally sensitive content
Check
Check the <meta name='robots'> tag and X-Robots-Tag response header for each important page. Flag any that contain 'nosnippet' or 'max-snippet:0'. Confirm these pages intentionally suppress snippets.
Fix
Remove 'nosnippet' from the <meta name='robots'> content attribute on important pages. Replace with 'max-snippet:-1' to explicitly allow full-length snippets, or simply omit snippet directives to use the default (allowed).
Explain
The nosnippet directive tells Google not to display a text snippet (description) for your page in search results. Without a snippet, users see only the page title and URL—this reduces click-through rates and is rarely the intended behaviour for content pages.
Code Review
Check all pages for <meta name='robots' content='...'> tags. Parse the content value and flag any that include 'nosnippet' or 'max-snippet:0'. Generate a report of affected URLs, their page type, and whether the nosnippet directive is intentional. Also check X-Robots-Tag response headers.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
常见问题
nosnippet 有什么作用?
它告诉 Google 不要为该页面显示文字描述,搜索结果中只保留标题和网址。
max-snippet:-1 是什么?
它明确允许任意长度的摘要,这个技能建议用它来替代。
什么时候可以使用 nosnippet?
这个技能说,只应有意识地用于涉及法律敏感的内容。
详情
作者的原始描述
Use when auditing robots meta tags. Applies to any important landing page, article, or product page that should appear with a description in search results.
热度
- GitHub 星标
- 75k
- 排名
- #2955
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。