OpenParable
Skip to content
← Back to skills

Chapter Illustration

Design
chapter-illustration

Chapter Illustration is an Agent Skill for design published in the alfredxw/denova repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

为当前或指定章节生成一张非剧透插画,并保存到 workspace assets/illustrations。

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/alfredxw/denova/blob/HEAD/skills/chapter-illustration/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/chapter-illustration, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

章节插画

当作者要求为章节生成插画,或编辑器发送 /<chapter-illustration> 请求时,使用这个 Skill。

工作流程

  1. 确定目标章节路径:
    • 如果用户明确给出章节路径,使用该路径。
    • 否则使用 IDE 上下文里当前打开的章节。
    • 如果没有当前章节,从 workspace 摘要或 chapters 目录中识别最近章节。
  2. 生成图片提示词前,先读取目标章节内容。如果选中的路径不是章节,请让用户重新选择。
  3. 从章节中选择一个有画面感、非剧透的瞬间。不要暴露未来剧情反转、隐藏身份或未公开设定。
  4. 用中文写清晰的图片提示词,包含主体、场景、构图、光线、风格、情绪,并明确负向约束:不要文字、不要水印、不要 logo。
  5. 调用通用图片工具 generate_image,参数要求:
    • purpose 填 chapter_illustration。
    • target_path 填目标章节相对路径。
    • prompt 填完整中文图片提示词。
    • alt_text 填适合 Markdown 图片的中文描述。
    • size 可按画面需要从工具支持的 2K/3K/4K 尺寸中选择;不确定时留空,由生成工具按默认策略处理。
    • output_format 只能填 png 或 jpeg;不确定时留空。
  6. 工具返回后,简要说明生成了什么,并告诉用户可以手动插入章节。不要自动编辑章节正文。

约束

  • 每次请求只生成一张章节插画。
  • 不要批量生成多张插画。
  • 不要调用文件写入工具把 Markdown 图片语法插入章节。
  • 如果用户要求插入结果,优先让 UI 的插入按钮处理。