← Back to Skills Marketplace
cmanfre7

Design Assets

by cmanfre7 · GitHub ↗ · v1.0.0
cross-platform ✓ Security Clean
3032
Downloads
2
Stars
16
Active Installs
1
Versions
Install in OpenClaw
/install design-assets
Description
Create and edit icons, favicons, images, and color palettes using macOS tools, ImageMagick, SVG, and AI image generation.
README (SKILL.md)

design-assets

Create and edit graphic design assets: icons, favicons, images, and color systems.

Tool Selection

Task Tool Why
AI image generation nano-banana-pro Generate images from text prompts
Image resize/convert sips macOS native, fast, no deps
Advanced manipulation ImageMagick Compositing, effects, batch processing
Icons & logos SVG Scalable, small file size, editable
Screenshots screencapture macOS native

App Icon Generation

Generate all required sizes from a single 1024x1024 source icon.

iOS / macOS Icon Sizes

#!/bin/bash
# generate-app-icons.sh \x3Csource-1024.png> \x3Coutput-dir>
SOURCE="$1"
OUTDIR="${2:-.}"
mkdir -p "$OUTDIR"

SIZES=(16 20 29 32 40 48 58 60 64 76 80 87 120 128 152 167 180 256 512 1024)
for SIZE in "${SIZES[@]}"; do
  sips -z $SIZE $SIZE "$SOURCE" --out "$OUTDIR/icon-${SIZE}x${SIZE}.png" 2>/dev/null
done
echo "Generated ${#SIZES[@]} icon sizes in $OUTDIR"

Android Icon Sizes

# Android adaptive icon sizes
declare -A ANDROID_SIZES=(
  ["mdpi"]=48 ["hdpi"]=72 ["xhdpi"]=96
  ["xxhdpi"]=144 ["xxxhdpi"]=192
)
for DENSITY in "${!ANDROID_SIZES[@]}"; do
  SIZE=${ANDROID_SIZES[$DENSITY]}
  mkdir -p "res/mipmap-$DENSITY"
  sips -z $SIZE $SIZE "$SOURCE" --out "res/mipmap-$DENSITY/ic_launcher.png"
done

Favicon Generation

#!/bin/bash
# generate-favicons.sh \x3Csource.png> \x3Coutput-dir>
SOURCE="$1"
OUTDIR="${2:-.}"
mkdir -p "$OUTDIR"

# Standard web favicons
sips -z 16 16 "$SOURCE" --out "$OUTDIR/favicon-16x16.png"
sips -z 32 32 "$SOURCE" --out "$OUTDIR/favicon-32x32.png"
sips -z 180 180 "$SOURCE" --out "$OUTDIR/apple-touch-icon.png"
sips -z 192 192 "$SOURCE" --out "$OUTDIR/android-chrome-192x192.png"
sips -z 512 512 "$SOURCE" --out "$OUTDIR/android-chrome-512x512.png"

# ICO file (requires ImageMagick)
magick "$OUTDIR/favicon-16x16.png" "$OUTDIR/favicon-32x32.png" "$OUTDIR/favicon.ico"

echo "Favicons generated in $OUTDIR"

HTML Meta Tags

\x3Clink rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
\x3Clink rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
\x3Clink rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
\x3Clink rel="manifest" href="/site.webmanifest">

site.webmanifest

{
  "name": "My App",
  "short_name": "App",
  "icons": [
    { "src": "/android-chrome-192x192.png", "sizes": "192x192", "type": "image/png" },
    { "src": "/android-chrome-512x512.png", "sizes": "512x512", "type": "image/png" }
  ],
  "theme_color": "#ffffff",
  "background_color": "#ffffff",
  "display": "standalone"
}

Color Palette Generator

Given a primary color, generate a full palette:

// HSL-based palette generation
function generatePalette(hue, saturation = 70) {
  return {
    50:  `hsl(${hue}, ${saturation}%, 97%)`,
    100: `hsl(${hue}, ${saturation}%, 94%)`,
    200: `hsl(${hue}, ${saturation}%, 86%)`,
    300: `hsl(${hue}, ${saturation}%, 74%)`,
    400: `hsl(${hue}, ${saturation}%, 62%)`,
    500: `hsl(${hue}, ${saturation}%, 50%)`,  // Primary
    600: `hsl(${hue}, ${saturation}%, 42%)`,
    700: `hsl(${hue}, ${saturation}%, 34%)`,
    800: `hsl(${hue}, ${saturation}%, 26%)`,
    900: `hsl(${hue}, ${saturation}%, 18%)`,
    950: `hsl(${hue}, ${saturation}%, 10%)`,
  };
}

ImageMagick Quick Reference

# Resize
magick input.png -resize 800x600 output.png

# Convert format
magick input.png output.webp

# Add border
magick input.png -border 10 -bordercolor "#333" output.png

# Round corners (with transparency)
magick input.png \( +clone -alpha extract -draw "roundrectangle 0,0,%[w],%[h],20,20" \) -alpha off -compose CopyOpacity -composite output.png

# Composite / overlay
magick base.png overlay.png -gravity center -composite output.png

# Batch resize all PNGs
magick mogrify -resize 50% *.png

# Create solid color image
magick -size 1200x630 xc:"#1a1a2e" output.png

# Add text to image
magick input.png -gravity south -pointsize 24 -fill white -annotate +0+20 "Caption" output.png

sips Quick Reference (macOS)

# Resize (maintain aspect ratio)
sips --resampleWidth 800 input.png --out output.png

# Exact resize
sips -z 600 800 input.png --out output.png

# Convert format
sips -s format jpeg input.png --out output.jpg

# Get image info
sips -g all input.png

# Rotate
sips --rotate 90 input.png --out output.png
Usage Guidance
This skill is a collection of ready-to-run snippets for producing icons, favicons, color palettes, and basic image edits. Before using it: (1) review the shell scripts and only run them on files you trust — they will write output files and create directories where you run them; (2) ensure required tools (ImageMagick 'magick', macOS 'sips'/'screencapture') are installed and on PATH; (3) the SKILL.md mentions an AI image tool 'nano-banana-pro' — if you choose to use a cloud/image-generation service, you may need to provide API keys externally (the skill does not request them); (4) because this is instruction-only, there is no hidden install step, but always inspect and test scripts in a safe directory before using them on important data.
Capability Analysis
Type: OpenClaw Skill Name: design-assets Version: 1.0.0 The skill bundle is benign. All code snippets and instructions in SKILL.md, including bash scripts utilizing `sips` and `magick` for image manipulation and a JavaScript function for color palette generation, are directly aligned with the stated purpose of creating and editing graphic design assets. There is no evidence of data exfiltration, malicious execution, persistence mechanisms, obfuscation, or prompt injection attempts to subvert the agent's intended behavior. File operations are limited to creating directories and image files as part of the asset generation process.
Capability Assessment
Purpose & Capability
Name and content match: the SKILL.md describes generating icons, favicons, palettes, and image manipulation using sips, ImageMagick, and similar tools. The listed tools are appropriate for graphic asset tasks (sips and screencapture are macOS-native; ImageMagick for advanced ops).
Instruction Scope
Instructions are narrowly scoped to image generation and manipulation. All commands operate on user-supplied files and write output to specified directories. The SKILL.md does not instruct the agent to read unrelated system files, environment variables, or transmit data to unexpected endpoints.
Install Mechanism
There is no install spec (instruction-only), so nothing is downloaded or written to disk by the skill itself. It expects existing command-line tools to be present on PATH (ImageMagick/sips), which is consistent with the documented commands.
Credentials
The skill declares no environment variables, credentials, or config paths. The SKILL.md also does not reference secrets or require access to unrelated services. (Note: the suggested AI generator 'nano-banana-pro' may be a third-party service; using it would likely require credentials, but the skill does not request them.)
Persistence & Privilege
The skill does not request persistent or elevated privileges. Flags are default (always: false, model invocation allowed). It does not modify other skills or system-wide configuration.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install design-assets
  3. After installation, invoke the skill by name or use /design-assets
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of design-assets skill. - Provides scripts and guidelines for creating and editing app icons, favicons, and color palettes. - Documents use of nano-banana-pro, sips, ImageMagick, SVG, and screencapture for various design tasks. - Includes ready-to-use Bash scripts for icon and favicon generation for iOS, Android, and web. - Offers quick reference for common ImageMagick and sips commands. - Supplies a JavaScript function for HSL-based color palette generation.
Metadata
Slug design-assets
Version 1.0.0
License
All-time Installs 16
Active Installs 16
Total Versions 1
Frequently Asked Questions

What is Design Assets?

Create and edit icons, favicons, images, and color palettes using macOS tools, ImageMagick, SVG, and AI image generation. It is an AI Agent Skill for Claude Code / OpenClaw, with 3032 downloads so far.

How do I install Design Assets?

Run "/install design-assets" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Design Assets free?

Yes, Design Assets is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Design Assets support?

Design Assets is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Design Assets?

It is built and maintained by cmanfre7 (@cmanfre7); the current version is v1.0.0.

💬 Comments