Draw
Design toolkit for managing color palettes, generating swatches, mixing colors, creating gradients, previewing designs, and exporting results. A command-line companion for designers and front-end developers.
Commands
| Command |
Description |
draw palette <input> |
Create or log a color palette entry |
draw preview <input> |
Record a design preview note |
draw generate <input> |
Generate and log a design asset or concept |
draw convert <input> |
Log a color or format conversion |
draw harmonize <input> |
Record a color harmony analysis |
draw contrast <input> |
Log a contrast check result |
draw export <input> |
Log an export operation |
draw random <input> |
Record a random color or design generation |
draw browse <input> |
Log a browsing/discovery session |
draw mix <input> |
Record a color mixing result |
draw gradient <input> |
Log a gradient definition |
draw swatch <input> |
Record a color swatch entry |
draw stats |
Show summary statistics across all logs |
draw export <fmt> |
Export all data (json, csv, or txt) |
draw search <term> |
Search across all log files for a term |
draw recent |
Show the 20 most recent activity entries |
draw status |
Health check — version, disk usage, last activity |
draw help |
Show all available commands |
draw version |
Show current version |
Each command without arguments displays the most recent 20 entries from its log file.
Data Storage
All data is stored in ~/.local/share/draw/:
- Per-command logs —
palette.log, preview.log, generate.log, convert.log, harmonize.log, contrast.log, export.log, random.log, browse.log, mix.log, gradient.log, swatch.log
- Activity history —
history.log (unified timeline of all actions)
- Exports —
export.json, export.csv, or export.txt (generated on demand)
Data format: each entry is stored as YYYY-MM-DD HH:MM|<value>, pipe-delimited for easy parsing.
Requirements
- Bash 4+ with
set -euo pipefail
- Standard POSIX utilities (
date, wc, du, head, tail, grep, cut, basename)
- No external dependencies or API keys required
When to Use
- Building a color system — log palettes, harmonies, and contrast checks while designing a brand or UI theme
- Prototyping design assets — generate swatches, gradients, and random color explorations for rapid iteration
- Auditing accessibility — record contrast ratios and color harmony data for WCAG compliance reviews
- Maintaining a design journal — track every color decision, mix experiment, and conversion over time
- Exporting design data — export your full color and design history as JSON, CSV, or plain text for handoff to other tools
Examples
# Log a new palette
draw palette "#FF5733 #33FF57 #3357FF warm-sunset"
# Record a contrast check
draw contrast "bg:#FFFFFF fg:#333333 ratio:12.6:1 PASS"
# Mix two colors and log the result
draw mix "#FF0000 + #0000FF = #800080 purple"
# Generate a gradient definition
draw gradient "linear 90deg #000000 → #FFFFFF"
# Create a swatch entry
draw swatch "Coral #FF7F50 used in header CTA"
# Export all design data as JSON
draw export json
# Search all logs for a specific hex color
draw search "FF5733"
# View recent activity
draw recent
# Check overall status
draw status
Output
All command output goes to stdout. Redirect to a file if needed:
draw stats > design-report.txt
draw export csv
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com
1---2name: draw3version: "2.0.0"4author: BytesAgain5homepage: https://bytesagain.com6source: https://github.com/bytesagain/ai-skills7license: MIT-08tags: [draw, tool, utility]9description: "Create SVG diagrams with shapes, layers, and multi-format export. Use when generating graphics, building diagrams, arranging layouts."10metadata:11 source: https://skillmd.com/skills/bytesagain/draw12---1314# Draw1516Design toolkit for managing color palettes, generating swatches, mixing colors, creating gradients, previewing designs, and exporting results. A command-line companion for designers and front-end developers.1718## Commands1920| Command | Description |21|---------|-------------|22| `draw palette <input>` | Create or log a color palette entry |23| `draw preview <input>` | Record a design preview note |24| `draw generate <input>` | Generate and log a design asset or concept |25| `draw convert <input>` | Log a color or format conversion |26| `draw harmonize <input>` | Record a color harmony analysis |27| `draw contrast <input>` | Log a contrast check result |28| `draw export <input>` | Log an export operation |29| `draw random <input>` | Record a random color or design generation |30| `draw browse <input>` | Log a browsing/discovery session |31| `draw mix <input>` | Record a color mixing result |32| `draw gradient <input>` | Log a gradient definition |33| `draw swatch <input>` | Record a color swatch entry |34| `draw stats` | Show summary statistics across all logs |35| `draw export <fmt>` | Export all data (json, csv, or txt) |36| `draw search <term>` | Search across all log files for a term |37| `draw recent` | Show the 20 most recent activity entries |38| `draw status` | Health check — version, disk usage, last activity |39| `draw help` | Show all available commands |40| `draw version` | Show current version |4142Each command without arguments displays the most recent 20 entries from its log file.4344## Data Storage4546All data is stored in `~/.local/share/draw/`:4748- **Per-command logs** — `palette.log`, `preview.log`, `generate.log`, `convert.log`, `harmonize.log`, `contrast.log`, `export.log`, `random.log`, `browse.log`, `mix.log`, `gradient.log`, `swatch.log`49- **Activity history** — `history.log` (unified timeline of all actions)50- **Exports** — `export.json`, `export.csv`, or `export.txt` (generated on demand)5152Data format: each entry is stored as `YYYY-MM-DD HH:MM|<value>`, pipe-delimited for easy parsing.5354## Requirements5556- Bash 4+ with `set -euo pipefail`57- Standard POSIX utilities (`date`, `wc`, `du`, `head`, `tail`, `grep`, `cut`, `basename`)58- No external dependencies or API keys required5960## When to Use61621. **Building a color system** — log palettes, harmonies, and contrast checks while designing a brand or UI theme632. **Prototyping design assets** — generate swatches, gradients, and random color explorations for rapid iteration643. **Auditing accessibility** — record contrast ratios and color harmony data for WCAG compliance reviews654. **Maintaining a design journal** — track every color decision, mix experiment, and conversion over time665. **Exporting design data** — export your full color and design history as JSON, CSV, or plain text for handoff to other tools6768## Examples6970```bash71# Log a new palette72draw palette "#FF5733 #33FF57 #3357FF warm-sunset"7374# Record a contrast check75draw contrast "bg:#FFFFFF fg:#333333 ratio:12.6:1 PASS"7677# Mix two colors and log the result78draw mix "#FF0000 + #0000FF = #800080 purple"7980# Generate a gradient definition81draw gradient "linear 90deg #000000 → #FFFFFF"8283# Create a swatch entry84draw swatch "Coral #FF7F50 used in header CTA"8586# Export all design data as JSON87draw export json8889# Search all logs for a specific hex color90draw search "FF5733"9192# View recent activity93draw recent9495# Check overall status96draw status97```9899## Output100101All command output goes to stdout. Redirect to a file if needed:102103```bash104draw stats > design-report.txt105draw export csv106```107108---109110*Powered by BytesAgain | bytesagain.com | hello@bytesagain.com*