← 返回 Skills 市场
Image Generation
作者
Bovin Phang
· GitHub ↗
· v2.7.0
· MIT-0
38
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install fec-image-generation
功能描述
Use when generating or editing diagrams, charts, visual assets, posters, UI mockups, product images, infographics, academic figures, comics, avatars, storybo...
使用说明 (SKILL.md)
图片生成与图表工作流
Purpose
生成或编辑图表、视觉资产和图片工作流,并对导出的 PNG 做可复查的自检与修复迭代。
Procedure
-
判断产物类型
- 文本、结构和连线准确性优先时,用 Mermaid、SVG、HTML/CSS、canvas 或图表库生成可编辑源,再导出 PNG。
- 审美、质感、照片、插画、漫画、产品图或品牌氛围优先时,用图片生成或编辑工具,再把最终资产保存到项目或报告目录。
-
明确输入与约束
- 收集受众、用途、尺寸、语言、必须出现的文本、品牌限制、可编辑源格式、导出格式和禁用元素。
- 对海报、UI 样机、品牌板和产品图,先写出一行视觉读取:目标用户、场景、可信感来源、主视觉锚点。
-
选择生成路线
- ER 图、UML 类图、序列图、技术架构图、ML/深度学习、流程图等,优先按 diagram-workflows.md 建立结构化源。
- 海报、UI 样机、产品图、信息图、学术图、漫画、头像、分镜、品牌板和图像编辑,按 artifact-routing.md 选择生成、编辑或混合路线。
-
导出并自检 PNG
- 每次交付前都读取导出的 PNG,检查主体是否真实渲染、文字是否截断、连线是否堆叠、节点是否重叠。
- 有布局 manifest 时运行:
node skills/fec-image-generation/scripts/png-qa.mjs --png output.png --manifest layout.json --format markdown - 没有 manifest 时仍运行 PNG 基础检查:
node skills/fec-image-generation/scripts/png-qa.mjs --png output.png --format json
-
自动修复循环
- 默认最多 2 轮;用户明确要求时可提高到 5 轮软上限。
- 修复对象是源文件、prompt、布局参数或导出尺寸,不直接破坏性修改 PNG 像素。
- 按 png-qa-autofix.md 把问题转成具体修复:增大画布、换行、移动节点、分层连线、调整 padding 或重导出。
-
交付记录
- 说明最终源文件、PNG 路径、生成路线、QA 轮次、发现并修复的问题、仍需人工确认的文字或品牌风险。
Constraints
- 文本密集图不要只靠位图模型生成;必须保留可编辑结构化源。
- 不把截图、假数据或占位图当成最终产品图,除非用户明确要求概念稿。
- 不直接覆盖原图;编辑工作流默认输出新文件。
- 不为追求美观牺牲可读标签、连线归属、图例、坐标轴和可访问替代说明。
- PNG helper 只做检测和建议;修复必须回到源、prompt 或布局参数。
- 自检结果不能替代人工确认专有名词、公式、论文图注、品牌规范和合规信息。
Expected Output
产出可编辑源、最终 PNG 或编辑后图片,并附带生成路线与 QA 结果。图表应结构清晰、标签不截断、连线不混乱;视觉资产应匹配用途、尺寸、品牌语气和交付路径。
安全使用建议
Before installing, consider whether your image prompts, reference images, brand assets, or diagrams are suitable for whatever host image tool you use. Review generated text, brand marks, citations, and diagrams manually before publishing.
能力评估
Purpose & Capability
The stated purpose is generating or editing diagrams, visual assets, and PNG outputs; the instructions align with that purpose through deterministic diagram sources, host image tools, and PNG review loops.
Instruction Scope
Runtime behavior is user-directed and bounded, including a default two-round repair loop, a user-requested five-round soft limit, and explicit guidance not to overwrite originals or treat screenshots/placeholders as final assets.
Install Mechanism
The artifact contains markdown and JSON files only, with no executable files, lifecycle scripts, dependencies, install hooks, or hidden setup behavior observed.
Credentials
The skill may use host-provided image tools and write generated sources, prompts, manifests, and PNGs into the workspace, which is proportionate for image generation but means sensitive images or prompts could be handled by the user's chosen provider.
Persistence & Privilege
Persistence is limited to expected project artifacts such as sources, prompts, manifests, and generated images; there is no background service, privilege escalation, credential access, broad indexing, or automatic deletion.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install fec-image-generation - 安装完成后,直接呼叫该 Skill 的名称或使用
/fec-image-generation触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.7.0
- Added expanded documentation detailing workflows for generating and editing diagrams, images, and visual assets, including PNG export, automated QA, and iterative self-repair.
- Clarified input requirements, recommended source formats, and output expectations for different artifact and asset types.
- Introduced automated PNG QA and repair loop process, with command line usage examples and step-wise procedures.
- Specified new constraints for source editability, proper labeling, visual clarity, and compliance with brand and regulatory needs.
- Outlined delivery requirements: include source, export path, QA rounds, and unresolved risks.
元数据
常见问题
Image Generation 是什么?
Use when generating or editing diagrams, charts, visual assets, posters, UI mockups, product images, infographics, academic figures, comics, avatars, storybo... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 38 次。
如何安装 Image Generation?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install fec-image-generation」即可一键安装,无需额外配置。
Image Generation 是免费的吗?
是的,Image Generation 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Image Generation 支持哪些平台?
Image Generation 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Image Generation?
由 Bovin Phang(@bovinphang)开发并维护,当前版本 v2.7.0。
推荐 Skills