hyphens
하는 일
이 스킬은 사이트의 웹 주소를 확인하고, 밑줄이나 공백 대신 하이픈을 쓰도록 제안합니다. 검색을 위해 더 명확한 URL을 원하는 사이트 운영자를 위한 것입니다.
사용하는 경우
- ✓페이지 주소가 단어를 나누는 데 밑줄을 쓸 때.
- ✓새 URL 구조나 슬러그 형식을 계획할 때.
- ✓밑줄 URL 페이지를 하이픈 URL로 옮길 때.
스킬 링크
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/hyphens/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 페이지 주소를 확인하고 밑줄을 하이픈으로 바꿔 주실 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 URL 경로에서 밑줄, 인코딩된 공백, 섞인 구분 기호를 찾습니다. 하이픈이 들어간 버전과, 기존 링크를 계속 작동하게 하는 데 필요한 301 리디렉션을 제안합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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-practicesis better than/best_seo_practicesor/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
- Identify all pages with underscores or spaces in URL path segments.
- Generate the hyphenated equivalent: replace
_with-, spaces/%20with-. - Set up 301 permanent redirects from the old URLs to the new hyphenated URLs.
- Update internal links throughout the site to point to the new URLs.
- Submit the new URLs to Google Search Console for re-indexing.
- Update your sitemap.xml to include only the new hyphenated URLs.
- 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.
자주 묻는 질문
하이픈이 밑줄보다 나은 이유는 무엇인가요?
스킬은 Google이 하이픈을 단어 경계로 읽는 반면, 밑줄은 단어를 하나의 토큰으로 묶는다고 설명합니다.
변경 후 예전 URL은 어떻게 하나요?
스킬은 예전 주소에서 301 리디렉션을 걸고, 내부 링크와 사이트맵도 업데이트하라고 제안합니다.
새 URL을 제출해야 하나요?
스킬은 새 URL을 Google Search Console에 제출해 다시 색인되도록 하라고 제안합니다.
상세 정보
작성자의 원본 설명
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.
인기도
- GitHub 스타
- 75k
- 순위
- #2880
- 라이선스
- MIT
- 업데이트
- 2026. 10. 31.
댓글
- …
이 저장소의 다른 스킬
frontendchecklist
75k명령줄 도구를 사용해 380개가 넘는 규칙으로 프런트엔드 코드와 실시간 페이지를 접근성, 속도, SEO, 보안 측면에서 점검합니다.
frontend-checklist-global
75kFront-End Checklist의 386개 규칙 전체로 프런트엔드 프로젝트를 감사하고, 발견한 문제마다 구체적인 해결 방법을 제시합니다.
404-page
75k없는 페이지 화면에 도움이 되는 링크가 있고 실제 404 상태 코드를 반환하는지 확인해, 길을 잃은 방문자를 돕습니다.
about-page
75k사이트를 운영하는 사람을 설명하는 명확한 소개 페이지가 있는지 검토해, 방문자와 검색 엔진의 신뢰를 높입니다.
비슷한 스킬
competitive-platform-analysis
280k경쟁사를 식별하고 분류하며 걸러내 더 깊은 분석을 하기 전에 경쟁 구도를 이해하도록 돕습니다.
competitive-report-structure
280k경쟁사 정보를 결합해 전체 시장 현황과 추천 사항을 보여 주는 종합 보고서를 만들고, 팀의 방향을 맞추도록 돕습니다.
lead-intelligence
280k중요한 사람을 찾고 연락하도록 에이전트를 돕습니다. 잠재 고객을 분석하고 접근 방법을 제안하며, 이메일과 소셜 미디어를 통한 연락을 관리합니다.