当源材料已经以文件形式存在时,Claude Code 在漫画制作中最有用。教练、学校传播团队或青少年项目通常已经有课程计划、学员指南、角色参考以及必须在每次修订中保留的规则。这些输入比单一的图片提示词更需要结构化。
本篇演练使用一堂虚构的 U14 篮球课程:
目标并不是取代教练或本地安全政策,而是创建一个可由成年人在分享前审阅的简短视觉教学辅助材料。美国的 National Youth Sports Strategy 将团队合作、领导力、人际关系和高质量项目列为青少年体育的重要成果。漫画可以让这些期望更容易被快速浏览和讨论。
从 LlamaGen.AI Claude Code 插件 开始该工作流。配置参考请使用单独的 Claude MCP 设置指南。
我们于 2026 年 10 月 13 日检查了 LlamaGen.AI 插件页面、设置指南、Comic API 文档以及当前 MCP 工具协议。托管的 MCP 提供四个主要工具:
| Tool | 在此工作流中的作用 |
|---|---|
search_llamagen_docs | 读取当前的设置、认证、限制、webhook 和错误处理指导。 |
get_comic_api_usage | 在生成前检查 LlamaGen.AI 套餐和剩余 Comic API 积分。 |
create_comic_generation | 使用提示词以及可选的风格、分镜数量、尺寸和一个公开角色参考 URL 启动生成。 |
get_comic_generation_status | 轮询生成状态,并可检查生成、页面或分镜状态。 |
当前的写入工具会创建一个生成任务。它不会静默重写文件、发布课程,或替换现有页面中的某个分镜。最终排版、对白气泡、分镜替换和审核仍在 LlamaGen.AI 中完成。这个边界很有用:Claude Code 负责编排,人类仍负责审核。
保持“单一事实来源”足够精简,以便审阅:
youth-basketball-comic/
README.md
lesson.md
cast.md
style.md
scene-plan.json
review-checklist.md
output/
generation-log.md
热门创作工具
使用 LlamaGen 创作漫画、分镜和风格化照片。
了解 LlamaGen 最新功能发布、产品增强、设计更新和重要错误修复。




每个文件各司其职:
| File | 应包含的内容 |
|---|---|
lesson.md | 受众、学习目标、已批准的顺序、禁止性表述以及成人审核人。 |
cast.md | 反复出现的球员和教练的稳定视觉事实。 |
style.md | 美术方向、镜头语言、分镜顺序、适龄语气以及视觉排除项。 |
scene-plan.json | 生成必须遵循的、已批准的逐格分镜计划。 |
review-checklist.md | 连贯性、可读性、体育器材、保护规范和政策检查。 |
generation-log.md | 生成 ID、日期、工具调用、结果、错误以及标记为需修改的分镜。 |
不要把 LlamaGen API token 放在这个文件夹中。请将其保存在环境变量或受保护的密钥存储中。
使用精简版的 lesson.md:
# U14 basketball communication comic
Audience: players ages 13-16
Learning goal: show that clear calls, teammate support, and respectful reflection
make practice safer and easier to follow.
Approved beats:
1. Jordan checks tied shoes and joins the warm-up.
2. Jordan raises a hand and calls before the pass.
3. Jordan receives the basketball in control.
4. Jordan helps a teammate stand after a normal loss of balance.
5. The adult coach leads a calm recap.
6. The team names one communication habit to repeat.
Guardrails:
- supervised indoor practice
- no diagnosis or medical instruction
- no real school or team marks
- no humiliation, punishment, or unsafe contact
- final output requires adult review
这已经足够具体,便于进行视觉规划,同时把本地规则留给实际组织来决定。
角色记录只应描述会影响图像的事实:
# Jordan continuity record
Age: 15
Hair: short dark curls with a clean tapered side
Uniform: plain navy practice jersey and shorts, no team logo
Anchor prop: coral wristband on the left wrist
Shoes: white high-top basketball shoes
Body language: attentive, cooperative, never aggressive
Continuity rules:
- preserve age, face, hair, jersey color, wristband side, and shoes
- use a basketball, never a soccer ball
- keep the adult coach visually distinct from players
如果你有已批准的角色图片,请将其上传到公开的 HTTPS 地址,并将其作为 characterImageUrl 传入。当前 MCP 接受一个可选的公开角色参考 URL。

在 LlamaGen.AI 设置中创建或轮换一个 token,然后在用户作用域注册托管的 MCP:
export LLAMAGEN_API_TOKEN="<YOUR_LLAMA_GEN_API_TOKEN>"
claude mcp add --scope user --transport http \
--header 'Authorization: Bearer ${LLAMAGEN_API_TOKEN}' \
llamagen https://llamagen.ai/api/mcp
在任何生成开始前,先让 Claude Code 列出 LlamaGen 工具。如果没有出现这四个主要工具,就先停止并修复 endpoint、环境变量或授权请求头。绝不要把 token 粘贴到故事文件、截图、提示词或公开 URL 中。
使用这个项目提示词:
Read lesson.md, cast.md, style.md, and review-checklist.md.
1. Search the current LlamaGen Comic MCP documentation.
2. Check LlamaGen Comic API usage and report it separately from Claude usage.
3. Build scene-plan.json for one six-panel landscape comic.
4. For every panel include camera distance, action, emotion, background,
continuity anchors, and the teaching purpose.
5. Flag any unsafe, medical, or policy-sensitive statement.
6. Show me the plan and wait for explicit approval.
7. Do not call create_comic_generation until I approve.
这个审批关卡很重要。它让教练或传播负责人可以在消耗生成积分之前先修正课程内容。
scene-plan.json一个有用的计划应该具体到足以审查:
{
"audience": "ages 13-16",
"panelCount": 6,
"readingOrder": "left-to-right",
"panels": [
{
"panel": 1,
"camera": "medium-wide",
"action": "Jordan checks tied shoes, then joins the warm-up line",
"continuity": ["navy jersey", "coral left wristband", "white shoes"],
"teachingPurpose": "pre-practice preparation"
},
{
"panel": 4,
"camera": "medium",
"action": "Jordan offers a hand to a teammate after a normal loss of balance",
"continuity": ["same Jordan", "basketball visible", "coach supervising"],
"teachingPurpose": "teammate support"
}
]
}
在批准前,检查三层内容:
获批后,Claude Code 可以按如下协议调用 create_comic_generation:
{
"prompt": "The approved six-panel youth basketball lesson from scene-plan.json",
"style": "bright modern educational graphic novel, clean ink, age-appropriate",
"panelCount": 6,
"size": "16:9",
"characterImageUrl": "https://your-approved-public-reference.example/jordan.webp"
}
characterImageUrl 是可选项。不要凭空编造。创建操作会返回一个生成 ID;Claude Code 应将该 ID 保存到 output/generation-log.md 中,轮询 get_comic_generation_status,并报告已完成的资源或错误,同时不暴露 token。
脱敏后的日志可以是这样的:
## Generation run
- Verified: 2026-10-13
- MCP server: llamagen
- Input: approved scene-plan.json
- Requested panels: 6
- Generation ID: [redacted in public copy]
- Status: completed / failed / needs review
- Credits: copy the actual usage response; never estimate
- Review: panel 4 needs a continuity repair
假设第 4 格改变了球衣颜色、漏掉了腕带,或者换成了错误的球。请保留另外五格已批准的分镜。创建一份替换分镜简报,只重复必要的锚点:
Create one replacement comic panel for panel 4.
Jordan is the same 15-year-old athlete from the approved reference: short dark curls,
plain navy practice jersey, coral wristband on the left wrist, white high-top shoes.
Jordan offers a hand to a teammate after a normal loss of balance.
Keep the same medium camera angle, indoor gym, basketball, pose direction,
adult supervision, bright educational graphic-novel style, and no readable text.
当前 MCP 会把该替换内容创建为一个新的生成任务。它不会原地修补现有页面。审查结果后,在 LlamaGen.AI 编辑器中替换掉有问题的分镜,并保持其余五格不变。

发布前,请让一位成年审核人确认:
确认 endpoint 是 https://llamagen.ai/api/mcp,token 已对 Claude Code 进程可用,并且授权请求头已存在。然后在生成前再次列出工具。
回到 scene-plan.json 中的 teachingPurpose。每个分镜都应展示一种行为、结果、决策或反思。去掉与课程内容竞争注意力的装饰性动作。
将连贯性记录缩短为最显眼的锚点,并在每个相关分镜中重复它们。有条件时使用一张已批准的公开参考图。
默认不要重新生成全部六格。为失败的分镜编写替换简报,保留它的镜头和上下文,生成替换结果,然后在编辑器中替换进去。
Claude Code 可以整理文件、规划页面、调用当前的 Comic MCP 并轮询生成状态。LlamaGen.AI 负责视觉生成并提供编辑界面。对于更长的作品,请按页推进,并保留一份已批准的角色记录。
当前的写入工具会创建一个漫画生成任务。对于有问题的分镜,请创建一个聚焦的替换任务,检查结果,然后在 LlamaGen.AI 编辑器中替换该分镜。
不包含。Claude 负责自己的模型对话和文件处理。LlamaGen.AI Comic API 积分用于支付漫画生成。批量生成前请分别检查两者。
不够。应将其视为经过审核的沟通辅助材料。必须由合格的成年人根据当前球队、学校、联赛和当地要求确认最终内容。不要将生成的漫画用作医疗或重返赛场指导。
这个实用模式很简单:源文件、明确的护栏、已批准的分镜计划、一次生成调用、已保存的生成 ID,以及聚焦修复。这样一来,Claude Code 就是项目操作员,而不是临时发挥的提示词 improviser。
打开 LlamaGen.AI Claude Code 漫画插件,连接托管的 Comic MCP,并从一堂可以由真实教练审核的六格课程开始。