← 返回 Skills 市场
design-assets
作者
QuincyGunter
· GitHub ↗
· v1.0.0
· MIT-0
78
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install abe-design-assets
功能描述
Create and edit icons, favicons, images, and color palettes using AI generation, macOS tools, ImageMagick, and SVG for scalable graphics.
使用说明 (SKILL.md)
design-assets
Create and edit graphic design assets: icons, favicons, images, and color systems.
Tool Selection
| Task | Tool | Why |
|---|---|---|
| AI image generation | SkillBoss API Hub | Generate images from text prompts via /v1/pilot |
| 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 |
AI Image Generation
Use SkillBoss API Hub to generate images from text prompts:
import requests, os
SKILLBOSS_API_KEY = os.environ["SKILLBOSS_API_KEY"]
API_BASE = "https://api.heybossai.com/v1"
def pilot(body: dict) -> dict:
r = requests.post(
f"{API_BASE}/pilot",
headers={"Authorization": f"Bearer {SKILLBOSS_API_KEY}", "Content-Type": "application/json"},
json=body,
timeout=60,
)
return r.json()
# Generate an image from a text prompt
result = pilot({"type": "image", "inputs": {"prompt": "A modern app icon with gradient background"}, "prefer": "quality"})
image_url = result["result"]["image_url"]
print(f"Generated image: {image_url}")
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
安全使用建议
Before installing, check these points:
- The skill's SKILL.md expects an environment variable SKILLBOSS_API_KEY but the registry metadata does not declare it — the skill will ask for (and use) a Bearer API key to send prompts/images to https://api.heybossai.com. Only provide a key you trust and that has minimal privileges; prefer a dedicated key you can revoke.
- The instructions assume macOS tools (sips, screencapture) and ImageMagick (magick) but the skill does not declare OS requirements or binaries. If you're not on macOS or don't have ImageMagick installed, the scripts will fail.
- The SKILL.md includes screencapture usage. That can capture sensitive on-screen information which the skill could upload to the external API. If you are uncomfortable with that risk, do not install, or disable autonomous invocation and remove/deny screenshot commands.
- Because there is no install spec, the skill will not put code on disk during install, but at runtime it will execute local commands and network calls per the instructions. Review the sample code and scripts to ensure they only act on files you expect.
Recommended actions: require the skill owner to update metadata to declare SKILLBOSS_API_KEY and macOS/ImageMagick requirements, verify the external API provider/privacy policy, test in a restricted environment first (no sensitive data on screen), and consider disabling autonomous invocation or limiting the agent's network access until you trust the integration.
功能分析
Type: OpenClaw Skill
Name: abe-design-assets
Version: 1.0.0
The skill bundle provides legitimate utility scripts and instructions for graphic design tasks, such as generating app icons, favicons, and color palettes using standard tools like sips and ImageMagick. The AI image generation feature uses a documented external API (api.heybossai.com) and requires an environment variable for authentication, which is consistent with its stated purpose in SKILL.md.
能力标签
能力评估
Purpose & Capability
The SKILL.md describes image generation (SkillBoss API), macOS-native tools (sips, screencapture) and ImageMagick. The registry metadata declares no required environment variables, no required binaries, and no OS restriction — but the instructions clearly require SKILLBOSS_API_KEY, macOS utilities, and magick. Those omissions are inconsistent with the stated purpose and deployment assumptions.
Instruction Scope
Runtime instructions include code that reads an environment variable SKILLBOSS_API_KEY and posts prompts/images to https://api.heybossai.com; they call screencapture (can record the user's screen) and run ImageMagick commands that will read and write files. The skill does not restrict what to capture or send, so it could transmit sensitive on-screen content to the external API. The instructions do not limit or justify access to system screenshots or other local data beyond normal design inputs.
Install Mechanism
This is instruction-only (no install spec), so nothing is written during install. However, the runtime requires external tools (ImageMagick's magick, macOS sips and screencapture). Those binaries are not declared in metadata and may not be present on non-macOS systems; absence will cause failures or ambiguous behavior.
Credentials
The SKILL.md uses a sensitive environment variable SKILLBOSS_API_KEY (Bearer token) but the skill metadata lists no required env vars or primary credential. Requesting an API key is proportionate to using an external AI image service, but the omission in metadata is a transparency problem. Because the code will send image data and potentially screenshots to an external endpoint, providing that API key could expose local content to an external service.
Persistence & Privilege
always is false (good) and autonomous invocation is allowed by default. Combined with the undeclared API key usage and the screencapture capability, autonomous runs could capture and transmit screen content without clear constraints. Consider this a higher-risk combination unless the user restricts invocation or reviews data flows.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install abe-design-assets - 安装完成后,直接呼叫该 Skill 的名称或使用
/abe-design-assets触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of abe-design-assets.
- Provides guides and scripts for creating and editing graphic design assets: icons, favicons, images, and color palettes.
- Includes tool selection table for common asset tasks.
- Features code samples for AI image generation via SkillBoss API Hub.
- Supplies bash scripts for generating app icons and favicons for multiple platforms.
- Offers palette generator function and quick references for ImageMagick and sips usage.
元数据
常见问题
design-assets 是什么?
Create and edit icons, favicons, images, and color palettes using AI generation, macOS tools, ImageMagick, and SVG for scalable graphics. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 78 次。
如何安装 design-assets?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install abe-design-assets」即可一键安装,无需额外配置。
design-assets 是免费的吗?
是的,design-assets 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
design-assets 支持哪些平台?
design-assets 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 design-assets?
由 QuincyGunter(@quincygunter)开发并维护,当前版本 v1.0.0。
推荐 Skills