Skip to content
Back to skills

Unicode Slugs

ASecurity

Build URL slugs from titles that may contain accents, punctuation or repeated separators. Use when writing or fixing a slugify function.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
ai-agents

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 7, 2026

npx -y skills add dgesteves/sigil --skill unicode-slugs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Unicode Slugs?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Unicode Slugs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dgesteves-unicode-slugs/badge)](https://www.skillsdirectory.com/skills/dgesteves-unicode-slugs)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: unicode-slugs
description: Build URL slugs from titles that may contain accents, punctuation or repeated separators. Use when writing or fixing a slugify function.
---

# Unicode-safe slugs

1. Normalize with `String.prototype.normalize('NFKD')` so accented letters split into a base letter
   and combining marks.
2. Remove the combining marks: `.replace(/[̀-ͯ]/g, '')`.
3. Lowercase, then replace every run of characters that are not `a-z` or `0-9` with one hyphen.
4. Trim hyphens from both ends.
5. Run the project's tests before saying you are done.

Files in this skill

  • SKILL.md567 B
  • sigil.yaml376 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.