huawei-cloud-nickname-generate
БесплатноЗапускает вложенные скриптыНе проверенRandomly generate one nickname, or a de-duplicated batch, (随机昵称). A single call assembles each nickname from a built-in Chinese morpheme pool: a *pattern*…
от wlc-dev233 установки в других каталогахОб этом скилле
Nickname Generator
Overview
This skill produces random nicknames (随机昵称). Each name is assembled from a
built-in pool of Chinese morphemes (scripts/nickname_data.json):
A pattern fixes the structure — e.g.
core(主体),prefix + core,modifier + core(修饰 + 主体), ormodifier + core + suffix(主体 + 后缀).An overall style (中性 / 文艺 / 可爱 / 简约) can be forced; when given, every slot is filtered to morphemes that carry that style, so the result really fits the requested style whenever the pool has a matching morpheme.
A length bucket (short / medium / long = 短 / 中 / 长) can be forced; each bucket selects the patterns whose total character count falls inside it.
One call → one nickname by default;
--count Nreturns a batch.Batch is de-duplicated — no name repeats within one run (a shortfall, if the pool is exhausted, is reported rather than silently repeating).
Reproducible — passing
--seedmakes a run deterministic; when omitted, a random seed is chosen and printed so the run can be reproduced later.Self-contained — pure Python 3 standard library, no network, no credentials.
Demo content only — output is a generated nickname suggestion, not a checked or registered handle; uniqueness/trademark/sensitive-word checks are out of scope.
Prerequisites
- Python 3.8+ available as
python3(orpython) onPATH. - No Huawei Cloud credentials, CLI (KooCLI), SDK, or network access are needed; this skill is entirely local.
scripts/nickname_data.jsonmust be present (it ships with the skill) unless a custom pool is supplied with--data.
Workflow
- Load the morpheme pool —
load_data()readsscripts/nickname_data.jsonand returns thestyleslist, thelengthsbuckets (each with its character-count range and pattern list), and the per-slotparts(prefix/modifier/core/suffix, each morpheme carrying itsnameandstyles);--datamay override it with a custom JSON file of the same shape. - Resolve the frame —
generate_nicknames(count, seed, style, length)picks a style and a length bucket withrandom.Random(seed)when they are not given on the command line (marking their*_sourceasrandom), or normalizes the CLI values (aliases and case-insensitive matching;*_source = cli). - Assemble each nickname — a pattern is chosen for the bucket, and one morpheme per
slot is drawn from the pool filtered by the chosen style. A slot with no strict style
match is relaxed and recorded under
fallbacks. The batch is de-duplicated. - Render —
render_markdown()/render_text()/render_json()turn the result into readable output (Markdown by default). - Emit — the result goes to standard output, or to a file when
--outputis given.
Core Commands
# Default: one Markdown nickname, reproducible with the given seed
python3 scripts/generate_nickname.py --seed 20240501
# A de-duplicated batch of 5, as JSON
python3 scripts/generate_nickname.py --seed 42 --count 5 --format json
# Force a style (aliases accepted, case-insensitive)
python3 scripts/generate_nickname.py --seed 7 --count 3 --style cute
python3 scripts/generate_nickname.py --seed 7 --style 文艺
# Force a length bucket (short / medium / long or 短 / 中 / 长)
python3 scripts/generate_nickname.py --seed 9 --style 文艺 --length 长 --count 3
# Plain text
python3 scripts/generate_nickname.py --seed 42 --count 2 --format text
# List the styles / length buckets the pool supports
python3 scripts/generate_nickname.py --list-styles
python3 scripts/generate_nickname.py --list-lengths
# Use a custom pool and write the result to a file
python3 scripts/generate_nickname.py --data /path/to/nickname_data.json --output nicknames.md
# Run the bundled unit tests
python3 -m unittest discover -s tests -v
The command-line entry point is scripts/generate_nickname.py; the built-in
scripts/nickname_data.json is what the examples above read by default.
Parameter Confirmation
| Parameter | Required | Description | Default |
|---|---|---|---|
--count |
No | Number of nicknames to generate; must be 1–20 |
1 |
--seed |
No | Integer seed for reproducible output | random (printed) |
--style |
No | Force a style: 中性 (neutral), 文艺 (artsy), 可爱 (cute), 简约 (minimal); aliases accepted |
random |
--length |
No | Force a length bucket: short (短, 2–3 chars), medium (中, 4–6), long (长, 7–10) |
random |
--format |
No | Output format: markdown, text, or json |
markdown |
--data |
No | Path to a custom morpheme-pool JSON | scripts/nickname_data.json |
--output |
No | Write the result to a file instead of stdout | stdout |
--list-styles |
No | Print the available styles and exit | off |
--list-lengths |
No | Print the available length buckets and exit | off |
--count above the maximum (20) or below 1 is reje
Установить huawei-cloud-nickname-generate в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл huawei-cloud-nickname-generate?
Randomly generate one nickname, or a de-duplicated batch, (随机昵称). A single call assembles each nickname from a built-in Chinese morpheme pool: a *pattern* (e.g. modifier + core) fixes the structure, an optional **style** (中性 / 文艺 / 可爱 / 简约) filters every slot to morphemes carrying that style, and an optional **length** bucket (short / medium / long — 短 / 中 / 长) selects patterns whose character count fits the bucket. `--count` controls how many are returned (default 1, max 20) and the batch never repeats a name; `--seed` makes any run reproducible (auto-generated seeds are printed). Output is readable Markdown by default, with plain-text and JSON alternatives, and `--output` writes to a file. Implemented with the Python 3 standard library only; it does not call the Huawei Cloud CLI, any Huawei Cloud SDK, or any REST API, and it touches no cloud resource. Triggers include: "随机昵称", "生成昵称", "昵称生成", "起个昵称", "随机生成昵称", "取名字", "生成一批昵称", "nickname generate", "random nickname", "nickname generator", "generate a nickname", "batch nicknames".
Как установить скилл huawei-cloud-nickname-generate?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл huawei-cloud-nickname-generate запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic