创意插画:故事类 AI 图像生成 - Openclaw Skills

作者:互联网

2026-03-23

AI教程

什么是 创意插画工厂?

创意插画技能是专为需要高质量视觉内容的开发者和创作者设计的专业资产生成引擎。通过集成 OpenAI Images API,该工具允许用户将文本描述转化为各种艺术风格,从传统的艺术水彩到现代的数字矢量艺术。它是任何构建 Openclaw Skills 存储库的人员的重要组件,因为它提供了一种标准化的方式来处理复杂的图像生成任务,如故事序列、角色概念和杂志布局。

该技能擅长在多张图像中保持主题一致性,非常适合需要统一美学风格的项目。通过利用预定义的类型、情绪和调色板,Openclaw Skills 用户可以绕过通常与提示词工程相关的尝试与错误,转而专注于为书籍、演示文稿和数字平台生产可操作的创意资产。

下载入口:https://github.com/openclaw/skills/tree/main/skills/adebayoabdushaheed-a11y/afame

安装与下载

1. ClawHub CLI

从源直接安装技能的最快方式。

npx clawhub@latest install afame

2. 手动安装

将技能文件夹复制到以下位置之一

全局模式 ~/.openclaw/skills/ 工作区 /skills/

优先级:工作区 > 本地 > 内置

3. 提示词安装

将此提示词复制到 OpenClaw 即可自动安装。

请帮我使用 Clawhub 安装 afame。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。

创意插画工厂 应用场景

  • 为自出版项目创建连贯的章节开头和角色肖像。
  • 为技术博客文章和数字营销自动生产概念矢量插图。
  • 为具有一致奇幻风格的儿童读物生成故事序列。
  • 使用 Openclaw Skills 为游戏设计和电影前期制作开发快速的环境概念图和分镜脚本。
  • 为需要特定情绪和调色板的杂志和通讯设计定制的编辑艺术。
创意插画工厂 工作原理
  1. 用户通过 CLI 定义主题并选择艺术参数,如风格、情绪和构图。
  2. 技能处理这些输入,为 OpenAI 图像模型构建优化的提示词,确保高质量且相关的输出。
  3. 系统执行生成过程,支持单张图像请求和批量故事序列。
  4. 所有生成的资产,连同元数据和基于 Web 的画廊,都将导出到 Openclaw Skills 环境中的结构化项目目录。

创意插画工厂 配置指南

要将此技能集成到您的工作流中,您必须首先使用 OpenAI API 密钥配置环境。

export OPENAI_API_KEY='your_api_key_here'

然后,您可以使用以下命令结构启动一个简单的插画项目:

python3 ~/Projects/agent-scripts/skills/creative-illustration/scripts/illustrate.py r
  --subject "a cozy cottage in an enchanted forest" r
  --style "watercolor" r
  --mood "peaceful"

创意插画工厂 数据架构与分类体系

创意插画技能将其输出组织成标准化格式,以确保与 Openclaw Skills 生态系统中的其他工具兼容:

输出资产 格式 描述
插画图像 PNG 根据指定的尺寸和质量生成的高质量图像文件。
提示词清单 JSON 包含发送给 AI 模型的准确文本字符串的 prompts.json 文件。
图像画廊 HTML 一个 index.html 文件,提供批次中所有生成图像的本地预览。
name: creative-illustration
description: Generate diverse creative illustrations via OpenAI Images API. Create book illustrations, editorial art, children's book art, concept illustrations, and artistic scenes. Use when user needs creative visual content for stories, articles, presentations, or artistic projects (e.g., "illustrate a fairy tale scene", "create editorial art about technology", "design children's book illustrations", "generate concept art for a story").

Creative Illustration Factory

Generate professional illustrations for books, editorial content, children's stories, and creative projects.

Setup

  • Needs env: OPENAI_API_KEY

Quick Start

Generate a simple illustration:

python3 ~/Projects/agent-scripts/skills/creative-illustration/scripts/illustrate.py r
  --subject "a cozy cottage in an enchanted forest"

Generate with specific style:

python3 ~/Projects/agent-scripts/skills/creative-illustration/scripts/illustrate.py r
  --subject "a robot learning to paint" r
  --style "watercolor" r
  --mood "whimsical"

Generate a story sequence:

python3 ~/Projects/agent-scripts/skills/creative-illustration/scripts/illustrate.py r
  --subject "Alice discovers a tiny door" r
  --subject "Alice shrinks down" r
  --subject "Alice enters Wonderland" r
  --style "whimsical illustration" r
  --mood "magical"

Illustration Types

Book Illustrations

  • chapter-opener - Full-page chapter opening scene
  • character-intro - Character introduction portrait
  • landscape-scene - Wide landscape establishing shot
  • action-moment - Dynamic action or pivotal moment
  • emotional-scene - Emotional or dramatic scene
  • cover-art - Book cover illustration style

Editorial / Magazine Art

  • conceptual-art - Abstract conceptual illustration
  • info-graphic - Informational illustration style
  • portrait-editorial - Editorial portrait
  • spot-illustration - Small spot illustration
  • full-page-spread - Magazine full-page spread

Children's Book Art

  • picture-book - Classic picture book illustration
  • whimsical - Playful and imaginative style
  • educational - Educational book illustration
  • bedtime-story - Soft, calming bedtime story art
  • adventure-map - Adventure map or treasure map

Concept Art

  • environment-concept - Environmental concept art
  • character-concept - Character design concept
  • prop-concept - Object or prop design
  • storyboard - Storyboard panel style
  • mood-board - Mood board aesthetic

Styles

Traditional Media

  • watercolor - Watercolor painting with soft edges
  • oil-painting - Rich oil painting texture
  • charcoal-sketch - Charcoal drawing style
  • ink-wash - Ink wash / sumi-e style
  • pastel - Soft pastel drawing
  • colored-pencil - Colored pencil illustration
  • gouache - Gouache opaque watercolor
  • acrylic - Acrylic painting style
  • lino-cut - Linocut printmaking style
  • woodcut - Woodcut print aesthetic

Digital Styles

  • digital-painting - Digital painting
  • vector-illustration - Clean vector art
  • flat-design - Flat design aesthetic
  • isometric - Isometric perspective
  • pixel-art - Retro pixel art
  • concept-art - Game/film concept art style
  • cel-shaded - Cel shaded animation style
  • low-poly - Low poly 3D aesthetic

Book & Print Styles

  • picture-book - Classic picture book
  • storybook-illustration - Vintage storybook art
  • editorial-illustration - Magazine editorial
  • newspaper-engraving - Newspaper engraving style
  • poster-art - Vintage poster design
  • woodblock-print - Japanese woodblock print
  • screen-print - Screen print aesthetic

Mood

  • whimsical - Playful and imaginative
  • magical - Magical and enchanting
  • mysterious - Mysterious and intriguing
  • peaceful - Calm and serene
  • dramatic - Dramatic and intense
  • nostalgic - Warm and nostalgic
  • gloomy - Dark and atmospheric
  • vibrant - Bright and energetic
  • romantic - Soft and romantic
  • quirky - Quirky and eccentric

Parameters

  • --subject - Illustration subject/description (repeatable for batch)
  • --type - Illustration type (default: illustration)
  • --style - Artistic style (default: watercolor)
  • --mood - Mood/atmosphere (default: peaceful)
  • --palette - Color palette suggestion
  • --composition - Composition guidance (e.g., "wide shot", "close-up")
  • --count - Number of variants per subject (default: 1)
  • --out-dir - Output directory (default: ~/Projects/tmp/creative-illustration-*)
  • --size - Image size: 1024x1024, 1792x1024, 1024x1792 (default: 1024x1024)
  • --quality - high/standard (default: high)
  • --model - OpenAI image model (default: gpt-image-1.5)
  • --api-key - OpenAI API key (or use OPENAI_API_KEY env)

Advanced Examples

Children's book page:

python3 ~/Projects/agent-scripts/skills/creative-illustration/scripts/illustrate.py r
  --subject "a curious rabbit with a pocket watch" r
  --type "picture-book" r
  --style "watercolor" r
  --mood "whimsical" r
  --palette "pastel"

Editorial concept art:

python3 ~/Projects/agent-scripts/skills/creative-illustration/scripts/illustrate.py r
  --subject "AI and humanity working together" r
  --type "conceptual-art" r
  --style "vector-illustration" r
  --mood "optimistic" r
  --composition "symbolic"

Story sequence:

python3 ~/Projects/agent-scripts/skills/creative-illustration/scripts/illustrate.py r
  --subject "Hero finds an ancient map" r
  --subject "Hero deciphers mysterious symbols" r
  --subject "Hero discovers a hidden passage" r
  --subject "Hero enters the forgotten temple" r
  --style "storybook-illustration" r
  --mood "mysterious" r
  --palette "earth tones"

Full custom prompt:

python3 ~/Projects/agent-scripts/skills/creative-illustration/scripts/illustrate.py r
  --prompt "A magical treehouse library nestled among ancient redwoods, spiral staircase winding up the trunk, lanterns hanging from branches, books floating in mid-air, warm golden light streaming through leaves, detailed watercolor illustration style, whimsical and enchanting"

Color Palettes

  • pastel - Soft pastel colors
  • earth tones - Natural browns, greens, golds
  • vibrant - Bright saturated colors
  • muted - Desaturated, subtle colors
  • monochrome - Single color variations
  • jewel tones - Rich ruby, emerald, sapphire
  • autumn - Orange, red, yellow, brown
  • winter - Blue, white, silver, purple
  • tropical - Bright greens, teals, pinks
  • vintage - Warm sepia, faded tones

Composition

  • wide shot - Wide establishing scene
  • close-up - Intimate close-up
  • panoramic - Panoramic landscape
  • rule-of-thirds - Balanced rule of thirds
  • centered - Centered subject
  • diagonal - Dynamic diagonal composition
  • triangular - Triangular composition
  • circular - Circular / spiral composition
  • symmetrical - Perfectly symmetrical
  • asymmetrical - Asymmetrical balance

Output

  • *.png - Illustration images
  • prompts.json - All prompts used
  • index.html - Illustration gallery

Project Templates

Children's Book (4-6 images)

python3 ~/Projects/agent-scripts/skills/creative-illustration/scripts/illustrate.py r
  --subject "Girl finds a magical seed" r
  --subject "Seed grows into a glowing plant" r
  --subject "Plant reveals a tiny fairy" r
  --subject "Fairy shows girl a secret garden" r
  --subject "Girl shares garden with friends" r
  --type "picture-book" r
  --style "watercolor" r
  --mood "whimsical"

Magazine Editorial (1-2 images)

python3 ~/Projects/agent-scripts/skills/creative-illustration/scripts/illustrate.py r
  --subject "The future of sustainable cities" r
  --type "conceptual-art" r
  --style "vector-illustration" r
  --mood "optimistic" r
  --count 2

Fantasy Story Chapter Opener (1 image)

python3 ~/Projects/agent-scripts/skills/creative-illustration/scripts/illustrate.py r
  --subject "The dragon's treasure hoard under ancient runes" r
  --type "chapter-opener" r
  --style "oil-painting" r
  --mood "dramatic" r
  --palette "jewel tones"