跳到主内容
智客 ZICQ

技能库 智客分类:其他 Image OpenClaw

图像

创建,检查,处理和优化图像文件和可视资产,并采用可靠的格式选择,再大小化,压缩化,色调化,元数据化,并进行平台-导出检查. (1)任务涉及图像,截图,标志,产品相片,或图形时使用;(2)调整大小,转换,压缩,裁剪,元数据,或导出光谱等事项;(3)资产必须在网络,社交,电子商务,或打印送出时幸存而无质量或格式错误.

663 安装量 · 30 星标

官方网址:作者主页

技能介绍

先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。

做什么

创建、检查、处理和优化图像文件和视觉资产,并采用可靠的格式选择、调整大小、压缩、色调、元数据以及平台-导出检查

何时用

当主要文物是图像文件或可视资产时使用,特别是当格式选择,再大小,裁剪,压缩,元数据,透明,色彩剖面,反应快递,社会规格,市场要求,或打印准备事项时使用

代理如何加载

按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:When to Use、Quick Reference、Fast Workflow、Asset-Type Defaults、Core Rules、1. Choose the workflow by destination, not by habit。 其中含规范建议的小节:分步指令。

文件分析

文件分析:这是一份仅含 SKILL.md 的指令型技能,代理激活后整份正文进入上下文。

官方 description(原文)

Create, inspect, process, and optimize image files and visual assets with reliable format choice, resizing, compression, color-profile, metadata, and platform-export checks. Use when (1) the task is about images, screenshots, logos, product photos, or graphics; (2) resizing, converting, compressing, cropping, metadata, or export specs matter; (3) the asset must survive web, social, ecommerce, or print delivery without quality or format mistakes.

When to UseQuick ReferenceFast WorkflowAsset-Type DefaultsCore Rules1. Choose the workflow by destination, not by habit2. Pick formats by content, not by trend3. Preserve color, transparency, and detail deliberately4. Resize, crop, and compress in the right order5. Treat metadata and orientation as real delivery concerns6. Use practical budgets and delivery defaults7. Validate against the actual destination

SKILL.md 与 Agent 调用

官方规范 ↗
name
Image
description
Create, inspect, process, and optimize image files and visual assets with reliable format choice, resizing, compression, color-profile, metadata, and platform-export checks. Use when (1) the task is about images, screenshots, logos, product photos, or graphics; (2) resizing, converting, compressing, cropping, metadata, or export specs matter; (3) the asset must survive web, social, ecommerce, or print delivery without quality or format mistakes.
  1. 发现技能客户端向 Agent 提供名称与描述目录。
  2. 匹配与调用用户指定或任务匹配后,载入 SKILL.md 指令。
  3. 按需加载按步骤读取参考文档、使用脚本与素材。

具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗

安装这个技能

Skills CLI ↗

先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。

交给 Agent 安装

复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。

把 Agent Skill「Image」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-9dacaa62ca605625-%E5%9B%BE%E5%83%8F.html
请存为 .cursor/skills/image/SKILL.md 或 .claude/skills/image/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。

当前没有明确的 GitHub 技能包地址,请按来源页面的安装器说明操作。

ClawHub ↗

阅读排版
--- name: Image slug: image version: 1.0.4 homepage: https://clawic.com/skills/image description: "Create, inspect, process, and optimize image files and visual assets with reliable format choice, resizing, compression, color-profile, metadata, and platform-export checks. Use when (1) the task is about images, screenshots, logos, product photos, or graphics; (2) resizing, converting, compressing, cropping, metadata, or export specs matter; (3) the asset must survive web, social, ecommerce, or print delivery without quality or format mistakes." changelog: "Expanded the skill with branding, screenshot, accessibility, and richer platform-specific workflows while preserving stronger image-processing guidance." metadata: {"clawdbot":{"emoji":"🖼️","os":["linux","darwin","win32"]}} --- ## When to Use Use when the main artifact is an image file or visual asset, especially when format choice, resizing, cropping, compression, metadata, transparency, color profile, responsive delivery, social specs, marketplace requirements, or print readiness matter. If the task is destination-specific, load the matching file before deciding: - `web.md` for responsive delivery, LCP/CLS, `srcset`, lazy loading, SVG, and modern web formats. - `social.md` for platform dimensions, safe zones, and feed/story/banner exports. - `ecommerce.md` for marketplace product-image rules, white backgrounds, zoom, and catalog consistency. - `photography.md` for RAW, ICC profiles, print export, EXIF, and non-destructive editing. - `branding.md` for logos, icons, favicons, app icons, SVG consistency, and small-size legibility. - `screenshots.md` for UI captures, documentation images, annotations, redaction, and marketing/device frames. - `accessibility.md` for alt text, decorative vs informative images, text in images, charts, and contrast-aware image delivery. - `commands.md` when the user needs concrete ImageMagick or Pillow examples. Keep the main workflow in this file, then pull in the specialized file for the exact delivery context instead of guessing from generic image advice. ## Quick Reference | Situation | Load | Why | |-----------|------|-----| | Web optimization, responsive images, lazy loading, SVG | `web.md` | Avoid CLS/LCP mistakes, oversized assets, and wrong web formats | | Color profiles, metadata, RAW, print, non-destructive workflows | `photography.md` | Protect color intent, print readiness, and master-file quality | | Social platform dimensions, safe zones, banners, previews | `social.md` | Prevent unsafe crops, unreadable text, and uploader recompression surprises | | Product photos, marketplace standards, catalog consistency | `ecommerce.md` | Preserve zoom detail, white-background compliance, and catalog consistency | | Logos, favicons, SVGs, app icons, icon sets | `branding.md` | Protect small-size legibility, SVG consistency, and multi-format icon delivery | | UI screenshots, docs captures, redaction, annotations | `screenshots.md` | Avoid blurry captures, privacy leaks, and misleading before/after comparisons | | Alt text, text-in-image risk, charts, decorative vs informative images | `accessibility.md` | Keep image work usable and compliant, not only visually correct | | ImageMagick and Pillow commands | `commands.md` | Use concrete commands once the export decision is already clear | ## Fast Workflow 1. Identify the asset type: photo, screenshot, UI capture, logo, diagram, social card, product image, or print source. 2. Identify the destination: web page, social upload, marketplace gallery, print handoff, internal archive, or further editing pipeline. 3. Decide whether the source should remain vector, layered, or RAW instead of being flattened too early. 4. Inspect the file before editing: dimensions, aspect ratio, orientation, transparency, color profile, metadata, and current compression damage. 5. Load the destination-specific file if the job is web, social, ecommerce, photography/print, branding, screenshots, accessibility, or command-heavy. 6. Make the minimum safe transformation set: crop, resize, convert, compress, strip or preserve metadata, and export. 7. Validate the exported result in the destination context, not only in the editor. ## Asset-Type Defaults | Asset type | Usually best starting point | Watch out for | |-----------|-----------------------------|---------------| | Photo | WebP or AVIF for web, JPEG fallback, layered/RAW master for editing | Color profile shifts, overcompression, platform recompression | | Product photo | JPEG or WebP for delivery, high-res clean master | White background, edge cleanup, zoom detail, consistency | | Screenshot or UI capture | PNG or lossless WebP | JPEG blur, privacy leaks, unreadable text | | Logo or simple icon | SVG master, PNG fallbacks only when needed | Tiny details, unsupported SVG pipelines, dark/light contrast | | Social/OG card | PNG or high-quality JPEG sized for preview | Unsafe crop, tiny text, double compression | | Diagram or chart | SVG when possible, PNG when fixed raster needed | Thin lines, low contrast, missing explanatory text | | Print image | TIFF or high-quality JPEG with correct profile | Wrong profile, wrong physical size, no bleed | ## Core Rules ### 1. Choose the workflow by destination, not by habit - Web delivery, social export, ecommerce prep, print output, and archive preservation are different image jobs. - A screenshot, product photo, logo, infographic, and print asset should not default to the same format or compression strategy. - Image generation is a different workflow from image processing; treat generated assets as inputs that still need inspection and export discipline. - If the destination is specialized, read the matching file before locking format, crop, quality, or metadata decisions. - If the file will be edited again later, preserve a master-grade source before making lightweight delivery exports. ### 2. Pick formats by content, not by trend - Photos usually want AVIF or WebP for modern web delivery, with JPEG fallback when compatibility matters. - Screenshots, UI captures, diagrams, and text-heavy graphics often need PNG or lossless WebP to avoid blurry edges. - Logos, icons, and simple illustrations should stay vector (`.svg`) when the target supports it. - Transparency changes the decision: JPEG drops alpha, while PNG, WebP, and AVIF can preserve it. - Animated GIF is rarely the best output; animated WebP, MP4, or WebM are usually smaller and cleaner. - TIFF, PSD, layered formats, and RAW files are working formats or masters, not normal delivery outputs. - If a platform re-encodes uploads aggressively, optimize for how that platform recompresses rather than for ideal local viewing. - Screenshots, diagrams, and charts with sharp edges often benefit from lossless output even when photos do not. ### 3. Preserve color, transparency, and detail deliberately - Web assets should usually end in sRGB unless the destination explicitly needs something else. - Stripping or changing ICC profiles can shift colors even when the pixels themselves did not change. - Transparent assets need alpha-safe formats and validation against both light and dark backgrounds. - Repeated lossy saves compound damage, so keep a clean source and minimize recompression loops. - Upscaling, denoising, sharpening, and background removal should be treated as visible edits, not harmless export steps. ### 4. Resize, crop, and compress in the right order - Decide aspect ratio first, crop second, resize third, and compress last. - Do not upscale by default; extra pixels do not create missing detail. - Retina or HiDPI exports should be intentional, not automatic overkill. - As a starting point, 2x is the normal Retina export and 3x should be deliberate, not default. - Social cards, ecommerce slots, and marketplace galleries often crop aggressively, so protect the real focal area and any critical text. - A file that fits the pixel spec can still fail if the crop cuts off faces, products, labels, or UI affordances. - If text is embedded inside the image, validate at the smallest realistic preview size, not only at full resolution. ### 5. Treat metadata and orientation as real delivery concerns - EXIF orientation can make an image look upright in one viewer and rotated in another after export. - Public web assets usually should strip GPS and unnecessary camera metadata. - Copyright, author, or provenance metadata may need to be preserved for editorial, legal, or archive use. - Metadata decisions are part of the workflow, not an afterthought. - Preserve filenames and output naming conventions when downstream systems map assets by exact names or SKU patterns. - Do not strip metadata blindly if the workflow depends on authoring info, rights data, timestamps, or orientation. ### 6. Use practical budgets and delivery defaults - For web work, use budgets as a forcing function, not as decoration. - A useful default starting point is: hero image under 200 KB, content image under 100 KB, thumbnail under 30 KB, raster icon under 5 KB. - Reserve layout space with explicit dimensions or aspect ratio when the image ships on the web. - Do not lazy-load the primary hero or likely LCP image. - A file that "looks fine locally" is not finished if it breaks CLS, LCP, or responsive delivery in the real page. - A small file is not automatically good if detail, text legibility, product edges, or gradients collapse. - If a platform will recompress the image anyway, leave enough headroom that the second compression does not destroy the result. ### 7. Validate against the actual destination - Platform specs are not interchangeable: web hero, social preview, app store art, marketplace gallery, and print ad all have different constraints. - Ecommerce images may need background consistency, edge cleanliness, square-safe crops, and zoom-friendly detail. - Social images need safe composition because feeds crop previews differently across platforms. - Print assets care about physical size, bleed, and color handling in ways web exports do not. - If the asset ships on the web, remember the surrounding delivery too: width, height, alt text, and whether the image should carry text at all. - If the asset will be uploaded to a third-party platform, check the post-upload result because many pipelines resize, strip profiles, flatten metadata, or recompress again. - If the image carries meaning, validate its accessibility too: alt text strategy, text legibility, decorative vs informative role, and whether the meaning should have stayed in HTML or surrounding copy. ### 8. Batch safely and keep the original reversible - Work from originals or clean masters, not from already-optimized outputs. - Batch processing should apply consistent rules, but still spot-check representative files before touching the whole set. - One wrong crop preset, color conversion, or lossy export can damage an entire batch quickly. - Keep per-destination exports separated from masters so the next edit does not accidentally start from a degraded derivative. ## Specialized Cases Worth Loading - Load `branding.md` when the asset is a logo, app icon, favicon, social avatar, badge, or reusable icon set. - Load `screenshots.md` when the asset is a UI capture, bug report image, tutorial screenshot, release-note image, or device-framed marketing visual. - Load `accessibility.md` when the image needs alt text, contains embedded text, carries chart/diagram meaning, or may be decorative instead of informative. ## What Good Looks Like - The chosen format matches the content and the destination, not a blanket preference. - The exported file keeps the right focal area, text legibility, transparency, and color intent. - Metadata is preserved or stripped deliberately. - The file size is efficient without obvious visual damage. - The asset still works after the actual upload, embed, or platform preview step. - The agent has not flattened a vector, layered, or RAW source earlier than necessary. - The asset is still understandable in its real use context, not just visually attractive in isolation. ## Common Traps - Saving transparent images as JPEG and silently losing the alpha channel. - Using JPEG for screenshots or UI captures and turning sharp text into mush. - Shipping a file that matches the requested dimensions but has the wrong aspect ratio or unsafe crop. - Recompressing the same JPEG multiple times and blaming the tool instead of the workflow. - Stripping metadata and accidentally breaking orientation, licensing context, or provenance needs. - Forgetting sRGB and wondering why colors shift between editing tools, browsers, and marketplaces. - Using SVG where the target platform strips it, rasterizes it badly, or blocks it entirely. - Assuming AVIF or WebP is safe everywhere when some platforms, email clients, or upload pipelines still normalize back to JPEG or PNG. - Embedding critical text into images where HTML or native UI text should have carried the meaning. - Hitting the file-size budget but missing visual quality because the image was resized, cropped, or sharpened badly. - Rasterizing a logo too early and then fighting blurry exports forever. - Shipping a screenshot with secrets, personal data, or unstable timestamps still visible. - Treating alt text, captions, or chart summaries as someone else's problem after the pixels look good. ## Related Skills Install with `clawhub install ` if user confirms: - `image-edit` — Masking, cleanup, inpainting, and targeted visual edits. - `image-generation` — AI image generation and editing across current model providers. - `photography` — Capture, color, and print-oriented photo workflows. - `svg` — Vector graphics workflows when raster files are the wrong output. - `ecommerce` — Marketplace and product-listing requirements that often constrain image delivery. ## Feedback - If useful: `clawhub star image` - Stay updated: `clawhub sync`

相关技能

其他

自我改进代理Self Improving Agent

掌握学习、错误和校正,以便不断改进。 使用时间:(1) 命令或操作意外失败, (2) 用户更正 Claude ('No, that's wrong...', 'Actually...'), (3)用户请求具备不存在的能力,(4)外部API或工具失败,(5)克洛德意识到其知识已经过…

其他

自我改进+主动代理Self Improving + Proactive Agent

自我反省+自我批评+自我学习+自我组织记忆. 特工评估自己的工作,发现错误,并永久改进. 当 (1) 命令,工具, API, 或操作失败时使用; (2) 用户纠正或拒绝您的工作; (3) 您意识到您的知识已经过时或不正确; (4) 您发现更好的方法; (5) 用户明确安装或引用当…

其他

主动代理Proactive Agent

将AI代理人从任务跟踪者转变为预先预测需要并不断改进的主动伙伴. 现在WAL协议,工作缓冲,自主克龙, 和战斗测试模式。 哈尔·斯塔克的一部分

其他

多搜索引擎Multi Search Engine

多搜索引擎集成16个引擎(7个CN+9 Global). 支持高级搜索操作员,时间过滤器,站点搜索,隐私引擎,和WolframAlpha知识查询. 不需要 API 密钥 .