跳至正文
OpenAgentSkill
浏览已开放 · 目录记录日期 2026-11-21 · 自动更新和账户服务暂时关闭。
浏览器与自动化

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:

  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.