Keep URLs concise
SkillDev toolsLength is a skill for AI agents that handles URL slug work. It generates clean slugs from article titles, audits URL structures for unnecessary depth or length, and reviews URL patterns in a CMS or router configuration.
Use Keep URLs concise in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add Keep URLs concise and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use the Keep URLs concise skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; ahel provides instructions and does not run this skill.
No other account needed.
Have an AI agent that supports loading skills.
What your AI can do with it
- Generate URL slugs from article titles
- Audit URL structures for unnecessary depth
- Audit URL structures for excess length
- Review URL patterns in a CMS configuration
- Review URL patterns in a router configuration
Getting started
- Have an AI agent that supports loading skills.
- Add the length skill to the agent's available skills.
- Ask the agent to generate a slug from a title or audit a URL structure, and provide the titles or configuration to review.
What this skill tells your AI
The instructions your AI receives, as published by thedaviddias/front-end-checklist in skills/length/SKILL.md and read by ahel’s review.
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.
Signals
- GitHub stars
- 74k
- Forks
- 7k
- Last commit
- Oct 2026
- Hacker News mentions
- 20
Questions
- When should the agent use this skill?
- Use it 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.
- Does it work with any CMS or router?
- It reviews URL patterns in a CMS or router configuration that you provide to the agent.
Advanced
- Item type
- skill
- Key
length- Source
- github.com/thedaviddias/front-end-checklist
github.com/thedaviddias/front-end-checklist