Skip to content

Hyphens in URLs

Audit URLs for underscores and spaces, generate hyphenated slugs, and plan 301-redirect migrations

Stars
74,632
Licence
MIT
Files
2 files

What it does

This skill teaches the agent an SEO rule: separate words in web addresses with hyphens (for example /best-seo-practices) rather than underscores or spaces. When it is active, the agent can review a site's URL structure, flag underscore or encoded-space URLs, suggest hyphenated replacements, write a slug-generation function, and outline how to redirect old links to new ones without losing search value.

Great for

  • SEO specialists or site owners reviewing URL structure before or after a site rebuild
  • Developers writing slug-generation code for a CMS or blog
  • Teams planning a URL migration that must keep existing search rankings

Skip it if

  • Sites whose URLs are already consistent and stable, where changing them adds redirect risk for little gain
  • Sites where changing URLs would break bookmarks, API consumers or external links without proper 301 redirects in place

Try asking

  • “Audit the URLs in this sitemap and tell me which ones use underscores or %20 spaces”
  • “Write a JavaScript slug function that turns blog post titles into lowercase hyphenated URLs”
  • “Plan a migration from /web_design style URLs to hyphenated ones, including the redirect rules”
  • “Review our router config to check that old underscore paths 301 redirect to the new hyphenated ones”
Step-by-step guide: how to use Hyphens in URLsInstall, first run, examples, tips and FAQs

Install in 3 steps

  1. 1

    Download the skill

    The ZIP contains the 2 original files, the MIT licence and an attribution note.

    hyphens.zip
  2. 2

    Add it to your agent

    Claude Code (all projects)

    mkdir -p ~/.claude/skills && unzip hyphens.zip -d ~/.claude/skills/

    Claude Code / Agent SDK (this project only)

    mkdir -p .claude/skills && unzip hyphens.zip -d .claude/skills/

    Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.

  3. 3

    Ask for the task

    No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.

Get better results

  • Ask for the audit by URL category so you get counts of non-hyphenated URLs per section of the site.
  • Before bulk-renaming URLs, make sure the 301 redirects and sitemap update are in place, as the skill recommends.
  • The SEO claims are presented as Google guidance; check current search documentation if the exact ranking impact matters for a decision.

What's inside

  • references/rule.md
  • SKILL.md

Redistributed unmodified from thedaviddias/Front-End-Checklist under the MIT licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.