papercraft

An agent skill for building games, scenes, web pages, animations and videos in one handcrafted pop-up papercraft style, with reusable three.js and Canvas 2D plumbing, paper motion and sound.

  • 16 GitHub stars
  • ⚖️ MIT

Last verified: write-up checked

npx skills add xikhar/papercraft
papercraft — skill preview

What it is

papercraft is a skill that teaches an agent one visual style well: a pop-up paper world, with printed cardstock pieces that fold up on hinges from a printed ground. The README spells out what makes a frame read as a photographed paper model: matte paper, each print a small layered collage with contrasting accents, a thin dark cut edge with a pale highlight on the lit side, soft shadows tinted by the world and a tilt-shift macro lens looking down into the scene. It carries hard numbers from a shipped three.js pop-up game and explains how to construct crosses, box folds, layered flats, open bridges, decks on posts and stairs on stringers, and how paper should move and sound. The bundled code is plumbing for paper, cards, the layered print, hinges, light and lens, plus two templates, one in three.js and one in Canvas 2D, and scripts that measure the look and build blind A/B sheets. The agent designs the pieces for your own subject, and the README says image generation is optional. We read the README and did not run the templates.

Who it's for

  • Developers and creative coders who want a distinctive paper-diorama look for a scene, page or short video
  • Game makers prototyping a pop-up storybook world in three.js or Canvas 2D

Requirements

Requirements

  • An agent that supports Agent Skills (Claude Code, Codex, Cursor, Gemini CLI, OpenCode)
  • Python for the measure and A/B scripts
  • A local web server such as npx serve or python -m http.server to open the templates

Setup

  1. Step 1

    bash
    npx skills add xikhar/papercraft
  2. Step 2

    bash
    Or copy skills/papercraft/ into your agent's skills folder
  3. Step 3

    bash
    Serve skills/papercraft/assets over http and open /templates/popup-3d/ or /templates/popup-2d/

مهارة وكيل لبناء الألعاب والمشاهد والصفحات والرسوم المتحركة والفيديو بأسلوب موحد من الورق المطوي المجسم، مع شيفرة three.js وCanvas 2D قابلة لإعادة الاستخدام وحركة وصوت للورق.

Examples

Landing page

Prompt
prompt
make our bakery landing page feel like a pop-up storybook

Expected output: One of the README's example requests for a web page.

Space scene

Prompt
prompt
a dome on Mars as a paper diorama, with a rover that pops up

Expected output: A subject far from the bundled countryside example, to show the skill is not tied to one world.

Animation

Prompt
prompt
a 20-second paper diorama animation of a city waking up, rendered to mp4

Expected output: Covers the video output path.

Open the 3D template

sh
sh
npx serve skills/papercraft/assets

What it does: Then open /templates/popup-3d/ and walk the hero with WASD or the arrow keys; add ?still for the fixed overview.

Pros & cons

Pros

  • Pro:Gives a consistent, specific look instead of a generic style prompt: matte paper, cut edges, soft tinted shadows, tilt-shift lens
  • Pro:Bundled plumbing covers paper, hinges, PCSS soft shadows, motion and procedural paper sounds
  • Pro:Image generation is optional; everything can be built in code
  • Pro:Includes a measure-and-critique loop and blind A/B sheet scripts

Cons

  • Con:A very opinionated single style, so it suits some projects and not others
  • Con:The worked examples come from one countryside world
  • Con:Brand new (created 2026-11-21) with 14 stars