Communitygithub.com

Paperkit studio

Produce a 1080p, 30 fps hand-torn paper-craft documentary: torn edges, paper layers, and a broadcast-shaped cut, rendered as a finished film rather than a style prompt.

What is Paperkit studio?

A finished-film skill for paper documentaries: resolution, frame rate, torn paper, and a cut you can actually deliver.

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/hsw861743-oss/paperkit-studio/tree/HEAD/paperkit-studio

Ask in your favorite AI

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

Documentation

PaperKit Studio — Hand-Torn Paper-Craft Documentary Video Skill

Produce complete, watermark-free 1920×1080 @ 30fps editorial paper-craft documentary films using pure HTML5 Canvas + headless Chrome + FFmpeg, paired with 16:9 (1920×1080) and 4:3 (1600×1200) covers.

Non-Negotiable Production Standards

  1. Resolution & Delivery: Always render 1920×1080, 30fps, H.264 + AAC 44.1kHz stereo, zero watermarks.
  2. Dual Covers Always: Automatically generate BOTH 16:9 (1920×1080) and 4:3 (1600×1200) watermark-free covers on every episode.
  3. Zero Static Dead Air (Beat-Sync Rule): Every scene MUST contain 3–4 crisp spoken beats (~2.5–4.0s each) whose exact local offsets beats[] are passed into the scene renderer. Every beat (b0, b1, b2) MUST launch simultaneous motion (PKP.evalBeatCam, torn-ribbon arrows, rolling counters, callout pins, stamp slams, or rack focus). Never dump all motion into the first 4 seconds and freeze while the narrator keeps talking.
  4. One Scene, One Fresh Visual (No Lazy Reuse): For full episodes (14–16 scenes, ~4–5 min), prepare 3–5 distinct real neural-segmented portraits + 6–10 unique real halftone archival plates (and bespoke 3D paper-sculpture dioramas when image generation is available) plus bespoke per-scene animated props. Never lazily recycle the same 1–2 assets across unrelated scenes.
  5. Audio Polish: Use zh-CN-YunjianNeural (+16%, -1Hz, or user-requested language/voice) mixed via classical_audio.py — velvety Baroque/Classical chamber strings + concert grand piano + ONLY soft cotton-paper brushing SFX (300–1320 Hz). Never add harsh clicks or snaps.
  6. Mandatory Visual & AV Quality Gates: Visually inspect raw cutouts/plates, inspect the full-episode preview sheet and both covers before full render, and verify the finished MP4 with ffprobe + 3 extracted AV clips before delivering.

6-Step Production Workflow

Step 1 — Fact Verification & Beat-Synced Script

  • For recent or real-world events, verify exact dates, figures, and names via live web search before writing the script.
  • Author script.json following script_template.json: 16 scenes × 3 short spoken beats = 48 beats (~4–5 minutes).
  • Synthesize beat-synced narration, audio/timeline.json (with exact beats[] / beatEnds[]), and audio/final_mix.wav:
    python ./scripts/build_audio.py --project <episode_dir> --script <episode_dir>/script.json --mood d_minor_intrigue
    

Step 2 — Asset Pipeline (Portraits, Plates, Newspapers & Optional 2.5D Dioramas)

  • Create an assets_manifest.json specifying portraits (Wikimedia Wikipedia/Commons leads), unique plates, bespoke newspapers, and optional raw 3D paper-sculpture dioramas (generated with strict 3-color #141414 charcoal / #EFE8D8 ivory / #F2B705 mustard-gold palette and ZERO embedded text).
  • Run the cross-platform toolkit:
    python ./scripts/asset_toolkit.py --project <episode_dir> --manifest <episode_dir>/assets_manifest.json
    
  • Visual Gate #1: Inspect EVERY generated portrait cutout (assets/cutouts/*_gold.png), archival plate (assets/textures/plate_*.jpg), and diorama matte (assets/dioramas/*_cut.png). Crop any multi-panel splits, borders, or artifacts before proceeding.

Step 3 — Scene & Dual-Cover Authoring

  • Copy ./engine/paperkit_v35hybrid.js (or ./engine/paperkit_v29pro.js if classic mode is requested), engine.html, and cover.html into <episode_dir>/web/.
  • Author <episode_dir>/web/scenes.js (or split scenes_a.js + scenes_b.js) binding every clause to const [b0, b1, b2] = beats;.
  • Consult paperkit-api.md for all drawing, 3-plane DoF, 2.5D diorama, torn-ribbon arrow, and camera rig primitives.
  • Customize <episode_dir>/web/cover.html with bespoke layouts for both ?mode=16x9 (1920×1080) and ?mode=4x3 (1600×1200), keeping bold headlines, subtitles, and hero art cleanly separated.

Step 4 — Preview Sheet & Cover Inspection

  • Capture late-beat (82% duration) preview frames for all scenes plus both covers:
    python ./scripts/render_engine.py preview --project <episode_dir> --cover-prefix <prefix>
    
  • Visual Gate #2: Visually inspect output/preview_sheet_*.jpg, output/*_cover_16x9.png, and output/*_cover_4x3.png. Fix ANY text overlap, clipped badge, low-contrast label, or unwanted blur on key focal charts, then re-run preview to confirm 100% clean frames.

Step 5 — Multi-Worker 1080p 30fps Full Render

  • Render across 4 parallel headless Chrome workers piping MJPEG directly to FFmpeg H.264 (crf 17) and muxing audio/final_mix.wav:
    python ./scripts/render_engine.py full --project <episode_dir> --out-name <EpisodeName>.mp4 --workers 4
    

Step 6 — Final AV Sync Verification & Delivery

  • Run ffprobe and extract 3 full-scene AV clips (opening, mid climax, finale):
    python ./scripts/render_engine.py verify --project <episode_dir> --out-name <EpisodeName>.mp4
    
  • AV Gate #3: Watch and listen to all 3 extracted clips (_segs/verify_*.mp4) to confirm word-synced animation across every beat, smooth 30fps motion, clean Rack Focus, velvety classical music + soft paper brushing, and zero audio clicks.
  • Deliver clickable links to the final MP4, 16:9 cover, 4:3 cover, and preview sheet.

Related Skills