Usage
Lowercases, trims, and hyphenates a title.
const slug = title.toLowerCase().replace(/[^a-z0-9]+/g, '-');
console.log(slug);
Slug generator is an AI agent skill from the GitHub repository MohibShaikh/clawvet. Turns a title into a URL-friendly slug.
.claude/skills/slug-generator/SKILL.md.cursor/rules/slug-generator.md.agents/skills/slug-generator/SKILL.mdLowercases, trims, and hyphenates a title.
const slug = title.toLowerCase().replace(/[^a-z0-9]+/g, '-');
console.log(slug);