當原始素材已經存在於檔案中時,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 工具。如果沒有出現四個主要工具,請停止並修正端點、環境變數或授權標頭。絕對不要把 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 是可選的。不要自行捏造。建立後會回傳一個 generation 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 編輯器中替換掉較弱的分鏡,並保持其餘五格不變。

發布前,請要求成人審閱者確認:
請確認端點為 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 點數則用於漫畫生成。進行批次作業前,請分別檢查兩者。
不夠。請把它視為經審查的溝通輔助工具。合格的成人必須依據目前團隊、學校、聯盟與當地要求確認最終內容。不要將生成漫畫用作醫療或重返賽場指引。
這個實用模式其實很簡單:來源檔案、明確的防護欄、已核准的分鏡計畫、一次生成呼叫、一個已保存的 generation ID,以及聚焦修補。這會讓 Claude Code 成為專案操作員,而不是臨場發揮提示詞的人。
打開 LlamaGen.AI Claude Code 漫畫外掛,連接託管的 Comic MCP,並從一堂可由真實教練審閱的六格課程開始。



