doc-illustration-by-gpt-image-2
简介
doc-illustration-by-gpt-image-2
原始描述
Generate technical-document illustrations, design-note infographics, and repo architecture visuals using OpenAI GPT Image 2. Use when agent needs to turn AI...
通过你的 Agent 添加
安装目录:doc-illustration-by-gpt-image-2/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: doc-illustration-by-gpt-image-2
description: Generate technical-document illustrations, design-note infographics, and repo architecture visuals using OpenAI GPT Image 2. Use when agent needs to turn AI notes, engineering docs, Markdown design specs, or codebase explanations into polished insertable images. Supports text-only generation, reference-image-plus-text style-guided generation, and prompt-only dry-run review.
Doc Illustration
Use this skill to create polished illustrations for technical writing.
Quick workflow
- Identify the illustration type:
- architecture diagram
- process diagram
- knowledge card
- repo or module relationship diagram
- technical infographic
- Pick a style profile:
- default:
flat-tech-infographic
- optional:
flat-illustration, sketchnote, soft-tech-diagram, repo-architecture-clean
- If the user supplied reference images, treat them as style guidance only.
- Prefer document-friendly landscape output unless the user requests another ratio.
- Prefer concise bilingual labels and short notes over paragraph-heavy copy.
- If the user wants to inspect the prompt first, use
--dry-run.
- For live generation, run the bundled script.
Script
- architecture diagram
- process diagram
- knowledge card
- repo or module relationship diagram
- technical infographic
- default:
flat-tech-infographic - optional:
flat-illustration,sketchnote,soft-tech-diagram,repo-architecture-clean
--dry-run.Use:
uv run scripts/generate_doc_illustration.py \
--title "RAG Pipeline Overview" \
--brief "Create a technical infographic showing ingestion, chunking, embedding, retrieval, reranking, and answer synthesis." \
--style-profile flat-tech-infographic
Use --mode reference+text --reference-image <path> when the new image should follow the style of one or more reference images.
Use --dry-run when the user wants the exact prompt and parameters without calling the API.
Default output settings:
--size autofor best compatibility with GPT image providers--quality autofor high-fidelity default behavior without over-constraining the request- use
--size doc-hdfor an explicit landscape document illustration size (1536x1024) - use
--size doc-2kfor a 2K landscape document illustration size (2048x1152) - use
--size doc-4kfor a 4K landscape document illustration size (3840x2160)
Authentication
- Read
OPENAI_API_KEY from the current shell first.
- Read
OPENAI_BASE_URL from the current shell second.
- If
OPENAI_API_KEY is missing for a live generation run, prompt temporarily in an interactive shell or tell the user to export the environment variable.
- Do not write credentials to disk.
Model selection
- Use
gpt-image-2 for official OpenAI and for https://aihubmix.com/v1.
- Use
openai/gpt-image-2 for https://api.ofox.ai/v1.
- Default back to
gpt-image-2 unless a provider requires a namespaced model name.
References
- Read
references/style-profiles.md when selecting or explaining styles.
- Read
references/prompt-patterns.md when the requested illustration type needs prompt refinement.
- Read
references/openai-image-workflow.md when debugging auth, request modes, or output behavior.
- Read
references/openai-official-links.md when you need the official OpenAI docs for GPT Image, Images API, or Python examples.
OPENAI_API_KEY from the current shell first.OPENAI_BASE_URL from the current shell second.OPENAI_API_KEY is missing for a live generation run, prompt temporarily in an interactive shell or tell the user to export the environment variable.- Use
gpt-image-2for official OpenAI and forhttps://aihubmix.com/v1. - Use
openai/gpt-image-2forhttps://api.ofox.ai/v1. - Default back to
gpt-image-2unless a provider requires a namespaced model name.
References
- Read
references/style-profiles.md when selecting or explaining styles.
- Read
references/prompt-patterns.md when the requested illustration type needs prompt refinement.
- Read
references/openai-image-workflow.md when debugging auth, request modes, or output behavior.
- Read
references/openai-official-links.md when you need the official OpenAI docs for GPT Image, Images API, or Python examples.
references/style-profiles.md when selecting or explaining styles.references/prompt-patterns.md when the requested illustration type needs prompt refinement.references/openai-image-workflow.md when debugging auth, request modes, or output behavior.references/openai-official-links.md when you need the official OpenAI docs for GPT Image, Images API, or Python examples.正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。