360 Secure SkillHub
360 安全技能中心

Quick UUID

该 Skill 提供零依赖的命令行片段,可用 Python 生成 UUID v4 与 URL 安全短随机 ID,或用 Linux 内核接口生成 UUID,适合文件、记录、测试夹具和关联 ID;没有安装脚本或唯一性校验。

分类:效率
terrycarter1985
terrycarter1985
热度 16.60
最近更新 2026-06-10 09:07:57

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add terrycarter1985/quick-uuid
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
quick-uuid
description
Generate UUIDs (v4) and short random IDs from the command line. Use when you need a unique identifier for files, records, test fixtures, or correlation IDs and want a zero-dependency one-liner.

quick-uuid

A tiny helper for generating unique identifiers without extra dependencies.

Generate a UUID v4

# Linux (kernel-provided)
cat /proc/sys/kernel/random/uuid

# Portable (Python, always available with OpenClaw runtimes)
python3 -c "import uuid; print(uuid.uuid4())"

Generate a short random ID (8 chars, url-safe)

python3 -c "import secrets; print(secrets.token_urlsafe(6))"

Generate several at once

python3 -c "import uuid;[print(uuid.uuid4()) for _ in range(5)]"

Notes

  • UUID v4 is random; collision probability is negligible for practical use.
  • Prefer secrets over random for anything security-adjacent.
  • Short IDs are convenient for logs/correlation but are NOT collision-proof at scale.