Saltar al contenido
Skillpedia
SEO75 mil · #2880

hyphens

Qué hace

Esta skill revisa las direcciones web de un sitio y sugiere guiones en lugar de guiones bajos o espacios. Es para dueños de sitios que quieren URL más claras para la búsqueda.

Cuándo usarla

  • ✓Cuando las direcciones de tus páginas usan guiones bajos para separar palabras.
  • ✓Cuando planificas una estructura de URL nueva o un formato de slug.
  • ✓Cuando pasas páginas de URL con guiones bajos a URL con guiones.

Link de la skill

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

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/hyphens/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“¿Puedes revisar las direcciones de mis páginas y cambiar los guiones bajos por guiones?”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

El agente busca en las rutas de las URL guiones bajos, espacios codificados y separadores mezclados. Sugiere versiones con guiones y las redirecciones 301 necesarias para que los enlaces existentes sigan funcionando.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de GitHub.

Use hyphens in URLs

Google's search systems interpret hyphens in URLs as word boundaries, enabling it to match the URL against individual keyword queries. Underscores join words into a single token, meaning /seo_practices is seen as one word 'seopractices' rather than two separate words 'seo' and 'practices'.

Quick Reference

  • Use hyphens (-) to separate words in URLs — Google treats hyphens as word separators, underscores as part of the word
  • /best-seo-practices is better than /best_seo_practices or /bestseopractices
  • Changing existing URLs from underscores to hyphens requires 301 redirects to preserve link equity

Check

Inspect the URL path segment of each page. Flag any URL that contains: (1) Underscores (_) as word separators (e.g., /best_practices). (2) Spaces encoded as %20 or + in path segments. (3) Mixed separators in the same URL (e.g., /best-practices_guide). Report the count of non-hyphenated URLs by category.

Fix

  1. Identify all pages with underscores or spaces in URL path segments.
  2. Generate the hyphenated equivalent: replace _ with -, spaces/%20 with -.
  3. Set up 301 permanent redirects from the old URLs to the new hyphenated URLs.
  4. Update internal links throughout the site to point to the new URLs.
  5. Submit the new URLs to Google Search Console for re-indexing.
  6. Update your sitemap.xml to include only the new hyphenated URLs.
  7. In your CMS or slug-generation function, enforce hyphens going forward:
    • Slug: title.toLowerCase().replace(/\s+/g, '-').replace(/[^a-z0-9-]/g, '')

Explain

Google's John Mueller has confirmed that Google interprets hyphens as word separators in URLs, but treats underscores as word joiners. This means a URL with underscores matches fewer individual keyword queries. For example, /web_design would match 'web_design' as a single token, while /web-design matches both 'web design' and 'webdesign' queries.

Code Review

Parse all URL paths used in the application's router or CMS slug fields. Flag any path segment containing _ characters between words or any %20 space encoding. Verify slug-generation utilities produce lowercase hyphenated output. Check redirect rules to confirm old underscore URLs are permanently (301) redirected to their hyphenated equivalents.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/seo/hyphens

Preguntas frecuentes

¿Por qué son mejores los guiones que los guiones bajos?

La skill dice que Google interpreta los guiones como separadores de palabras, mientras que los guiones bajos unen las palabras en un solo término.

¿Qué pasa con las URL antiguas tras un cambio?

La skill sugiere redirecciones 301 desde las direcciones antiguas, además de actualizar los enlaces internos y el sitemap.

¿Hay que enviar las URL nuevas?

La skill sugiere enviar las URL nuevas a Google Search Console para volver a indexarlas.

Detalles

Descripción original del autor

Use when auditing URL structures for word separator format, generating slugs from titles, or planning a URL migration from underscores or spaces to hyphens with appropriate redirects.

repo: thedaviddias/Front-End-Checklist

Popularidad

Estrellas en GitHub
75 mil
Posición en el ranking
#2880
Licencia
MIT
Actualizada
31/10/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas