跳到正文
Skillpedia
SEO75k · #3027

slug-keywords

它能做什么

这个技能检查内容页面的网址,并建议用通俗文字描述主题的网址片段。它面向建立或修正网址结构的网站所有者和写作者。

适用场景

  • ✓你请智能体改进博客文章或商品页面网址的时候。
  • ✓你的网址只包含数字或随机字符串,而你希望有可读的网址片段的时候。
  • ✓你在规划新网站的网址结构的时候。

技能链接

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

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“我的博客网址是随机数字。请帮我为每篇文章建议清晰、包含关键词的网址片段吗?”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会阅读页面主题,并用主要关键词编写小写、以连字符分隔的网址片段。如果现有网址需要更改,它会建议从旧地址设置 301 重定向,并更新内部链接和站点地图。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Include keywords in URL slugs

Descriptive URL slugs help users and search engines understand page content before visiting — a URL like /buy-running-shoes-women communicates topic intent that /products/4832 does not.

Quick Reference

  • URL slugs should contain the primary keyword of the page in lowercase, hyphen-separated words
  • Avoid numeric IDs (/page?id=12345), random strings, or meaningless paths (/p/a/) in public URLs
  • Keep slugs concise: 3–5 meaningful words is typical; avoid keyword stuffing
  • Google uses URL words as a weak ranking signal and users use them to assess page relevance before clicking

Check

Crawl the site and examine URL paths. Flag URLs that contain: numeric IDs only, random strings, session tokens, dates without a descriptive slug, or overly generic words (/page, /item, /post). Verify slugs are lowercase and hyphen-separated.

Fix

Rewrite slugs to include the page's primary keyword in natural language. Use lowercase letters and hyphens as word separators. Set up 301 redirects from old URLs to new slugs. Update internal links, sitemaps, and canonical tags.

Explain

Explain how keyword-rich URL slugs improve click-through rates in search results, serve as a weak relevance signal for search engines, and make URLs easier to share and understand.

Code Review

Review metadata generation, rendered HTML, structured data, and response headers related to Include keywords in URL slugs. 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/slug-keywords

常见问题

网址中的关键词有助于排名吗?

这个技能称它是较弱的排名信号,但说这些词能帮助用户在点击前判断相关性。

网址片段应该多长?

这个技能建议使用三到五个有意义的词,并提醒不要堆砌关键词。

如果我要更改已有的网址怎么办?

这个技能说,应从旧地址设置 301 重定向到新地址。

详情

作者的原始描述

Use when applies to blog posts, product pages, and any content page with editable URL slugs. Use when building a URL strategy for a new site or auditing existing URLs for keyword inclusion.

repo: thedaviddias/Front-End-Checklist

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能