Communitygithub.com

Ayushgautam78/chibi-realism

Make short narrated 3D videos (Shorts/Reels/X, 16:9 or 9:16, ~20-60 s) starring an expressive big-head "chibi" cartoon character with real materials (real eyeballs, strand hair, subsurface skin, knit/denim fabric) in photoreal worlds (park, stadium, city street, living room, mountain hill station, forest, desk room) with Poly Haven assets, ElevenLabs narration, clean Foley and subtitles, all built by code. Two engines, headless Blender for the best light or three.js in any browser (no install, works from phones and cloud agents, exports MP4 in minutes). Use this whenever someone wants a cartoon-character explainer or story video, "a Pixar/vinyl-toy figure in a real-looking world", a stickman/chibi/mascot animation, a product or tool explainer with a character, a 3D animation with three.js or without Blender, or an animated character in any real place, even if they don't name this skill.

What is chibi-realism?

chibi-realism is a Claude Code agent skill that make short narrated 3D videos (Shorts/Reels/X, 16:9 or 9:16, ~20-60 s) starring an expressive big-head "chibi" cartoon character with real materials (real eyeballs, strand hair, subsurface skin, knit/denim fabric) in photoreal worlds (park, stadium, city street, living room, mountain hill station, forest, desk room) with Poly Haven assets, ElevenLabs narration, clean Foley and subtitles, all built by code. Two engines, headless Blender for the best light or three.js in any browser (no install, works from phones and cloud agents, exports MP4 in minutes). Use this whenever someone wants a cartoon-character explainer or story video, "a Pixar/vinyl-toy figure in a real-looking world", a stickman/chibi/mascot animation, a product or tool explainer with a character, a 3D animation with three.js or without Blender, or an animated character in any real place, even if they don't name this skill.

Works with✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Ayushgautam78/chibi-realism/tree/HEAD

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Chibi realism: cartoon character, real world

A chibi character (round head about a third of his height, small clothed body, four-finger hands) rendered like a premium collectible: wet eyes with iris and moving lids, strand-clump hair, skin with pores and subsurface glow, real knit and denim textures. He acts (walks, sits, types, waves, shrugs, nods, gestures) with a face that moves (brows, lids, gaze, mouth shapes with lips/teeth/tongue). The world around him is photoreal: Poly Haven HDRI skies, photo-scanned models and PBR textures, real lighting, depth of field, motion blur. Everything is code, so the agent builds, previews and renders the whole film itself.

The look that works: the character is stylised, everything else is real. Real light falling on a stylised character is what sells it; a stylised world (flat colours, boxy procedural props) makes the whole thing look cheap.

Pick an engine first

Blender (scripts/)Web, three.js (web/)
NeedsBlender 4.2+, Python, ffmpegany modern browser; Python only for the optional local server
Runs ona desktop or laptopalso phones, tablets, Chromebooks, cloud agents with headless Chrome
Frame time (laptop iGPU, 720p)15-35 sabout 0.7 s (photo worlds) to 4.5 s (dense 3D sets), final quality
Lightray-traced GI, the very bestHDRI image light, measured sun, soft shadows, AO, real DOF and motion blur
Worldsbuilt 3D setsphoto worlds (any Poly Haven HDRI: park, stadium, street, rooms) + built 3D sets

Use Blender when it is installed and the user wants the absolute best quality and can wait hours. Use the web engine when Blender is missing (phones, cloud, "no Blender"), when time matters, or for real-place scenes (photo worlds). Same character, same pose and face API, same Z-up coordinates, so films port between them. For the web engine read references/web.md now: it has its own workflow, staging rules and automation API.

Requirements (Blender engine)

  • Blender 4.2+ (tested on 5.3) - scripts/paths.py finds it, or set BLENDER
  • Python 3.10+ with Pillow; ffmpeg on PATH
  • An ElevenLabs API key for narration and Foley (ELEVENLABS_API_KEY in the environment or the project's .env; never commit it). Without a key, skip tts/sfx and supply your own voice/voice.mp3 + sfx/*.mp3.
  • Internet for Poly Haven downloads (free, CC0, no account)

Check an install in seconds (no rendering): blender -b --factory-startup -P <skill>/scripts/selftest.py -- room (or hill_station, street, forest) from a project folder whose assets are downloaded; it prints SELFTEST OK.

Layout

The skill folder holds the library; each video is its own project folder (run every command from there). The web engine lives in <skill>/web/ (studio, engine, serve.py, templates, examples): see references/web.md.

<skill>/scripts/   paths kit rig character room outdoor scene_setup timing  (imported inside Blender)
                   fetch tts sfx stills render_film assemble                (command-line tools)
<skill>/templates/film_outdoor.py     starter film for outdoor scenes
<skill>/examples/claude-code-short/   a complete indoor film: film.py, shots.py, cues.py, screen_ui.py, SCRIPT.md
my-video/          SCRIPT.md  .env  film.py  cues.py  voice/  sfx/  assets/  out/

Run tools as python <skill>/scripts/<tool>.py ... from the project folder.

Workflow

Work in this order and show the user something at every gate. Renders are slow (20-60 s per frame on a laptop), so a mistake found in a still costs seconds and the same mistake found after a full render costs hours.

  1. Script: write SCRIPT.md with a ## Script section (the narration, ~2.6 words per second) and a shot list. Lead with a hook, keep the topic's real angle (don't explain things the audience already knows), and give the character something physical to do in every line. Get the user's approval.
  2. Assets: python fetch.py preset character plus the set: room, hill_station, street or forest. Need something else? python fetch.py search models bench, then python fetch.py model <id>.
  3. Narration: python tts.py [voice_id] [speed] -> voice/voice.mp3 + voice/words.json (word timings). The words drive everything: timing.W("word") is the film time of a word, so actions, cuts, screen events and sounds land exactly on what is being said. Set the frame rate with CHIBI_FPS (24 default; 20 is fine for X).
  4. Film: write film.py in the project: set, character(s), performance, cameras. Start from templates/film_outdoor.py or examples/claude-code-short/film.py. Read references/character.md before posing anyone and references/sets.md before building a world.
  5. Look check: python stills.py 1,60,120 renders low-res stills of chosen frames + a contact sheet. Look at them yourself: framing (faces cut off? camera inside an arm? props blocking the screen?), poses, expressions, exposure. Fix, re-check. Then render a 3-5 s moving test clip of the most important moment and send it to the user for approval before the full render: motion problems (jitter, popping, sliding) only show in motion.
  6. Sound: python sfx.py (built-in Foley library) or python sfx.py name "close Foley, clean ..." 1.5, then write cues.py (see references/sound.md). Every visible action gets its sound.
  7. Render: python render_film.py --pct 67 --name my_short [--autostart]. Resumable and laptop-safe; it assembles the final out/my_short.mp4 (narration + Foley + subtitles, -14 LUFS) when all frames exist. Report progress from the frame count in out/frames; show finished frames when asked.
  8. Deliver: probe the mp4 (duration, size, loudness), look at a contact sheet of the whole video against the subtitles, then hand it over and say plainly what you could not check (e.g. you can't listen to audio).

Things that matter (learned the hard way)

  • One Blender at a time. A second render (even one still) while the main render runs can crash both on a small GPU. During a long render, inspect finished frames with PIL/ffmpeg only. To fix some shots mid-render, patch film.py and delete those frames: the resumable runner redoes missing frames before assembling.
  • Show, then commit. Stills -> short moving clip -> user approval -> full render. Never start a multi-hour render on an unseen change.
  • Frame for the action, not the rest pose. Leaning, waving and sitting move the head by 10-20 cm; aim close-ups at where the face will be. Over-the-shoulder cameras: keep the head out of the screen's sightline.
  • Cuts: hold the last camera key of a shot (CONSTANT interpolation) and set render.motion_blur_position = "START", or motion blur smears across the cut.
  • Odd frame sizes (67 % of 1080 = 723) break H.264; assemble.py scales to even sizes.
  • Screens inside the scene (laptop, phone, TV): animate them as an image sequence (examples/.../screen_ui.py), keep the UI simple and light-themed so it reads at a glance, and frame the device with its surroundings visible.
  • Ask before downloading big asset packs, spending API credits (TTS/SFX) or publishing anything.

References

  • references/character.md - building characters, joint/pose conventions, the face API, a pose library, acting
  • references/sets.md - indoor room, outdoor hill station / street / forest, HDRIs, terrain, scatter, houses, lighting
  • references/camera-and-render.md - cameras, cuts, depth of field, render settings and timings, resumable renders
  • references/sound.md - narration, Foley prompts, cue timing, mixing levels, subtitles
  • references/web.md - the three.js engine: film modules, photo worlds and staging rules, stills, MP4 export, automation

Related Skills