← 返回 Skills 市场
bytesagain3

Draw

作者 bytesagain3 · GitHub ↗ · v2.0.1 · MIT-0
cross-platform ✓ 安全检测通过
347
总下载
0
收藏
4
当前安装
7
版本数
在 OpenClaw 中安装
/install draw
功能描述
Create SVG diagrams with shapes, layers, and multi-format export. Use when generating graphics, building diagrams, arranging layouts.
使用说明 (SKILL.md)

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 \x3Cinput> Create or log a color palette entry
draw preview \x3Cinput> Record a design preview note
draw generate \x3Cinput> Generate and log a design asset or concept
draw convert \x3Cinput> Log a color or format conversion
draw harmonize \x3Cinput> Record a color harmony analysis
draw contrast \x3Cinput> Log a contrast check result
draw export \x3Cinput> Log an export operation
draw random \x3Cinput> Record a random color or design generation
draw browse \x3Cinput> Log a browsing/discovery session
draw mix \x3Cinput> Record a color mixing result
draw gradient \x3Cinput> Log a gradient definition
draw swatch \x3Cinput> Record a color swatch entry
draw stats Show summary statistics across all logs
draw export \x3Cfmt> Export all data (json, csv, or txt)
draw search \x3Cterm> 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 logspalette.log, preview.log, generate.log, convert.log, harmonize.log, contrast.log, export.log, random.log, browse.log, mix.log, gradient.log, swatch.log
  • Activity historyhistory.log (unified timeline of all actions)
  • Exportsexport.json, export.csv, or export.txt (generated on demand)

Data format: each entry is stored as YYYY-MM-DD HH:MM|\x3Cvalue>, 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

  1. Building a color system — log palettes, harmonies, and contrast checks while designing a brand or UI theme
  2. Prototyping design assets — generate swatches, gradients, and random color explorations for rapid iteration
  3. Auditing accessibility — record contrast ratios and color harmony data for WCAG compliance reviews
  4. Maintaining a design journal — track every color decision, mix experiment, and conversion over time
  5. 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 | [email protected]

安全使用建议
This skill is coherent and appears to do exactly what it claims: a local journaling/asset-logging CLI that writes files to ~/.local/share/draw. Before installing, be aware that: (1) it will create and append logs in that directory (history.log and per-command .log files) and export files (export.json/csv/txt); (2) anything you pass as input is stored verbatim — avoid sending secrets or sensitive information to it; (3) if you share the machine or back up home directories, these logs may be included. If you’re comfortable with those behaviors, the skill is reasonable to install; otherwise run it in an isolated account/container or inspect/remove the data directory after use.
功能分析
Type: OpenClaw Skill Name: draw Version: 2.0.1 The 'draw' skill is a simple Bash-based logging utility designed to record design-related metadata (colors, palettes, and notes) into text files within '~/.local/share/draw/'. While the documentation in SKILL.md claims it can 'Create SVG diagrams', the actual implementation in scripts/script.sh is limited to text logging, searching, and exporting those logs. There is no evidence of malicious intent, data exfiltration, or risky command execution.
能力评估
Purpose & Capability
Name/description (SVG/diagram/design journaling) align with the included script and SKILL.md: commands log palettes, previews, mixes, exports, and produce export files. Nothing requested (no env vars, no binaries) is out of scope.
Instruction Scope
SKILL.md and the script only instruct reading/writing files under ~/.local/share/draw, printing to stdout, and using standard POSIX utilities. There are no instructions to read unrelated system configs, credentials, or to transmit data externally.
Install Mechanism
No install spec; the skill is instruction + a single bash script. There are no downloads, package installs, or external release URLs — low-risk delivery mechanism.
Credentials
The skill declares no required environment variables or credentials. The script uses HOME implicitly to construct the data dir, which is expected for a user-facing CLI and proportionate to its purpose.
Persistence & Privilege
always is false and the skill does not request elevated privileges. It persists data only under ~/.local/share/draw (its own data directory), which is a normal level of persistence for a CLI tool.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install draw
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /draw 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.1
update
v2.0.0
v2.5 standard: Use-when desc, homepage, source, security fix
v1.0.4
old template -> domain-specific v2.0.0
v1.0.3
old template -> domain-specific v2.0.0
v1.0.2
Quality upgrade: custom functionality
v1.0.1
De-template, unique content, script cleanup
v1.0.0
Initial release
元数据
Slug draw
版本 2.0.1
许可证 MIT-0
累计安装 4
当前安装数 4
历史版本数 7
常见问题

Draw 是什么?

Create SVG diagrams with shapes, layers, and multi-format export. Use when generating graphics, building diagrams, arranging layouts. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 347 次。

如何安装 Draw?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install draw」即可一键安装,无需额外配置。

Draw 是免费的吗?

是的,Draw 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Draw 支持哪些平台?

Draw 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Draw?

由 bytesagain3(@bytesagain3)开发并维护,当前版本 v2.0.1。

💬 留言讨论