url-slug-generator

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Components: URL Slug

组件:URL Slug

Guides creation of SEO-friendly URL slugs for blog posts, articles, and content pages. Research on 11.8M Google results shows shorter URLs tend to rank higher; position #1 URLs average 50–60 characters.
When invoking: On first use, if helpful, open with 1–2 sentences on what this skill covers, then provide the main output. On subsequent use or when the user asks to skip, go directly to the main output.
本技能指导为博客文章、普通文章和内容页面创建SEO友好的URL slugs。针对1180万条Google搜索结果的研究表明,较短的URL通常排名更高;排名第1位的URL平均长度为50-60个字符。
调用规则:首次使用时,如果合适,可以先用1-2句话介绍本技能覆盖的范围,再提供主要输出。如果是后续使用或用户要求跳过介绍,直接给出主要输出。

Scope

适用范围

  • URL slug: The path segment after the base (e.g.,
    ai-people-search
    in
    /blog/ai-people-search
    )
  • Applies to: Blog posts, articles, guides, category pages, product pages
  • URL slug:域名根路径之后的路径段(例如
    /blog/ai-people-search
    中的
    ai-people-search
  • 适用场景:博客文章、普通文章、指南、分类页面、产品页面

Best Practices

最佳实践

Length

长度

GuidelineTarget
Slug lengthUnder 60 characters total (including path prefix)
Word count3–5 words
PrincipleShorter = easier to read, share, remember; less truncation in SERPs; see serp-features
Example: "The Complete Guide to AI Search Engine for Finding People" →
ai-people-search
(3 words) or
ai-search-finding-people
(4 words), not
ai-search-engine-finding-people-speed-discovery-outreach
(9 words, 51 chars).
准则目标
Slug总长度总长度低于60个字符(包含路径前缀)
单词数量3-5个单词
原则越短越容易阅读、分享、记忆;在SERP中被截断的概率更低;参考 serp-features
示例:“The Complete Guide to AI Search Engine for Finding People” →
ai-people-search
(3个单词)或
ai-search-finding-people
(4个单词),不要使用
ai-search-engine-finding-people-speed-discovery-outreach
(9个单词,51个字符)。

Format

格式

RuleDoAvoid
SeparatorsHyphens (
-
)
Underscores (
_
), spaces, periods
CaseLowercase onlyMixed case (causes duplicate content)
CharactersLetters (a-z), numbers (0-9), hyphensSpecial chars
Stop wordsRemove when possible: the, a, and, or, toKeep when needed: "how-to"
规则推荐避免
分隔符连字符(
-
)
下划线(
_
)、空格、句号
大小写仅使用小写大小写混合(会导致重复内容问题)
字符范围字母(a-z)、数字(0-9)、连字符特殊字符
停用词尽可能删除:the、a、and、or、to必要时保留:例如"how-to"

Content

内容

RuleGuideline
Primary keywordInclude near start; one focus per URL
DescriptiveClear what page is about from slug alone
No keyword stuffingOne keyword mention is enough
No datesOmit unless time-specific (news, annual roundups)
规则指引
核心关键词放在靠近开头的位置;每个URL仅围绕一个核心主题
描述性仅通过slug就能清晰知晓页面的核心内容
禁止关键词堆砌仅提及一次关键词即可
不要添加日期除非是时效性内容(新闻、年度汇总)否则省略日期

Non-ASCII Characters

非ASCII字符处理

ScenarioRule
Accented lettersConvert to ASCII: é→e, ü→u, ñ→n, ç→c
Non-Latin scriptsUse UTF-8 percent-encoding if required; prefer ASCII for compatibility
Example
jalapeno
not
jalapeño
;
cafe
not
café
场景规则
重音字母转换为ASCII字符:é→e、ü→u、ñ→n、ç→c
非拉丁字符必要时使用UTF-8百分号编码;优先使用ASCII保证兼容性
示例使用
jalapeno
而非
jalapeño
;使用
cafe
而非
café

Common Mistakes

常见错误

  • Copy-pasting full title: Summarize instead — long title → short slug
  • Auto-generated IDs:
    /post/12847
    — always customize
  • Tracking params in slug: UTM, session IDs — use query params separately
  • Changing without redirect: Always 301 from old to new slug
  • 直接复制完整标题:应做摘要处理 —— 长标题对应短slug
  • 使用自动生成的ID:例如
    /post/12847
    —— 务必自定义slug
  • 在slug中添加跟踪参数:UTM、会话ID等参数应单独放在查询参数中
  • 修改slug后不做重定向:务必配置301重定向从旧slug指向新slug

Slug Generation Workflow

Slug生成工作流

  1. Extract primary keyword from title or target keyword
  2. Summarize in 3–5 words (don't copy full title)
  3. Remove stop words (the, a, and, or) unless needed for readability
  4. Lowercase, hyphenate, validate length < 60 chars
  5. Check uniqueness — no duplicate slugs site-wide
  1. 从标题或目标关键词中提取核心关键词
  2. 用3-5个单词总结核心内容(不要直接复制完整标题)
  3. 删除停用词(the、a、and、or等),除非会影响可读性
  4. 转为小写、用连字符连接,验证长度小于60个字符
  5. 校验唯一性 —— 全站范围内不能有重复的slug

Examples

示例

Title / Topic❌ Too long✅ Recommended
AI Search Engine for Finding People: Speed vs. Discovery
ai-search-engine-finding-people-speed-discovery-outreach
ai-people-search
or
ai-search-finding-people
The Ultimate SEO Checklist for 2025
the-ultimate-seo-checklist-for-2025
seo-checklist-2025
How to Increase Website Traffic
how-to-increase-the-traffic-to-your-website
increase-website-traffic
Best Running Shoes for Marathon Training
best-running-shoes-for-marathon-training-in-2025
best-running-shoes-2025
标题/主题❌ 过长版本✅ 推荐版本
AI Search Engine for Finding People: Speed vs. Discovery
ai-search-engine-finding-people-speed-discovery-outreach
ai-people-search
ai-search-finding-people
The Ultimate SEO Checklist for 2025
the-ultimate-seo-checklist-for-2025
seo-checklist-2025
How to Increase Website Traffic
how-to-increase-the-traffic-to-your-website
increase-website-traffic
Best Running Shoes for Marathon Training
best-running-shoes-for-marathon-training-in-2025
best-running-shoes-2025

Output Format

输出格式

When creating or auditing a slug:
  • Recommended slug (3–5 words)
  • Character count (slug only)
  • Primary keyword included
  • Alternatives if multiple valid options
创建或审核slug时,输出包含以下内容:
  • 推荐slug(3-5个单词)
  • 字符数(仅统计slug本身)
  • 包含的核心关键词
  • 备选方案(如果存在多个合理选项)
  • 参考资料Alignify URL优化

Related Skills

相关技能

  • url-structure: URL hierarchy, site structure; references this skill for slug conventions
  • canonical-tag: When changing slugs, set up 301 redirects
  • article-page-generator: Article URL slugs
  • blog-page-generator: Blog post URL slugs
  • glossary-page-generator: Glossary term slugs
  • products-page-generator: Product page slugs
  • customer-stories-page-generator: Case study page slugs
  • resources-page-generator: Resource page slugs
  • features-page-generator: Per-feature page slugs
  • url-structure:URL层级、站点结构;参考本技能的slug规范
  • canonical-tag:修改slug时,需要配置301重定向
  • article-page-generator:文章页面URL slugs
  • blog-page-generator:博客文章URL slugs
  • glossary-page-generator:术语表页面slugs
  • products-page-generator:产品页面slugs
  • customer-stories-page-generator:案例研究页面slugs
  • resources-page-generator:资源页面slugs
  • features-page-generator:功能详情页面slugs