length
できること
このスキルは、サイトのウェブアドレスを確認し、より短く整理されたものを提案します。ページのスラッグを作るサイト運営者やライター向けです。
使う場面
- ✓ページのアドレスが長く、不要な単語が多いとき。
- ✓ウェブアドレスに入れ子のフォルダーや日付が多く含まれているとき。
- ✓記事のタイトルからページのスラッグを作っているとき。
スキルのリンク
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/length/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私のブログのページアドレスを短くしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、各パスの長さ、ストップワード、深い入れ子、時を問わず役立つコンテンツにおける日付を確認します。重要なキーワードを残しつつ、より短いスラッグを提案します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Keep URLs concise
While Google has no strict URL length limit beyond technical constraints, long URLs with deep nesting, excessive parameters, or redundant words are harder for users to read, copy, and share. Google's John Mueller has confirmed that shorter, cleaner URLs are easier to understand and may perform slightly better in search.
Quick Reference
- Keep URL paths under 100 characters; Google recommends short, descriptive URLs without unnecessary parameters
- Remove stop words (
the,a,of,in) from slugs —/guide-css-gridis better than/a-guide-to-css-grid - Deeply nested paths (
/blog/2024/03/category/subcategory/post-title) are harder to share and signal distance from the root
Check
For each page URL, extract the path component (excluding domain and query string). Flag: (1) Path length over 100 characters. (2) More than 4 path segments (e.g., /a/b/c/d/e has 5 segments). (3) Common stop words in slugs (the, a, an, of, in, at, to, for, with). (4) Dates in URL paths for evergreen content (e.g., /blog/2024/03/css-guide). (5) Session IDs, tracking parameters, or other dynamic values in paths.
Fix
- Shorten slugs by removing stop words:
/how-to-optimise-your-websites-core-web-vitals→/optimise-core-web-vitals/a-comprehensive-guide-to-css-grid-layout→/css-grid-guide
- Flatten URL structure where category hierarchy is not essential:
/blog/2024/march/technology/css-grid→/blog/css-grid
- Remove dates from evergreen content URLs (with 301 redirects from old URLs).
- Remove session IDs and tracking parameters from URLs used as canonical-url URLs.
- Implement changes with 301 redirects from old to new URLs to preserve link equity.
- Update sitemaps and internal links after URL changes.
Explain
Google recommends keeping URLs 'simple, descriptive, and readable'. Long URLs are more prone to being truncated in search snippets, harder to share, and more confusing to users. Deep URL structures (many subdirectories) do not directly harm rankings, but they can increase crawl distance from the root, reducing crawl frequency for deep pages on large sites.
Code Review
Parse the pathname of each URL. Count path segments (split by /). Measure character length of the path. Flag slugs containing common stop words. Report the longest 10 URLs by character count and deepest 10 by segment count. Check whether URL generation utilities strip stop words and limit segment depth.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
よくある質問
URLの長さには厳密な上限がありますか?
このスキルによると、厳密な上限はありませんが、パスを約100文字以内に収めることを勧めています。
スラッグからはどの単語を取り除くべきですか?
このスキルは、the、a、of、inなどのストップワードを取り除くことを勧めています。
URLに日付を入れるべきですか?
このスキルによると、時を問わず役立つコンテンツでは、パスに日付を入れることは問題であり、避けるよう提案しています。
詳細
作者による元の説明
Use when generating URL slugs from article titles, auditing URL structures for unnecessary depth or length, or reviewing URL patterns in a CMS or router configuration.
人気
- GitHubのスター
- 75k
- ランキング
- #2919
- ライセンス
- MIT
- 更新日
- 2026/10/31
コメント
- …
このリポジトリの他のスキル
frontendchecklist
75kコマンドラインツールを使って、フロントエンドのコードとライブページを、アクセシビリティ、速度、SEO、セキュリティに関する380以上のルールと照らし合わせて確認します。
frontend-checklist-global
75kフロントエンドのプロジェクトを、386のFront-End Checklistのルールすべてと照らし合わせて監査し、見つかった問題ごとに具体的な修正方法を示します。
404-page
75k見つからないページの画面に役立つリンクがあり、本物の404ステータスを返すかを確認し、迷った訪問者が目的のページを見つけられるようにします。
about-page
75kサイトの運営者が誰かを説明する、分かりやすいAboutページがあるかを確認し、訪問者と検索エンジンからの信頼を高めます。
似ているスキル
competitive-platform-analysis
280k競合他社を把握するのに役立ちます。より深い分析を行う前に、競合企業を特定し、分類し、絞り込みます。
competitive-report-structure
280k包括的な競合レポートを作成します。情報をまとめて業界全体の状況や提言を示し、チームの認識をそろえるのに役立ちます。
lead-intelligence
280kエージェントが重要な人物を見つけて連絡を取るのを支援します。見込み客を分析し、アプローチを提案し、メールやSNSを通じたアウトリーチを管理します。