---
name: slug-generator
version: 1.0.0
description: >-
  Generate a URL-friendly slug from text. Use when the user wants to convert
  a phrase or title into a clean, lowercase, hyphenated slug for URLs or filenames.
allowed-tools: Bash(bash:*)
metadata: >-
  {"openclaw":{"emoji":"🔗","requires":{"bins":["tr","sed"],"env":[]},"install":[]}}
---

# Slug Generator / 슬러그 생성기

Convert any text into a clean, URL-friendly slug with a single command.
텍스트를 깨끗한 URL 친화적 슬러그로 한 번의 명령으로 변환합니다.

## Usage / 사용법

```bash
bash run.sh <TEXT> [SEPARATOR]
```

**Arguments / 인수:**
| # | Name | Description | 설명 |
|---|------|-------------|------|
| 1 | TEXT | Text to convert to a slug | 슬러그로 변환할 텍스트 |
| 2 | SEPARATOR | `-` or `_` (default: `-`) | `-` 또는 `_` (기본값: `-`) |

## Example / 예시

```bash
bash run.sh "Hello World! This is a Test"
```

**Output / 출력:**
```
INPUT: Hello World! This is a Test
SEPARATOR: -
SLUG: hello-world-this-is-a-test
STATUS: OK
```

## Success / Failure — 성공 / 실패

- **Success / 성공**: Slug output followed by `STATUS: OK` (exit code 0) — 슬러그 출력과 `STATUS: OK` (종료 코드 0)
- **Failure / 실패**: Error message starting with `ERROR:` (exit code non-zero) — `ERROR:`로 시작하는 오류 메시지 (종료 코드 0이 아님)
