# Slugify

> Convert a title into a URL slug. Use when asked to slugify a title or make a URL slug.

- Skill: `edonadei/slugify` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add edonadei/slugify`
- Raw SKILL.md: https://api.skillmd.com/api/skills/edonadei/slugify/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: edonadei (https://skillmd.com/u/edonadei)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/edonadei/slugify

---


# Slugify

Turn a title into a URL slug with these rules, in order:

1. Trim leading and trailing whitespace.
2. Lowercase everything.
3. Remove any character that is not a letter, digit, space, or hyphen.
4. Replace each run of spaces with a single hyphen.

Write **only** the resulting slug to the file path you are given — no quotes,
no surrounding text, no trailing newline beyond the slug itself.

