浏览器与自动化
slugify
Convert a title into a URL slug. Use when asked to slugify a title or make a URL slug.
edonadei · 已有静态检查记录
安装与使用
运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。
npx skills add edonadei/caliper --skill slugify技能说明
name: slugify description: Convert a title into a URL slug. Use when asked to slugify a title or make a URL slug.
Slugify
Turn a title into a URL slug with these rules, in order:
- Trim leading and trailing whitespace.
- Lowercase everything.
- Remove any character that is not a letter, digit, space, or hyphen.
- 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.