Thematic hand-drawn video
Delivers playable final video, cover, subtitles, narration script, and inspection records. Defaulting to Simplified Chinese (language can be changed, e.g., en: voice recognition, subtitle line breaks, and speaking rate thresholds switch accordingly), 1280×1920 (2:3), 30fps; user's language, size, style, voice, and reuse requirements take precedence. Video length varies with content and actual voiceover, without fixed page counts, layouts, or seconds per page.
First read the dependency route, then read the built-in guides as needed. The core content is designed by the model; the script only executes the finalized material and timeline, using objective metrics to catch errors. Only pause and request input when the topic, story, body text, and attachments are all missing; other preferences have defaults and do not constitute obstacles. If the host cannot generate images, stop and inform the user; do not silently downgrade to a text-only video.
Process
Design the opening separately. Before writing the narration, read the Golden 5 Seconds Opening, choose the main strategy from six methods based on content, and write it into design.json.opening_hook. The cover, first sentence, and first line together convey a reason to keep watching. After voiceover, check the final video's 0–5 second segment (including the 1-second cover) against real timestamps. The storyboard prioritizes drawing the key object or relationship that carries the hook. After arrangement, preview the opening and its transition to the body separately; the final review checks if promises are fulfilled. build measures the actual time of the 'first valid frame' (at least 1% of the screen covered with content): warn if exceeds 3 seconds, reject if exceeds 4 seconds. For a deliberate slow opening, document the reason in opening_hook.slow_open_reason. See that guide for complete steps; for locked original scripts or recordings, first optimize the visuals and arrangement without changing the words. After writing the narration and design.json, and again after locking the voiceover, run director_lint.py JOB: it checks the opening for retention best practices (based on 2026 standards), grouping and re-engagement hooks for long lists, endings and AI tone, restraint in sound effects, and the hierarchy of long lists (maps, chapter pages, progress bars, numbered titles) and the presentation form of each page (comparison uses tables, processes use flowcharts, waiting uses swimlanes… see 'Hierarchy' and 'Presentation Form' in Creation and Storyboarding). Starting from version 3.0, it also checks what the audience actually sees on each page: illustration ink bleeding into the title text box (error if exceeds 2%), blank white paper for more than 1 second after a page turn, pages consisting only of text or a large flat color area, and using the same presentation form for more than 3 consecutive pages or for the majority of pages. Numbers already written in a title no longer require a separate counter; time words like 'later' and 'half a year ago' are not treated as comparisons.
- Clarify cause and effect. Determine the audience, the problem to be solved, the mechanism, necessary counterexamples, and actions, writing them into
design.json. When adapting an article, read the full text first, preserving limitations, attributions, and sources; for time-sensitive or controversial facts, verify primary sources. If the user provides a script, correct errors without changing meaning: only fix factual mistakes and awkward phrasing; preserve the author's viewpoint and intentional simplifications; the length increase should not exceed about 20%; record changes inscript_changes. See Creation and Storyboarding for details. - Offer options at the start (natively, without popping up a webpage). First ask about configuration type:
Model Inference(default) orActive Selection. Model Inference: writeoptions/defaults.jsonbased on content (default ratio 2:3, style inferred, pen-only, default voice, no ad watermark); the script completes directly. Active Selection: use host native options or terminal number menus to ask item by item: Ratio → Style (text list, no preview) → Voice → Subtitles; max 60 seconds per item. The style list does not constrain model inference. The art style can only be revealed after explicit user acceptance (reveal_accepted). Ads/watermarks are not added by default. See Optional Production Settings. - Narration first, generated segment by segment. First write the complete narration script, then generate segment by semantic segment (each segment not exceeding about 100 characters, breaking only at sentence ends). Each segment is retained only after passing a noise gate (buzz, background noise, clipping). If it fails, retry with a different seed. When assembling the master track, use measured pauses and automatically generate
alignment.jsonwithout manually writing timestamps. Local VoxCPM2 or VoiceStudio is the primary engine; Volcano ByteDance and Gemini TTS are only options if the user has configured their own keys. Usealign.pyto align user-provided recordings. Separate reading and writing:narration.say(for the whole video) and a sentence'ssay(for a single sentence) map written forms to spoken forms in subtitles, e.g.,{"Grok": "Ge Luo Ke", "70万": "七十万"}; subtitles display the original text, while voiceover, recognition checks, and subtitle timing all use the spoken form (local VoxCPM2 does not normalize numbers; Arabic numerals always get their spoken form). Before voiceover, runvoxcpm_voice.py JOB --probe-terms: individually trial-read each English word and number within its small clause with two seeds; for problematic readings, providesaysuggestions inwork/term-probe/report.json. Do not wait until an entire segment fails six times before discovering issues. By default, add only a soft pen sound synchronized with the pen tip for hand-written text; mute the line drawing and coloring (audio.foley:falseto disable,{"scope":"all"}to also make drawing audible). Chapter transitions have a very light synthetic paper sound (normal transitions are silent; highlight sound effects are off by default;audio.sfx:falseturns everything off). Background music is determined by the director based on mood: for lecture and story-type videos, a single built-in instrumental bedbuiltin:<mood>can be used (withdirector_reason), running seamlessly throughout the entire video without breaks during transitions. For user's own music, the user must provide it; the build automatically loops, fades in/out, and ducks under the narration (see Sound and Ending). See Continuous Narration, Sound and Dependencies, and VoxCPM2 Essentials. - Budget first for storyboard, then generate images. The director first writes
presentation.mode(picture_book / focus_diagram / dense_infographic / accumulating_board / step_sequence / narrative_comic) and its reason indesign.json—this is a density director, not a user option: children's picture books have less content per page, while knowledge/science/blackboard reports have more content per page or accumulate content on a board. For blackboard mode, first plan the area positions, roles, and visuals for the entire pageboards, then generate images. The same board must be filled piece by piece on one physical page in reading order, without clearing the board for each sentence. Then design shots for each sentence, writingstoryboard.json(synchronized with presentation). For dense infographics and blackboards, writecompositionfor each shot: layout, focal visual, at least two auxiliary elements and their explanatory roles. Scene parts within the same illustration can also serve as auxiliary elements; do not use decorations just to fill up. Runstoryboard_lint.py JOB --budget; the script adjusts hold time, number of visuals, hero visual limit per shot, and post-drawing stay time based on mode. Design images based on available time; stop when drawing speed is about 3x human speed. The v3 engine, like a human, first sketches, then outlines parts from simple to complex, erases the sketch, then colors with markers. The default drawing method (sketch + marker coloring) measures about 3.9 strokes per second in practice. Coloring by part, skipping the sketch, or increasingspeedwill be faster.--budgetprovidesstrokes_per_secondbased on the actual drawing method for each image. The visual of web effects does not consume pen time. Stroke counts and durations are calculated on the planning size where the long side does not exceed 720 px (drawing.plan_sidecan be changed); larger images are re-rendered clearly at display size, so drawing larger doesn't take longer. The main image should be drawn large: in portrait mode, the main image width typically occupies over 70% of the safe area. Uselayout_plan.py fitto get the layout position within the platform's safe area (header title area, main image area, auxiliary area, avoiding the top tab, bottom account/description area, and right-side button column). Uselayout_plan.py probe JOB IMAGE --width Wto measure the minimum drawing time for that size, then decide on the image dimensions and window. The pen busy ratio is constrained by mode and does not exceed 70%; the static reading time for completed images is separately measured to be at least 30%, excluding opening blank space and ending silence. Warn if any single image's stay time is less than 1 second. For long videos, advance by chapter usingplan_status.pyto find the next shot. - Generate images: drawable, recognizable, delimited by parts. Before each image generation or modification, execute the art direction (see next section). First write
drawing-plan.json(subjects, parts, order,identity_cues) and run the pre-drawing checks. Illustrations drawn stroke-by-stroke default to line-first: first output a pure black line art, useimage_gate.py JOB lineart --plateto check the budget before coloring (if exceeded, let the model inspect the image and specify which details to erase from the line art), then use the line art as input for coloring edits.line_first.pyregisters them to get the source image andoutline_mask; each stroke is a line from the line art (see Line-first). Stroke-by-stroke images require continuous clean ink lines, closed intersections between parts, flat colors without texture lines, and the complexity must match the level. See Drawable Conventions. First create one representative image, check the subject, composition, and part separability, then expand the materials for the same video. Redesign for new topics; for revised videos or when the user explicitly requests reuse, keep the previously approved images. For common props, character poses, and icons, first query the local asset libraryasset_library.py find --tags …; if suitable,usethem in the current video (after reuse, still inspect the image within this video, change its record from pending_review to pass and write evidence). New, approved generic materials from this video can beadded to the library. For the cover, AI only provides the main visual; the accurate title is composited from editable text layers. After image generation, first runimage_gate.py JOB IMAGE --visual <id>(a few seconds): check for transparent holes, halos, the line art, and the drawing time under the planned size. If it fails, add the providedprompt_fixto the prompt and regenerate; do not proceed with the problem. Then, sequentially: inspect the image and fill in narrative verification (bites, breaks, contacts, gains/losses must be truthfully visible);drawing_contract.py JOB --thumbnails(thumbnails must be nameable within 1 second);lineart_gate.py(line art threshold);part_grid.py JOB IMAGEto output an image with a 0.05 grid, object boxes, and color block numbers, then write boxes for parts"box": [left, top, right, bottom](in drawing order,exclude_boxesyields to later-drawn parts); color blocks are wholly assigned to the part occupying the most area within them; no need to outline contours.region_marks.pycan still display numbered overlays. All generated images undergoclean_image.pyfor privacy cleaning. For characters drawn with line-first, writecolours(skin/hair/clothing) in the drawing-plan; coloring prompts specify colors per character;buildwill measure the head skin color and torso clothing color. Before generating images, usestoryboard_lint.py --budgetto check for two warnings: the window cannot fit a person, or the typical amount of images will exceed the mode's pen busy limit. - Arrange and create representative segment. Write
job.jsonaccording to the Runtime Contract: actions withvisual, a shot usually is avisual_groupspanning multiple sentences;from_beatmakes elements start drawing at the beginning of the corresponding sentence. Design shots and transitions shot by shot, read the Camera Movement, Transition, and Effect Catalog. Shots: named movements (push, pull, pan, hop, whip, slam in, etc.), zoom 1–3x; generate page materials at the maximum zoom size so pushing in remains clear, suitable for a large board where you 'push in for detailed explanation, pull out to see the whole picture.' 22 types of transitions; choose 1–2 as the video's signature (page flip, board eraser), use light transitions for the rest. Elements can havemotion(emphasis, idle, exit, part puppet). Pages can have web effect layersoverlays: large text, hand-drawn charts, map routes, shape relays, physical props, rotating 3D objects, hand-written formulas. When an overlay appears on the drawing board, the pen tip will trace it once. Elements and board overlays can have parallaxdepth; shots can usedolly_zoom(Hitchcock zoom). When only changing shots, transitions, effects, or positions, already-drawn materials are reused from cache; rebuilding takes only a few seconds. Can draw arrowsarrow, bar chartsbar_chart(use only real data), and rolling numberscounter. Unwritten parts are filled by the auto-directordirection(auto-push-in won't push illustrations into the screen layer title; if it can't push, it retreats; pages where the pen writes on a card in the screen layer maintain a static shot).buildwarns about excessive shot changes based on density rules.buildalso reports the longest duration without change (warn if exceeds 8 seconds in portrait mode; pen movements, camera movements, and emphasis actions count as changes) Chinese characters are written according to the standard stroke order (within GB2312); other characters are traced by their shapes. Subtitles follow Subtitle Design; endings follow Sound and Ending. The cover is fixed at 1 second: first 0.5 seconds static, last 0.5 seconds fade into the first page being drawn; narration begins at the start of the fade (0.5 seconds) (cover.voice_overlap, 0–0.5). The opening and titles on each page useglyph_in(characters appear one by one), notmask_up(revealing from top to bottom). After a page turn, the title arrives with the page (at: 0); the progress bar, starting from the second page, hasenter: "settled", so new pages don't start blank. After the last sentence finishes, the final image stays forending.settle_seconds(default 2.5 seconds) before ending. First render a representative segment covering text, illustrations, coloring, subtitles, and transitions, including at least one illustration drawn from start to finish. Review it at playback size, then render the full video (default multi-process parallel; an 11-minute portrait video takes about 2.5 minutes). The build report'sstoryboard.composition.pagesprovides actual image and content boundaries, excluding near-white/transparent whitespace, subtitles, and textures. If the subject is too small, first enlarge it or add related scenes; do not rely on writing more titles to fill the space. For deliberate whitespace, explain its narrative role incomposition.negative_space_reasonfor each shot on that page. The judgment criterion is 'does it look like it's being drawn?': first, observe how the image forms (the pen tip produces lines, outlines first then color, no whole blocks appearing suddenly, natural hand movement); second, check if the final image looks good. If you see broken lines, dry brush, or gray spots, first modify the image; do not batch-generate images. - Check and deliver.
buildfirst checks subtitle sync and subtitle avoidance (illustration pixels must not intrude into the subtitle area) on the narration, without waiting until after rendering. Simultaneously, perform framing checks: elements currently being written or drawn, and board effects appearing must be within the frame and not intrude on subtitles. If not, automatically make the camera wait for the pen to finish writing, reframe, or pull out. If it cannot be fixed, write it as a warning, then modify the layout or timing based on the warning.verifyperforms engineering checks on the final video, sound gating, and subtitle sync review. Then check visuals and content according to Quality Gates. Continuous playback and listening checks are recorded separately inreview.json(continuous_playback,listening); if not done, writenot_donewith a reason. The receipt will mark it as incomplete, not merging it into 'passed'. Do not claim decoding, ASR, or file existence as a guarantee of subjective quality.finalizeonly accepts inspection records that match the current video. When the user rejects the final video, runhanddraw_video.py reject JOB --reason "user's exact words": the receipt is updated to 'User has rejected, needs rework'; this version of the video can no longer be finalized. Upon delivery, inform: default audio includes pen sounds and transition effects, background music is not added; the final video has AI-generated implicit identifiers written into it; when publishing, you must still declare 'AI-generated' on the platform.
Build and rendering will reject: unlocked narration and timestamps, missing storyboard or its failed checks, drawing window shorter than the image's minimum_seconds, line art threshold failure, mismatched parts or a single undifferentiated block, sound gate failure, expired inspection records. The model corrects the corresponding layer before continuing. Unselected preferences do not trigger these thresholds. Scripts only check structure, hashes, pixels, and acoustic metrics; they cannot replace the model's visual judgment and human listening.
Production Kit (Videos Write Only Data)
New videos do not write scripts in work/: narration inputs/script.json (spoken forms via narration.say / sentence say), image generation design/image-specs.json, visuals design/film.json, cover design/cover.json; see format in Production Kit.
art_pipeline.py JOB prompts | gen name… [--edit] | record name "evidence" | sync-minimums | review notes.json: the brief includes the current page's drawing budget (narration seconds × 70% × ~3.5 strokes per second) and requires a 2:3 portrait composition, line-first, three images in parallel. Do not rewrite prompts for already-approved images.codex_image.py: when the host has no image generation tool, generate images via Codex CLI (first pad reference images to the required format, only use images from this thread).film_kit.py plan | measure | compile | at JOB …(e.g.,film_kit.py at JOB p03b4 phrase): always use narration cues"@p03b4:phrase"; page headers appear with the page by default (glyph_in); then runstoryboard_lint.py,director_lint.py.cover.py JOB: base image plus editable text layer; font chosen viafonts.py.
All image generation must first pass Art Direction
Before each call to an image generation or editing tool, fully read and apply dependencies/sweety-image-art-direction/GUIDE.md; this is the user's explicit authorization for this project, not limited by its 'manual trigger only' restriction when used independently. Applies to covers, body images, characters, props, hand parts, candidates, variants, local edits, and reworks. The in-library art style retains the full recipe; independent inference and custom art styles use only their respective style descriptions.
First, save the brief for this image (including the drawing seconds and complexity level from the storyboard) and the full prompt into the task directory. Register brief_file and prompt_file in the art direction record. Run python scripts/art_direction.py bind-evidence <record path> to bind the hash, then call the image tool. It is forbidden to output an image first and fill in the record later. After generation, actually inspect the image, record the cleaned hash and visual conclusions. Missing records, hash mismatches, failed visual inspections, or replaced images will stop building, rendering, and delivery. Materials that have been approved and whose bytes have not changed can retain their original record.
Subtitle Exclusivity is a Hard Delivery Requirement
Only one version of a subtitle is displayed for the same narration at the same time: burned-in visuals, subtitle events, MP4 subtitle tracks, webpage <track>, and automatically loaded subtitle files from a player must not overlap. Re-synthesize only from the non-subtitled source and an independent subtitle layer. Subtitles for editing purposes go only into outputs/editing/. Delivery checks that the MP4 has no extra subtitle tracks, and the same directory has no SRT/ASS/VTT files, and actually inspects the decoded video for long sentences, transitions, and the ending. If dual subtitles are found, it is an outright FAIL.
Audio
The catalog has six voices: a realistic male voice, a realistic female voice (based on original video reference, only in the local personal voice library, needs to be imported first), and four bundled synthetic voices—a magnetic male narration voice (default), an elegant young man, a gentle and knowledgeable female voice, and a suspense story narrator. The primary voice approved in the local personal library takes priority; the user's explicit choice for this session takes the highest priority. Users can add any number of custom voices: for their own recordings, declare consent: self; for someone else's voice, they must obtain authorization and declare consent: authorized. The reference must pass the gate during import and each use. Do not clone public figures, streamers, or platform voices. Do not use synthetic previews to impersonate original voices. See Voice Sources for origins and authorizations. Do not automatically purchase services, download models, change global engines, or deliver silent videos.
Hands and Advertising
Six arm types: navy (navy sleeve with marker), diamond-woman (diamond long nails), child-pencil (children's colored pencil), waner-brush (inspired by Shangguan Wan'er's brush), teacher-pen (white shirt with gel pen), cardigan-fountain (knitted sleeve with fountain pen). Plus pen-only: the same pen as navy but without the arm (same angle, pen tip, scale). The model chooses a default based on content; anchors are in assets/hands/catalog.json. Arms are calibrated from the pen tip to the wrist; crop edges stay outside the frame.
hand.pen_text only adds advertising text on the pen barrel, maximum 16 characters, defaults to empty, preserving the user's original text. watermark.text generates a low-opacity text watermark, defaults to empty: during rendering, on each page, choose the position with the least ink from the four corners and left/right edges (ink includes illustrations, coloring, text, and effects; do not enter the subtitle area). When changing positions, fade in/out across page turns. If even the best position covers more than 6% ink, verify fails; leave one corner of the page empty for it (layout_plan.py zones lists watermark_corners). watermark.position can be fixed to a specific corner; legacy restores the old floating position. See Optional Production Settings for parameters.
Operation and Boundaries
On first use, run scripts/setup.sh to install dependencies (macOS, Linux; both Codex and Claude Code). scripts/handdraw_video.py provides doctor / build / render / verify / finalize / reject; doctor lists available voiceover backends, font coverage, and rendering conditions, reporting what is missing. Task data is placed in its own directory, not written to the installation directory. Hands, style previews, and synthetic voices are distributed with the package; original recordings and the personal voice library are stored only on the local machine.
Quality first: engineering thresholds ensure order and completeness; the model must still review semantic partitioning, art style, and narrative. Authentic handwriting naturalness, emotional impact, and learning effectiveness must be evaluated separately. Do not guarantee stable generation for any arbitrary topic on the first try. Do not publish videos, enable services, or change global model configurations.