Slug Generator

v1.0.0

Generate URL-friendly slugs from text. 将任意文本转换为SEO友好的URL别名,支持中英文混合、自动去除特殊字符。适合博客、电商、CMS系统。URL slug maker, permalink generator, URL safe string.

0· 33·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for darbling/slug-generator.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Slug Generator" (darbling/slug-generator) from ClawHub.
Skill page: https://clawhub.ai/darbling/slug-generator
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install slug-generator

ClawHub CLI

Package manager switcher

npx clawhub@latest install slug-generator
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description match the included code and runtime instructions. The Python script implements slug generation (including a hard-coded Chinese->pinyin map) and the SKILL.md shows examples consistent with that purpose.
Instruction Scope
Instructions are limited to running the local script and contain no file-system, network, or credential access. Minor documentation/flag mismatch: SKILL.md examples use '--uppercase' while the script accepts '--upper' and '--title'. Also the script's to_pinyin behavior drops characters not in the hard-coded map (functional limitation, not a security issue).
Install Mechanism
No install spec and no remote downloads. This is an instruction-only skill with a small bundled script, so nothing is written to disk beyond the included file.
Credentials
The skill requires no environment variables, credentials, or config paths — proportional to its stated purpose.
Persistence & Privilege
always is false and the skill does not attempt to persist configuration or modify other skills or system settings.
Assessment
This skill appears safe and coherent for local use: it runs only a contained Python script and doesn't access network or secrets. Before using in production, note functional issues (incomplete hard-coded PINYIN_MAP, characters not in the map are dropped, and the CLI flag names in SKILL.md don't exactly match the script: use --upper or --title rather than --uppercase). If you need robust Chinese->pinyin conversion or full Unicode normalization, consider replacing the hand-rolled map with a maintained pinyin library and add tests for edge cases.

Like a lobster shell, security has layers — review code before you run it.

generatorvk97az0wmqgsr401v48fc4r3bss85n7xelatestvk97az0wmqgsr401v48fc4r3bss85n7xelinkvk97az0wmqgsr401v48fc4r3bss85n7xepermalinkvk97az0wmqgsr401v48fc4r3bss85n7xeseovk97az0wmqgsr401v48fc4r3bss85n7xeslugvk97az0wmqgsr401v48fc4r3bss85n7xeurlvk97az0wmqgsr401v48fc4r3bss85n7xe
33downloads
0stars
1versions
Updated 16h ago
v1.0.0
MIT-0

Slug Generator 🔗

URL友好别名生成工具。

Features | 功能

  • 中英文支持:中文转拼音Slug
  • 特殊字符过滤:自动移除不合规字符
  • 多格式输出:小写/大写/标题式

Usage | 使用

# 基础转换
python3 scripts/slug.py "Hello World"

# 中文转拼音Slug
python3 scripts/slug.py "这是一个测试"

# 自定义分隔符
python3 scripts/slug.py "Hello World" --separator _

# 大写格式
python3 scripts/slug.py "Hello World" --uppercase

免责声明:本工具仅供学习参考,不构成任何投资或商业建议。

Comments

Loading comments...