Open source CapCut alternative.
TypeScript
fix(app): draw comics as one image.generate call instead of a book
David Lef3133c155b35
diff --git a/apps/Donkey/Sources/DonkeyHarness/GenericHarnessToolRegistry.swift b/apps/Donkey/Sources/DonkeyHarness/GenericHarnessToolRegistry.swiftindex 68f97979..ccfdb22a 100644--- a/apps/Donkey/Sources/DonkeyHarness/GenericHarnessToolRegistry.swift+++ b/apps/Donkey/Sources/DonkeyHarness/GenericHarnessToolRegistry.swift@@ -615,7 +615,7 @@ public enum BuiltInHarnessToolCatalog {descriptor("image.generate",pluginID: "core.image",- summary: "Generate a brand-new image from a text `prompt` with a generative image model — use for photographic or artistic imagery when there is no source image to edit. NOT for charts, diagrams, infographics, posters, standings, or anything containing real text or data: a generative model garbles text and numbers. For those, write HTML/SVG and render it with `image_render` (see the `design` skill). Writes a new image file and returns its path. Costs image-generation credits per image.",+ summary: "Generate a brand-new image from a text `prompt` with a generative image model — use for photographic or artistic imagery when there is no source image to edit. A comic or comic strip is ONE call: describe the panels, style, and short speech-bubble lines in the prompt and the model draws the whole multi-panel page. NOT for charts, diagrams, infographics, posters, standings, or anything containing real text or data: a generative model garbles text and numbers. For those, write HTML/SVG and render it with `image_render` (see the `design` skill). Writes a new image file and returns its path. Costs image-generation credits per image.",input: ["prompt": "Description of the image to create.","model": "Optional model id override; omit to use the default image model.",diff --git a/apps/Donkey/Sources/DonkeyRuntime/Resources/BuiltInSkills/book/SKILL.md b/apps/Donkey/Sources/DonkeyRuntime/Resources/BuiltInSkills/book/SKILL.mdindex 18143085..caa025dc 100644--- a/apps/Donkey/Sources/DonkeyRuntime/Resources/BuiltInSkills/book/SKILL.md+++ b/apps/Donkey/Sources/DonkeyRuntime/Resources/BuiltInSkills/book/SKILL.md@@ -1,9 +1,9 @@# Bookid: book-description: Make an ebook from scratch — a comic, picture book, photo book, or storybook — and open it in Apple Books. Author each page as HTML, render a multi-page PDF with image_render, and build a real .epub with epub-pack, then open both in Books.-tags: book, ebook, epub, comic, picture-book, photo-book, storybook-keywords: ebook, book, epub, comic, comic book, graphic novel, picture book, photo book, storybook, story, children's book, pages, cover, chapter, apple books, books app, publish+description: Make an ebook from scratch — a comic book, picture book, photo book, or storybook — and open it in Apple Books. Author each page as HTML, render a multi-page PDF with image_render, and build a real .epub with epub-pack, then open both in Books. A comic the user just wants drawn is one image.generate call, no book.+tags: book, ebook, epub, comic-book, picture-book, photo-book, storybook+keywords: ebook, book, epub, comic book, graphic novel, picture book, photo book, storybook, children's book, pages, cover, chapter, apple books, books app, publishapps: Books, com.apple.iBooksXtools: image_render, image.generate, image.edit, shell_exec, files.write, files.describe, llm.generate@@ -65,6 +65,9 @@ storybook. Creating files is reversible (no consent prompt; `epub-pack` is bundl- A failed `epub-pack` or an empty file means it did not work — report it, don't claim success.## When NOT to use this+- "Draw a comic / comic strip about …" → ONE `image.generate` call; the image model draws a+ multi-panel comic with speech bubbles directly (see the `images` skill). Build a book only+ when they ask for a book, an ebook, or something in Apple Books.- A single infographic, poster, or diagram → the `design` skill (one `image_render`).- Filling or merging an EXISTING PDF → the `pdf` skill. Reading a PDF's text → `pdf`/`documents`.- One photo or piece of art → `image.generate` / `image.edit`.diff --git a/apps/Donkey/Sources/DonkeyRuntime/Resources/BuiltInSkills/images/SKILL.md b/apps/Donkey/Sources/DonkeyRuntime/Resources/BuiltInSkills/images/SKILL.mdindex 53dfc8dc..6f8bd999 100644--- a/apps/Donkey/Sources/DonkeyRuntime/Resources/BuiltInSkills/images/SKILL.md+++ b/apps/Donkey/Sources/DonkeyRuntime/Resources/BuiltInSkills/images/SKILL.md@@ -3,7 +3,7 @@id: imagesdescription: Expert still-image work — resize/convert/rotate with sips, crop/composite with magick, metadata with exiftool, batch a folder, and generative edits (background removal, restyle, reference-match, text-to-image) with the image.* tools.tags: image, photo, resize, convert, metadata, exif, generate, edit-keywords: image, photo, picture, resize, scale, convert, crop, rotate, jpeg, png, heic, metadata, exif, strip, batch, folder, background, remove, restyle, generate, reference, match, look+keywords: image, photo, picture, draw, comic, comic strip, cartoon, resize, scale, convert, crop, rotate, jpeg, png, heic, metadata, exif, strip, batch, folder, background, remove, restyle, generate, reference, match, looktools: shell_exec, image.edit, image.generate, files.describeTwo kinds of work: mechanical pixels (size, format, crop, metadata) use the local@@ -37,6 +37,7 @@ directly and fall back to `sips` if it isn't installed. Editing in place is reve## Generative edits — image.edit / image.generate- Change an existing image: `image.edit` with `inputPath` and a plain-words `prompt` ("remove the background", "make the sky a sunset", "put a hat on the dog"). It writes a NEW file and returns its path; it never touches the source.- New PHOTO or ARTWORK from text: `image.generate` with a `prompt`. But to CREATE an infographic, diagram, chart, poster, or any image of text/data, do NOT use `image.generate` (it garbles text) — follow the `design` skill: write HTML/SVG and render it with `image_render`.+- A COMIC or comic strip is one `image.generate` call: describe the panel count and layout, what happens in each panel, the art style, and any short speech-bubble or caption lines in quotes. The model draws the whole multi-panel page, bubbles included. If the user wants more pages, call once per page reusing the first page as `referencePaths` via `image.edit` so characters stay consistent.- These cost credits per image. For a batch, say how many and confirm first, then call `image.edit` once per file (e.g. saving into `edited/`).- Verify the returned file exists and looks right (`files.describe` or open it), then report what was saved.