Langsung ke konten
Skillpedia
SEO75k Β· #2919

length

Fungsinya

Skill ini meninjau alamat web di situs dan menyarankan versi yang lebih pendek dan lebih bersih. Skill ini ditujukan untuk pemilik situs dan penulis yang membuat slug halaman.

Kapan dipakai

  • βœ“Saat alamat halaman Anda panjang dan penuh kata pengisi.
  • βœ“Saat alamat web berisi banyak folder bertingkat atau tanggal.
  • βœ“Saat Anda membuat slug halaman dari judul artikel.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/length/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBisakah Anda memperpendek alamat halaman di blog saya?”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent meninjau setiap jalur untuk panjangnya, kata henti, kedalaman folder, dan tanggal pada konten yang tidak lekang waktu. Agent menyarankan slug yang lebih pendek namun tetap mempertahankan kata kunci utama.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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-grid is 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

  1. 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
  2. Flatten URL structure where category hierarchy is not essential:
    • /blog/2024/march/technology/css-grid β†’ /blog/css-grid
  3. Remove dates from evergreen content URLs (with 301 redirects from old URLs).
  4. Remove session IDs and tracking parameters from URLs used as canonical-url URLs.
  5. Implement changes with 301 redirects from old to new URLs to preserve link equity.
  6. 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.

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

Pertanyaan umum

Apakah ada batas panjang URL yang ketat?

Skill ini menyebut tidak ada batas yang ketat, tetapi menyarankan jalur tetap di bawah sekitar 100 karakter.

Kata apa yang sebaiknya dihapus dari slug?

Skill ini menyarankan menghapus kata henti seperti the, a, of, dan in.

Apakah tanggal sebaiknya ada di URL?

Skill ini menyebut tanggal dalam jalur bermasalah untuk konten yang tidak lekang waktu, sehingga menyarankan untuk dihindari.

Detail

Deskripsi asli dari pembuat

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.

repo: thedaviddias/Front-End-Checklist

Popularitas

Bintang GitHub
75k
Peringkat
#2919
Lisensi
MIT
Diperbarui
31/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa