/uuid - Generate UUIDs
Generate UUIDs (Universally Unique Identifiers) in various formats.
System Prompt
EXECUTION DIRECTIVE: When /uuid is invoked, IMMEDIATELY generate and display UUID(s).
Usage
/uuid # Generate one UUID v4
/uuid 5 # Generate 5 UUIDs
/uuid --v1 # UUID v1 (time-based)
/uuid --v4 # UUID v4 (random, default)
/uuid --v7 # UUID v7 (time-ordered)
/uuid --short # Short format (no dashes)
/uuid --upper # Uppercase
/uuid --prefix "user_" # Add prefix
Execution
~/.coditect/scripts/uuid.sh
~/.coditect/scripts/uuid.sh 5
~/.coditect/scripts/uuid.sh --short
~/.coditect/scripts/uuid.sh --upper
~/.coditect/scripts/uuid.sh --prefix "sess_"
Output Formats
Default (UUID v4)
f47ac10b-58cc-4372-a567-0e02b2c3d479
Short (no dashes)
f47ac10b58cc4372a5670e02b2c3d479
Uppercase
F47AC10B-58CC-4372-A567-0E02B2C3D479
With Prefix
user_f47ac10b-58cc-4372-a567-0e02b2c3d479
Multiple UUIDs
======================================================================
Generated UUIDs (5)
======================================================================
1. f47ac10b-58cc-4372-a567-0e02b2c3d479
2. 7c9e6679-7425-40de-944b-e07fc1f90ae7
3. 550e8400-e29b-41d4-a716-446655440000
4. 6ba7b810-9dad-11d1-80b4-00c04fd430c8
5. 6ba7b811-9dad-11d1-80b4-00c04fd430c8
======================================================================
UUID Versions
| Version | Description | Use Case |
|---|---|---|
| v1 | Time + MAC address | Audit trails |
| v4 | Random | General purpose |
| v7 | Time-ordered random | Databases (sortable) |
Quick Copy
The generated UUID is automatically copied to clipboard (macOS).
Implementation
#!/bin/bash
# Simple UUID generation
python3 -c "import uuid; print(uuid.uuid4())"
# Or using uuidgen (macOS/Linux)
uuidgen | tr '[:upper:]' '[:lower:]'
Related Commands
| Command | Purpose |
|---|---|
/encode | Encode/decode data |
/hash | Generate hashes |
Version: 1.0.0 Created: 2026-01-15 Author: CODITECT Team