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.
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-nosnippet-38b91104d8da ,按照其中的说明把「nosnippet」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
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.
Check the 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.
Remove 'nosnippet' from the 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).
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.
Check all pages for 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/en/rules/seo/nosnippet