跳到正文
Skillpedia
SEO75k · #2955

nosnippet

它能做什么

这个技能检查关键页面上的 robots meta 标签和响应头,查找隐藏搜索摘要的设置。它面向希望重要页面在搜索结果中显示描述的网站所有者。

适用场景

  • ✓你请智能体检查关键页面是否在搜索结果中阻止摘要的时候。
  • ✓重要页面在搜索结果中只显示标题和链接、没有描述的时候。
  • ✓你在审查着陆页、文章页或产品页的 robots 标签的时候。

技能链接

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

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

使用方法

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

可直接粘贴的消息

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

可以这样问 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.

Rule page: https://frontendchecklist.io/rules/seo/nosnippet

常见问题

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.

repo: thedaviddias/Front-End-Checklist

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能