slug-keywords
它能做什么
这个技能检查内容页面的网址,并建议用通俗文字描述主题的网址片段。它面向建立或修正网址结构的网站所有者和写作者。
适用场景
- ✓你请智能体改进博客文章或商品页面网址的时候。
- ✓你的网址只包含数字或随机字符串,而你希望有可读的网址片段的时候。
- ✓你在规划新网站的网址结构的时候。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/slug-keywords/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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.
热度
- GitHub 星标
- 75k
- 排名
- #3027
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。