Token导航 LogoToken导航TokenDH.com
待分类需要联网github未标认证来源可访问许可证需确认审计提醒

coloring-book-generator图画书生成器

Agent Skill

coloring-book-generator 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

367

周安装

15

GitHub Stars

公开资料未说明

下载量

118
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:coloring-book-generator(图画书生成器)
来源仓库:https://github.com/dn-scribe/graphic-skills
仓库路径:skills/coloring-book-generator
安装命令:
npx skills add https://github.com/dn-scribe/graphic-skills --skill coloring-book-generator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/dn-scribe/graphic-skills --skill coloring-book-generator

简介

coloring-book-generator 生成可打印的黑白线描图画书,支持透明背景与多页排版。

  • 适用于教育、儿童娱乐或减压素材制作,输出为标准 PNG/SVG 格式。
  • 可根据主题或样例图像定制风格,记录生成提示供后续迭代参考。
  • 使用前需确认输出分辨率与版权归属,避免用于商业出版未经授权。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Coloring Book Generator

Use this skill to generate a printable coloring book with multiple pages, black and white line art with thick lines, transparent backgrounds, and a Markdown file that records the prompts and picture plan used for reproduction.

You can also provide a sample image as a style reference during generation.

When To Use It

Use this skill when the user asks for any of the following:

  • a themed coloring book
  • coloring pages with a transparent background
  • printable coloring pages
  • a specific number of pages in a coloring book
  • black and white line art suitable for coloring
  • a reproducible prompt log for image generation
  • OpenAI or Gemini / Nano Banana image generation
  • consistent style across multiple coloring pages

Workflow

  1. Collect the required inputs:

- theme: may be a short theme or a long prompt string - style: may be a short style or a long prompt string (optional, defaults to "simple line art") - pages: number of pages to generate (default to 5) - reference_image: optional reference picture for style consistency - constraints: optional hard requirements to apply across all pages; pass multiple --constraint flags

  1. If needed, install local prerequisites:
bash skills/coloring-book-generator/scripts/install.sh
  1. Run the bundled script:
python3 skills/coloring-book-generator/scripts/generate_coloring_book.py \
  --theme 'Underwater adventure with friendly sea creatures' \
  --style "simple line art, thick black outlines, minimal detail" \
  --constraint "square composition" \
  --constraint "all characters are smiling" \
  --pages 5 \
  --output-dir tmp
  1. Confirm the outputs:

- <theme-slug>-<timestamp>-page-001.jpg through <theme-slug>-<timestamp>-page-XXX.jpg - <theme-slug>-<timestamp>-plan.md

To use a local style reference image:

python3 skills/coloring-book-generator/scripts/generate_coloring_book.py \
  --theme 'Underwater adventure with friendly sea creatures' \
  --style "simple line art, thick black outlines, minimal detail" \
  --reference-image /absolute/path/to/reference.png \
  --constraint "square composition" \
  --constraint "submarine windows are round" \
  --pages 5 \
  --output-dir tmp

Example with multiple structural constraints:

python3 skills/coloring-book-generator/scripts/generate_coloring_book.py \
  --theme 'Happy Sukkot family scenes for young kids' \
  --reference-image /absolute/path/to/sukkah-reference.png \
  --constraint "square pictures" \
  --constraint "the sukkah roof is flat with a horizontal top edge" \
  --constraint "kids are smiling" \
  --pages 5 \
  --output-dir tmp

To use Gemini / Nano Banana instead of OpenAI:

python3 skills/coloring-book-generator/scripts/generate_coloring_book.py \
  --provider gemini \
  --theme 'Underwater adventure with friendly sea creatures' \
  --style "simple line art, thick black outlines, minimal detail" \
  --pages 5 \
  --output-dir tmp

Gemini also supports the same --reference-image option.

Replay From Markdown

If you want to iterate from a previous run, edit the generated Markdown file and rerun with:

python3 skills/coloring-book-generator/scripts/generate_coloring_book.py \
  --replay-from-md tmp/your-theme-20260317-120000-plan.md \
  --output-dir tmp

Editable sections that affect the rerun:

  • Theme
  • Style
  • Constraints
  • Reference image
  • Number of pages
  • Provider
  • Picture Descriptions
  • Generated Image Prompts
  • Planner model
  • Image model

If Generated Image Prompts are present, the script uses them directly. If you remove those blocks, the script rebuilds the image prompts from the edited theme, style, and picture descriptions.

Character Consistency for Storylines

Enhanced Planning: The script now specifically identifies and tracks main characters across pages:

python3 skills/coloring-book-generator/scripts/generate_coloring_book.py \
  --theme "Princess Luna (golden braided hair, blue star dress, silver crown) and Spark the dragon (small, purple, orange wings) explore a magical castle" \
  --pages 4 \
  --output-dir tmp

Character-Focused Themes: For best results, include detailed character descriptions in your theme:

  • Physical features: hair color/style, clothing, distinctive accessories
  • Character names: helps maintain identity across pages
  • Relationships: how characters interact (friends, pets, siblings)

**What The Script Does

  • Character extraction: Automatically identifies main characters from the theme and creates detailed descriptions for consistency
  • Uses a text model to turn the theme and style inputs into:

- an exact picture list for each page that advances a cohesive storyline - detailed character descriptions that get included in all image prompts - detailed image-generation prompts for each page

  • Uses the image model to generate the first picture as a style and character reference
  • Enhanced character consistency: All subsequent pages include character descriptions and use the first page as visual reference
  • Parallel generation: After the first page, generates remaining pages in parallel for faster completion
  • Pure black and white: Generates images with only pure black lines on white background, no gray colors or shading
  • Robust error handling: If a page fails to generate (e.g., content policy violation), the script:

- Skips that page and continues with remaining pages - Reports failed pages at the end with specific error messages - Documents failures in the markdown plan for future reference

  • Exports each successful page as a separate JPEG file
  • Writes a Markdown log with the user inputs, generated picture descriptions, model names, prompts used, and any failures
  • Supports --provider openai and --provider gemini
  • Defaults to OpenAI for maximum reliability

Requirements

  • For OpenAI runs: OPENAI_API_KEY or OPEN_AI_TOKEN must be set
  • For Gemini runs: GEMINI_API_KEY or GOOGLE_API_KEY must be set
  • This skill currently targets macOS because it relies on sips
  • scripts/install.sh bootstraps Homebrew and Python 3 if needed, then verifies the Apple toolchain

Notes

  • Performance: After generating the first page for reference, remaining pages are generated in parallel (up to 3 concurrent requests) for faster completion
  • Pure black and white: All images use only pure black lines on white background with absolutely no gray colors, shading, or gradients
  • Complete framing: All coloring pages ensure that characters, objects, and scene elements are fully contained within page boundaries with no cropped or cut-off elements
  • The first generated image is used as a style reference for all subsequent pages to maintain consistency
  • Error resilience: The script gracefully handles content policy violations and API errors by skipping problematic pages while continuing to generate the rest
  • Failed pages are clearly reported at the end with specific error messages and documented in the plan file
  • Default: The script uses OpenAI for both planning and image generation by default (most reliable)
  • Gemini option: Use --provider gemini to use Gemini for both planning and image generation
  • If the user wants revisions, rerun the script with adjusted theme, style, or pages
  • Each page is saved as a separate file to allow for individual printing or use

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.42%
按下载量换算43

Claude

30.82%
按下载量换算36

Cursor

19.65%
按下载量换算23

Gemini CLI

10.06%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills