Skip to content
Back to skills

Overlay

ASecurity

Make vertical (9:16) animated story Shorts in the "blok kafa" voxel style — cube-headed characters with 8×8 pixel faces, square limbs and dark box outlines in a block world (grass/dirt/plank/cobble blocks, cube trees, square sun, flat clouds), rendered in three.js frame by frame. Fork of claude-3d-animated-shorts (round egg-head cast) with a blocky cast mode. Use when the user asks for a block / voxel / "Minecraft-like" / "blok kafa" short.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
toolspythongobashreactnodeawsapi

Works with

  • cursor
  • cli
  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 6 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add tugayozayasan/claude-ai-shorts-video-generator --skill overlay --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Overlay?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Overlay
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tugayozayasan-overlay/badge)](https://www.skillsdirectory.com/skills/tugayozayasan-overlay)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: blok-kafa-stili
description: Make vertical (9:16) animated story Shorts in the "blok kafa" voxel style — cube-headed characters with 8×8 pixel faces, square limbs and dark box outlines in a block world (grass/dirt/plank/cobble blocks, cube trees, square sun, flat clouds), rendered in three.js frame by frame. Fork of claude-3d-animated-shorts (round egg-head cast) with a blocky cast mode. Use when the user asks for a block / voxel / "Minecraft-like" / "blok kafa" short.
---

> Fork of thuann-vn/claude-3d-animated-shorts (MIT). The round cast is still there; this skill adds the **blok kafa** voxel mode below. Never use another game's name, logo, skins or characters in a video: the look is generic voxel art.

## Blok kafa (voxel) mode — read this first
- **Install:** clone thuann-vn/claude-3d-animated-shorts, copy the panel's `styles/blok-kafa/overlay/` over it, `cd engine && npm install`, `bash scripts/fetch-blok-assets.sh` (the panel Setup page does all of this).
- **Engine:** `engine/blocky.js` (cast) + `engine/blok.js` (voxel world + demo shots) + `engine/blok.html`. Render: `PAGE=blok.html node render.cjs out/x.mp4 1080 1920 30` (append seconds for stills only). Review the cast: `PAGE=blok.html XQ="&lineup=1&mood=happy" node render.cjs lu/x.mp4 1080 960 30 1`.
- **Cast:** `SR.build({ blocky: true, skin, hair, hairStyle, shirt, shirt2, sleeves, pants, shoes, details, beard, hatCol, nur }, pos, ry)`.
  - `hairStyle`: `short | long | bald | cap | turban | hijab`. `details`: `belt, tie, vest, buttons, stripes, robe, apron` (+ `tieCol, vestCol, beltCol, robeCol, apronCol`). `sleeves: 'short'` shows forearms.
  - `nur: true` → faceless glowing head with a warm point light (prophets / companions per the house rules; never draw a face for them).
  - Faces: `SR.blockMood(c, mood)` with `calm | happy | wide | sad | angry | smug | talk | sleep`. Swap `talk`/`calm` on spoken words for lip flaps.
  - After posing every frame (`SR.clipAt`, `SR.pose`, mixer) call `SR.updateLimbs(c)`: the arms hang from shoulder pivots on the torso and copy the arm bones' rotation.
  - Clips on the Xbot rig: `idle, walk, run, agree, headShake, sad_pose, sneak_pose`.
- **World (blok.js):** 1 m blocks, ground top at y = 0, `hgt(x,z)` gives the local ground height (keep the action area flat: hills start 22 m from (0,-8)). Add blocks with `put(kind, x, y, z)` before the InstancedMesh build; kinds: grass, dirt, stone, cobble, plank, log, leaves, glass, water, sand. `tree(x, z, h)` grows a cube tree. Textures are 16×16 canvas pixel art with nearest filtering — keep every new texture pixel-art (no smooth gradients).
- **Look:** sky `#8ec5ff`, fog 28–70 m, warm sun + cool hemisphere, saturation 1.18, square emissive sun, flat cube clouds drifting. Character head 0.44 m (chibi), body ~2 blocks tall.
- **Shots:** same rules as the egg-head style — every shot moves, 2–3.5 s, low hero angle, whip between reactions, push-in on the punchline. Captions: one word/short phrase, Anton, white with a dark block shadow at 72 % height.
- **QA:** cast is never inside terrain (camera too); feet on the ground (`place()` uses `hgt`); arms touch the torso; outline visible; no texture looks smooth/blurred.


# Claude 3D Animated Shorts

The workflow comes from mromidev/claude-animated-shorts (see `upstream-2d/SKILL-2d.md`): topic, then script, then voice, then shot plan, then stills, then renders. Everything here runs in **true 3D**. Characters are rigged models built by `engine/stickrig.js`, not billboards. The look and story formula follow the RicksClips YouTube channel.

## 1. Story (RicksClips formula)
Story-first explainers did 9–33 M views on the channel. Pure question-hook explainers got 0.1–0.3 M.
1. State an odd act as a fact in line 1. Show the consequence in the first 3 s.
2. Give context: why they were there.
3. A doubter mocks it with one funny quoted line.
4. The hero replies, short and stubborn.
5. Early evidence favours the doubters. Time ticks.
6. The disaster or turn hits the doubter.
7. The science in one line with a real number, then one everyday analogy.
8. Cut the last line mid-sentence ("… then…") so it loops back into line 1.

Target 35–45 s, about 4 words per second. Skits can be 10 s: setup, mistake, reaction.

## 2. Characters (`engine/stickrig.js`, options on `SR.build({...})`)
These values were approved line by line against reference frames.
- **Head:** `headCol '#ffffff'`, `flatHead: true` (flat fill, a soft cel shadow, no gloss), `headShape 'rround'` (round, slightly wide), `headR 0.3`. Every character uses the same head size. Differences come from hats and clothes.
- **Outline:** `inkPx 4.5` is measured in screen pixels on a 1000-px-tall frame, so it looks the same at any zoom. The colour is dark brown `#2a1612`, never pure black. Front details snap onto the body surface so they never float when seen side-on.
- **Face:** small black oval eyes under a heavy flat lid, set close together and high, just under the hat. The mouth is a tiny frown. No nose, no cheeks. All moods are drawn as canvas decals in `FACES`.
- **Body:** `roundBottom: true`, a pear that is wider at the bottom, `bodyW 0.82`. Clothes are flat colours (`flatCloth: true`) with `pattern: [kind, colour2]`. Kinds are stripes, hstripes, pinstripe, plaid, dots, zigzag and vest.
- **Outfits** (as `details`): `hoodie` (hood ring, kangaroo pocket that wraps the belly, drawstrings), `vest` pattern with `tie`, `vestBtn` and `hanky`, `polo` (collar, placket, logo, short sleeves), plus `buttons`, `belt`, `collar`, `tie`, `bow`.
- **Limbs:** `noodle: true` makes each arm and leg one smooth curved tube through the joints. Use `limbK 0.6` (thin), dark `#3a2418` arms, `#2b2230` legs, and `mitten: true` for white mittens with a thumb and outline. Shoes are small and dark.
- **Hats:** `cap` (`capBack` wears it backwards, brim hidden), `nonla` (rides high so the head never pokes through), `boonie`, `beret`, `pith`.

Review the cast on `viewer.html` before any render. You can orbit, zoom, change mood and pose, and send OK/fix notes.

## 3. Sets and look
- **Office or home** (`?viewer=1[&set=home]`): walls, floor, windows with sun shafts and a floor patch, a ceiling and lights. Furniture comes from Kenney and KayKit (CC0) through `put(kit, name, x, z, ry, {k, y})`. One scale per kit keeps proportions. Props use real PBR materials with no ink, so the world reads as lit 3D and only the people are flat.
- **Lighting** was measured against 12 reference Shorts (average luma about 112 of 255):
  - exposure 0.42, saturation 1.2, contrast 1.22, warm 0.07, vignette 0.55;
  - warm sun `#ffd29a` through the windows, cool blue hemisphere fill;
  - `RoomEnvironment` at 0.55, n8ao ambient occlusion.
  - Use `&light=bright` for the old bright look.
- **Outdoor rail world** (`world.js`): track, telegraph poles, a day or dusk sky, a train. `?chase=1` adds a desert recolour, mesas, saguaros, a steam train and galloping horses (test only).
- **Avoid:** fast physical action such as riding, fighting, precise hand grips, or animals as leads. Keep it to 2–4 people in one place, around one object or phenomenon.

## 4. Shots
Write each shot as `shot(t0, (t) => { …pose people…; look(camPos, target, fov); })`.
- Every shot moves a little: push in, pan or rise.
- Use 2–3.5 s shots. Over-the-shoulder inserts carry screen content (canvas textures).
- Coworkers react with `face(c, 'wide')`, a head turn (`yawTo`) and "!" bubbles.
- People stand at standing desks: chairs are hidden in skits.
- Long pieces such as a tie lean with the belly.

### Director's shot plan (used in the skit)
Never keep one framing for long. Every shot gets a size, an angle and a motivated move:
1. **Establish:** crane down from a high corner, 24–28 mm. Show where everyone sits.
2. **Hero:** low angle, 38 mm, slow push-in, shallow DOF.
3. **OTS insert:** shoulder in the foreground, the screen sharp, the cursor creeping.
4. **ECU + snap-zoom** on the action (mitten clicks the mouse).
5. **Whip pan** between reactions: hold, a 0.28 s whip with a slight roll, hold.
6. **Dolly-zoom** (vertigo) with a dutch tilt on the "oh no". The camera pulls back while the fov narrows so the face stays the same size.

Set DOF per shot with `post.bokeh.uniforms.focus/aperture`. Check stills at the start, middle and end of each move.

## 5. Voice, captions, render
```bash
cd <work>; node tools/tts.mjs                # ElevenLabs: voice_raw.mp3 + timing_raw.json (ELEVENLABS_API_KEY)
python3 tools/fit.py --target 40             # tempo ≤ ×1.3 + pause before the end line (long videos)
CAP_Y=0.8 python3 tools/captions.py          # word-by-word captions → cap/overlay.mov (move them off screen UI)
XQ="&viewer=1&skit=1" node engine/render.cjs out/video.mp4 1080 1920 30
ffmpeg -i out/video.mp4 -i cap/overlay.mov -i voice.wav … overlay + amix + loudnorm -14
```
`render.cjs out.mp4 W H fps t1 t2 …` writes stills only. Look at them before every full render.

## 6. QA checklist
- [ ] Heads are the same size and the outline is visible at the farthest shot.
- [ ] Nothing floats: buttons, ties, pockets and hats seen from the side.
- [ ] No hat clips through a head. Mittens sit on the wrists.
- [ ] Frame luma is about 100–130. The heads are the brightest thing in frame.
- [ ] Captions never cover screen UI or faces.
- [ ] Every voice line has a matching action on screen.

Files in this skill

  • SKILL.md9.2 KB
  • engine/blocky.js13.9 KB
  • engine/blok.html755 B
  • engine/blok.js15.1 KB
  • engine/stickrig.js62.9 KB
  • scripts/fetch-blok-assets.sh457 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.