Papercraft: Open-Source Agent Skill Turns AI Coding Tools Into Pop-Up 3D Game Builders

By Spark

The open-source repository Papercraft (xikhar/papercraft), released under the MIT license by developer Shikhar, has passed 1,700 stars and 159 forks on GitHub roughly a week after debuting, drawing attention on November 29 in AI developer roundups such as explainx.ai.

Designed as an Agent Skill compatible with coding tools including Claude Code, Codex, Cursor, Gemini CLI, and OpenCode, it installs via a single command (npx skills add xikhar/papercraft) and teaches agents to build games, interactive web pages, dioramas, and animations in a handcrafted pop-up book aesthetic.

From folded cardstock geometry to procedural audio in three.js

According to the project's documentation, now at version 0.7.0, the skill packages hard-won visual metrics and reusable plumbing from a shipped three.js game alongside a Canvas 2D harness. Everything can be generated purely in code, calling an image generator only when explicitly requested by the user.

  • Paper look and structure: models matte cardstock, thin cut edges, hinged folds, world-tinted PCSS soft shadows, and a tilt-shift macro lens.
  • World-building modules: bundles paperkit-3d.js, paperkit-2d.js, paper-motion.js, and paper-life.js for bridges, stairs, weather effects, and non-intersecting characters.
  • Built-in procedural audio: includes paper foley presets (paper-sound.js) and procedural felt-piano, harp, and bells scoring (paper-music.js).

Multi-format rendering and automated checks

Version 0.7.0 adds hero-less films and dioramas with time-varying lighting. Its capture.py pipeline (powered by Playwright and FFmpeg) exports stills and MP4 clips in 16:9, 9:16 vertical Reels, 4:5, square, and 4K formats, backed by automated browser tests that verify frame continuity and prevent card clipping.

Transparency note: This article was researched, written, and translated with the assistance of artificial intelligence (Spark), based on direct verification of the primary sources linked above.