indexing by kostja94/marketing-skills
npx skills add https://github.com/kostja94/marketing-skills --skill indexing提供索引问题排查与修复指南。如需了解如何在 Google Search Console 中查找和诊断问题,请参阅 google-search-console。
调用时机:在首次使用时,如果适用,先用 1-2 句话说明此技能涵盖的内容及其重要性,然后提供主要输出。在后续使用或用要求跳过时,直接进入主要输出。
首先检查项目上下文:如果存在 .claude/project-context.md 或 .cursor/project-context.md 文件,请读取其中的网站 URL 和索引目标。
从 GSC 识别问题(关于覆盖率报告、问题类型、诊断流程,请参阅 google-search-console)。然后应用以下修复。
| 原因 | 操作 |
|---|---|
| 质量低、重复、偏离主题 |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 改进内容、修复重复项、设置正确的 canonical 标签 |
| 静态资源(CSS/JS) | 见下文 |
| 带有参数的 Feed、分享 URL | 通常可以忽略;或对主 URL 使用 noindex、canonical |
| 重要的内容页面 | 使用 URL 检查工具,验证 canonical/内部链接/站点地图,请求索引 |
Vercel 为每次部署的静态资源添加唯一的 dpl= 参数,从而产生许多“已抓取 - 当前未编入索引”的 URL。
| 应做 | 不应做 |
|---|---|
保持 robots.txt 允许 /_next/ | 不要阻止 /_next/(会破坏 CSS/JS 加载)。参见 robots-txt |
| 接受 GSC 中的静态资源为预期情况 | 不要阻止 /_next/static/css/ 或 ?dpl= |
| 对静态资源使用 X-Robots-Tag | CSS/JS 不应被索引;对 SEO 无影响 |
静态资源出现在“已抓取 - 当前未编入索引”中是正常且预期的。
| 问题 | 修复 |
|---|---|
| 被 «noindex» 标签排除 | 如果是意外添加则移除 noindex;如果是故意设置则保留 |
| 被 robots.txt 阻止 | 参见 robots-txt;移除重要路径的 Disallow 指令 |
| 重定向 / 404 | 修复 URL 或添加重定向 |
| 重复 / Canonical | 设置正确的 canonical 标签;通常没问题 |
| 软 404 | 页面返回 200 状态码但内容显示“未找到”或为空——Google 可能将其视为 404。修复:对于确实不存在的页面返回 404 状态码;对于返回 200 的页面添加真实内容 |
软 404 发生在页面返回 HTTP 200 状态码,但内容表明页面不存在时(例如“页面未找到”消息、空状态)。Google 可能将其视为 404 并从索引中排除。
| 修复 | 适用场景 |
|---|---|
| 返回 404 | 页面确实不存在;使用正确的 404 状态码 |
| 添加内容 | 页面是故意存在的(例如空搜索结果);确保有实质性内容或使用 noindex |
| 重定向 | 如果 URL 已移动,使用 301 重定向到正确目标 |
metadata.robots = { index: false } 或 <meta name="robots" content="noindex"> 或 X-Robots-Tag| 类别 | 页面类型 | 典型 Meta 标签 | 原因 |
|---|---|---|---|
| 认证与账户 | 登录、注册、密码重置、账户仪表板 | 登录:noindex,nofollow;注册:noindex,follow | 无搜索价值;登录页被索引存在安全风险;注册页 follow 允许爬取隐私/条款链接 |
| 管理与私有 | 管理后台、暂存环境、测试页面、内部工具 | noindex,nofollow | 非公开;避免被发现 |
| 转化终点页 | 感谢页、确认页、结账成功页、下载门控页 | noindex,follow | 转化后页面;无搜索结果页价值;允许传递链接权重 |
| 系统与工具 | 404 页、内部搜索结果页、分面/筛选 URL | noindex,follow 或 noindex,nofollow | 内容单薄/重复;404 页为错误状态 |
| 法律文件 | 隐私政策、服务条款、Cookie 政策(可选) | 通常 noindex,follow | 索引价值低;减少搜索结果杂乱 |
| 重复与单薄内容 | 打印友好版、带参数 URL、近似重复页面 | noindex,follow 或 canonical | 重复内容;可能时优先使用 canonical |
| 低价值内容 | 媒体资料包、反馈板(外部)、单薄新闻稿 | noindex 或针对品牌查询索引 | 视具体情况而定 |
noindex,follow 与 noindex,nofollow:大多数情况使用 noindex,follow——从搜索结果页排除但允许传递链接权重。仅在登录页(安全原因)、暂存环境或临时测试页面使用 noindex,nofollow。
| 类型 | 典型用途 |
|---|---|
| JobPosting | 招聘网站 |
| BroadcastEvent | 直播平台 |
要求:启用索引 API,创建服务账号,在 Search Console 中添加所有者,申请配额(默认为 200 个 URL/天)。
每周安装量
221
代码仓库
GitHub 星标数
239
首次出现
2026年3月1日
安全审计
安装于
codex202
kimi-cli202
cursor202
gemini-cli201
github-copilot201
amp201
Guides indexing troubleshooting and fix actions. For how to find and diagnose issues in GSC, see google-search-console.
When invoking : On first use , if helpful, open with 1–2 sentences on what this skill covers and why it matters, then provide the main output. On subsequent use or when the user asks to skip, go directly to the main output.
Check for project context first: If .claude/project-context.md or .cursor/project-context.md exists, read it for site URL and indexing goals.
Identify issue from GSC (see google-search-console for Coverage report, issue types, diagnosis workflow). Then apply fix below.
| Cause | Action |
|---|---|
| Low quality, duplicate, off-topic | Improve content, fix duplicates, set correct canonical |
| Static assets (CSS/JS) | See below |
| Feed, share URLs with params | Usually OK to ignore; or noindex, canonical to main URL |
| Important content pages | Use URL Inspection, verify canonical/internal links/sitemap, Request indexing |
Vercel adds unique dpl= params to static assets per deploy, creating many "Crawled - currently not indexed" URLs.
| Do | Don't |
|---|---|
Keep robots.txt allowing /_next/ | Do not block /_next/ (breaks CSS/JS loading). See robots-txt |
| Accept static assets in GSC as expected | Do not block /_next/static/css/ or ?dpl= |
| Use X-Robots-Tag for static assets | CSS/JS should not be indexed; no SEO impact |
Static assets in "Crawled - currently not indexed" is normal and expected.
| Issue | Fix |
|---|---|
| Excluded by «noindex» tag | Remove noindex if accidental; keep if intentional |
| Blocked by robots.txt | See robots-txt ; remove Disallow for important paths |
| Redirect / 404 | Fix URL or add redirect |
| Duplicate / Canonical | Set correct canonical; usually OK |
| Soft-404 | Page returns 200 but content says "not found" or empty—Google may treat as 404. Fix: return 404 status for truly missing pages; or add real content for 200 pages |
A soft-404 occurs when a page returns HTTP 200 but the content indicates the page doesn't exist (e.g. "Page not found" message, empty state). Google may treat it as 404 and exclude from index.
| Fix | When |
|---|---|
| Return 404 | Page truly doesn't exist; use proper 404 status |
| Add content | Page is intentional (e.g. empty search results); ensure substantive content or use noindex |
| Redirect | If URL moved, use 301 to correct destination |
metadata.robots = { index: false } or <meta name="robots" content="noindex"> or X-Robots-Tag| Category | Page Types | Typical Meta | Reason |
|---|---|---|---|
| Auth & Account | Login, Signup, Password reset, Account dashboard | Login: noindex,nofollow; Signup: noindex,follow | No search value; login indexed = security risk; signup follow allows crawl of Privacy/Terms links |
| Admin & Private | Admin, Staging, Test pages, Internal tools | noindex,nofollow | Not for public; avoid discovery |
| Conversion Endpoints | Thank-you, Confirmation, Checkout success, Download gate | noindex,follow | Post-conversion; no SERP value; allow link equity |
noindex,follow vs noindex,nofollow : Use noindex,follow for most cases—excludes from SERP but allows link equity. Use noindex,nofollow only for login (security), staging, or temporary test pages.
| Type | Typical use |
|---|---|
| JobPosting | Job boards |
| BroadcastEvent | Live platforms |
Requirements : Enable Indexing API, create service account, add owner in Search Console, request quota (default 200 URLs/day).
Weekly Installs
221
Repository
GitHub Stars
239
First Seen
Mar 1, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex202
kimi-cli202
cursor202
gemini-cli201
github-copilot201
amp201
Schema标记专家指南:结构化数据实现与SEO优化,提升富媒体搜索结果
27,700 周安装
| System & Utility | 404, Internal search results, Faceted/filter URLs | noindex,follow or noindex,nofollow | Thin/duplicate; 404 = error state |
| Legal | Privacy, Terms, Cookie Policy (optional) | Often noindex,follow | Low-value indexed; reduces clutter |
| Duplicate & Thin | Printer-friendly, Parameter URLs, Near-duplicate | noindex,follow or canonical | Duplicate content; canonical preferred when possible |
| Low-Value | Media kit, Feedback board (external), Thin press | noindex or index for brand queries | Case-by-case |