Skill: ckchzh/name-generator (version 2.0.0)

--- version: "2.0.0" name: Name Generator description: "起名取名助手。宝宝起名、英文名、笔名、品牌名。含寓意解析。. Use when you need name generator capabilities. Triggers on: name generator." 起名助手。宝宝取名、公司起名、笔名、网名、英文名。Name generator for babies, companies, pen names, usernames, English names. 取名字、起名大全、姓名测试。Use when naming anything. author: BytesAgain homepage: https://bytesagain.com source: https://github.com/bytesagain/ai-skills --- # name-generator 起名取名助手。宝宝起名、英文名、笔名、品牌名。含寓意解析。 ## Commands | 命令 | 说明 | |------|------| | `name.sh baby "姓" [--gender 男\|女\|中性]` | 生成5个宝宝名（含寓意解析） | | `name.sh english "中文名"` | 英文名推荐（音近/意近） | | `name.sh brand "行业" "调性"` | 品牌名生成 | | `name.sh pen "风格"` | 笔名/网名推荐 | | `name.sh help` | 显示帮助信息 | ## Usage 当用户询问起名、取名、英文名、品牌名等话题时，使用对应命令。 **示例：** ```bash # 姓李的女孩名字 bash scripts/name.sh baby "李" --gender 女 # 根据中文名推荐英文名 bash scripts/name.sh english "张明" # 科技行业高端品牌名 bash scripts/name.sh brand "科技" "高端" # 文艺风笔名 bash scripts/name.sh pen "文艺" ``` 将脚本输出作为推荐基础，可根据用户喜好进一步调整。 --- 💬 Feedback & Feature Requests: https://bytesagain.com/feedback Powered by BytesAgain | bytesagain.com - Run `name-generator help` for all commands

path: scripts/script.sh
content: #!/usr/bin/env bash
# name-generator - Multi-purpose utility tool
set -euo pipefail
VERSION="2.0.0"
DATA_DIR="${NAME_GENERATOR_DIR:-${XDG_DATA_HOME:-$HOME/.local/share}/name-generator}"
DB="$DATA_DIR/data.log"
mkdir -p "$DATA_DIR"

show_help() {
    cat << EOF
name-generator v$VERSION

Multi-purpose utility tool

Usage: name-generator <command> [args]

Commands:
  run                  Execute main function
  config               Configuration
  status               Show status
  init                 Initialize
  list                 List items
  add                  Add entry
  remove               Remove entry
  search               Search
  export               Export data
  info                 Show info
  help                 Show this help
  version              Show version

Data: \$DATA_DIR
EOF
}

_log() { echo "$(date '+%m-%d %H:%M') $1: $2" >> "$DATA_DIR/history.log"; }

cmd_run() {
    echo "  Running: $1"
    _log "run" "${1:-}"
}

cmd_config() {
    echo "  Config: $DATA_DIR/config.json"
    _log "config" "${1:-}"
}

cmd_status() {
    echo "  Status: ready"
    _log "status" "${1:-}"
}

cmd_init() {
    echo "  Initialized in $DATA_DIR"
    _log "init" "${1:-}"
}

cmd_list() {
    [ -f "$DB" ] && cat "$DB" || echo "  (empty)"
    _log "list" "${1:-}"
}

cmd_add() {
    echo "$(date +%Y-%m-%d) $*" >> "$DB"; echo "  Added: $*"
    _log "add" "${1:-}"
}

cmd_remove() {
    echo "  Removed: $1"
    _log "remove" "${1:-}"
}

cmd_search() {
    grep -i "$1" "$DB" 2>/dev/null || echo "  Not found: $1"
    _log "search" "${1:-}"
}

cmd_export() {
    [ -f "$DB" ] && cat "$DB" || echo "No data"
    _log "export" "${1:-}"
}

cmd_info() {
    echo "  Version: $VERSION | Data: $DATA_DIR"
    _log "info" "${1:-}"
}

case "${1:-help}" in
    run) shift; cmd_run "$@" ;;
    config) shift; cmd_config "$@" ;;
    status) shift; cmd_status "$@" ;;
    init) shift; cmd_init "$@" ;;
    list) shift; cmd_list "$@" ;;
    add) shift; cmd_add "$@" ;;
    remove) shift; cmd_remove "$@" ;;
    search) shift; cmd_search "$@" ;;
    export) shift; cmd_export "$@" ;;
    info) shift; cmd_info "$@" ;;
    help|-h) show_help ;;
    version|-v) echo "name-generator v$VERSION" ;;
    *) echo "Unknown: $1"; show_help; exit 1 ;;
esac


Security scan verdicts — ClawScan: clean | static analysis: clean | VirusTotal: clean | SkillSpector: suspicious (MEDIUM)