Skip to content

Generates illustrations for any document by having Claude analyze and summarize its content into themed images.

CCM score
53 of 100
skills.sh installs
712
GitHub stars
616
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the full workflow: Claude reads the document, asks three setup questions, proposes themed sections for confirmation, then generates images through a Python script
  • Offers 16:9 or 3:4 aspect ratios, an optional summary cover image, and three styles: gradient-glass, ticket, and vector-illustration
  • Requires google-genai, pillow, and python-dotenv, with a Gemini API key set in a .env file or the GEMINI_API_KEY variable
  • Saves output to an images/ folder beside the source document, named cover.png and illustration-NN.png

Install

$ npx -y skills add op7418/document-illustrator-skill --skill document-illustrator -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Document Illustrator Skill

基于 AI 智能分析的文档配图生成工具。无需依赖特定格式,自动理解内容并生成专业配图。

🎯 核心特点

  • ✨ AI 智能归纳:自动理解文档内容,智能提取核心主题
  • 🎨 格式无关:支持任何格式的文档(Markdown、纯文本、PDF 等)
  • 📐 灵活比例:支持 16:9(横屏)和 3:4(竖屏)
  • 🖼️ 封面图可选:可生成概括全文的封面图
  • 🎭 三种风格:渐变玻璃卡片、票据风格、矢量插画

🚀 使用方法

直接告诉 Claude

帮我为这个文档生成配图:/path/to/document.md

或者:

我想为这篇文章生成一些配图

📝 完整工作流程

第 1 步:Claude 读取和理解文档

当你请求生成配图时,Claude 会:

  1. 使用 Read 工具读取完整文档
  2. AI 分析理解文档内容和结构
  3. 识别核心主题和要点

无需担心文档格式:

  • ✅ 标准 Markdown(##、###)
  • ✅ 分隔线格式(======、------)
  • ✅ 纯文本段落
  • ✅ 任何其他格式

第 2 步:配置选项(3 个问题)

Claude 会询问你的偏好:

问题 1:图片比例
请选择图片比例:
1. 16:9 (横屏) - 适合演示文稿、幻灯片、横屏展示
2. 3:4 (竖屏) - 适合社交媒体、手机查看、海报

请选择 (1/2):
问题 2:封面图
是否生成封面图?
封面图将概括文档的所有核心信息,作为系列配图的引导。

1. 是 - 生成封面图 + 内容配图
2. 否 - 仅生成内容配图

请选择 (1/2):
问题 3:内容配图数量
期望生成多少张内容配图?
建议范围:3-10 张
根据文档内容,推荐生成 6 张

请输入数字:

第 3 步:Claude 归纳内容并展示

根据你指定的数量,Claude 会智能归纳文档,然后展示给你确认:

📋 内容归纳完成

📄 封面图内容:(如果选择生成)
"AI 编程工具概念演化:从 Rules 到 Skills"
- 核心概念:静态上下文 vs 动态上下文
- 演化路径:Rules → Commands → MCP → Modes → Skills
- 最佳实践:简化为两个核心工具

📚 内容配图(共 6 张):

1. Rules 的诞生与演化
   包含:早期模型幻觉问题、rules 文件的作用、静态上下文概念

Details

Repository
github.com/op7418/document-illustrator-skill
Categories
AI Image, Video & Voice, Office Files & Slides
First seen
May 16, 2026

Similar to Document Illustrator

More AI Image, Video & Voice