[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-117411":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":10,"pushedAt":25,"updatedAt":26,"readmeContent":27,"aiSummary":10,"trendingCount":15,"starSnapshotCount":15,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},117411,"papercraft","xikhar\u002Fpapercraft","xikhar","Agent skill to build games, interactive scenes, web pages and animations in a handcrafted pop-up papercraft style","",null,"JavaScript",530,53,1,0,235,301,771,94.7,"MIT License",false,"main",true,[],"2026-11-21 17:37:19","2026-11-23 20:25:16","# papercraft\n\nAn agent skill for building games, interactive scenes, web pages, animations and videos in one handcrafted\n**pop-up papercraft style**, for any subject: printed cardstock pieces with thin cut edges that fold up on hinges from\na printed ground, soft layered shadows coloured by the world, a tilt-shift macro lens looking down into the world,\ncalm hinge motion and soft paper sounds.\n\nIt teaches the method and carries the hard-won numbers from a shipped three.js pop-up game: what makes a frame read as\na photographed paper model (matte paper, every print a small layered paper collage with contrasting accents, a thin\ndark cut edge with a pale highlight on the lit side, soft shadows tinted by the world, a dense world of chunky pieces,\na tilt-shift macro lens), how to build any piece from a set of structure types you can extend (slotted crosses,\nlayered flats, folded boxes and prisms, domes, printed water, and built decks, bridges and stairs for anything walked\non), how paper moves, lives and sounds, how to build a character whose cards never cut into each other, and a\nmeasure-and-critique loop.\n\nYour prompt and your references decide the world: its palette, ground, buildings, creatures and weather. References\nare one way to set the direction: a shot of a paper model can be the look target itself, while photos, sketches or a\nmoodboard give the theme and the designs, which the agent rebuilds in paper. It uses an image generator only when\nyou ask it to, and everything can be made in code. A gallery of five worlds from the source game, each with the\nprompt that made it, shows the range and the quality bar, never content to copy. The agent designs and writes its\nown subject's pieces; the bundled code is plumbing (paper, cards, the layered print, hinges, light, lens, walking,\nlife) plus worked examples from one countryside world.\n\nThe same world renders in any frame: a 16:9 film, a 9:16 Reel, a square or 4:5 post, a 4K master, an ultrawide still\nor a phone page. The lens keeps to the frame's short side, a vertical frame comes closer and keeps the subject clear\nof the platform's captions, and prints and blur follow the resolution. `capture.py` renders stills and MP4 clips at\nthe standard sizes (`--size reel`, `square`, `4k`, ...).\n\n## Install\n\n```bash\nnpx skills add xikhar\u002Fpapercraft\n```\n\nOr copy `skills\u002Fpapercraft\u002F` into your agent's skills folder. Works with any agent that supports\n[Agent Skills](https:\u002F\u002Fagentskills.io) (Claude Code, Codex, Cursor, Gemini CLI, OpenCode, ...). Then just ask for\nsomething paper:\n\n- \"make our bakery landing page feel like a pop-up storybook\"\n- \"a small three.js scene of a harbour town that folds up out of the ground\"\n- \"a dome on Mars as a paper diorama, with a rover that pops up\"\n- \"a 20-second paper diorama animation of a city waking up, rendered to mp4\"\n- \"a night market on stilts over a lagoon, in the colours of the photos I attached\"\n- \"a forest shrine from this moodboard; generate a few concept frames first and let me pick one\"\n- \"an 8-second vertical Reel of a paper lighthouse town waking up at dawn\"\n\n## What is inside\n\n```\nskills\u002Fpapercraft\u002F\n|-- SKILL.md                 the material model, direction from references, the paper spec, routing, workflow, checks\n|-- references\u002F              loaded on demand: gallery, structures (the structure types), look, palettes,\n|                            mechanisms, motion, worlds, procedural art, formats (sizes, safe areas, export),\n|                            image-gen (optional references), sound, paper UI, three.js, 2D web, engines, process\n|-- assets\u002F\n|   |-- lib\u002F                 the plumbing, import as is:\n|   |                        paperkit-2d.js (paper sheets, cut outlines, the layered print, drawing-to-cut, 2D decks)\n|   |                        paperkit-3d.js (paper material, cards with thickness, hinges, the cross family,\n|   |                        fan pairs, box folds, prism folds on any plan,\n|   |                        platforms, PCSS soft shadows, macro lens)\n|   |                        paper-motion.js (latched paper spring, wind sway, fixed clock, walk field)\n|   |                        paper-sound.js (procedural paper foley, offline render)\n|   |                        paper-life.js (weather, flyers, smoke, cloud shadows, creatures with behaviours)\n|   |-- examples\u002F            worked examples to read, not parts to assemble: countryside.js (one world's pieces and\n|   |                        prints), built-ground.js (a bridge, stairs on stringers, a ramp, a masonry terrace, a\n|   |                        cottage)\n|   |-- templates\u002F           popup-3d (three.js), popup-2d (Canvas 2D): the harness, with an example scene to replace;\n|   |                        popup-3d\u002Fstructures.html: every structure type in plain placeholders\n|   |-- gallery\u002F             five worlds from the source game (forest, desert, snow, spring, autumn): the quality bar\n|   |                        and the range, each paired with its prompt in references\u002Fgallery.md\n|   `-- lights.json          light presets by light condition (key, fill, shadow colour, haze)\n`-- scripts\u002F                 capture.py (headless frames and MP4 clips at any format size, walks, build report),\n                             measure.py (look metrics),\n                             ab_sheet.py (blind A\u002FB sheets), paper_textures.py\n```\n\nThe templates are a fixed harness with a replaceable look: serve `skills\u002Fpapercraft\u002Fassets\u002F` over http\n(`npx serve skills\u002Fpapercraft\u002Fassets` or `python -m http.server -d skills\u002Fpapercraft\u002Fassets 8000`) and open\n`\u002Ftemplates\u002Fpopup-3d\u002F` or `\u002Ftemplates\u002Fpopup-2d\u002F` (`\u002Ftemplates\u002Fpopup-3d\u002Fstructures.html` shows every structure type).\nBoth walk the hero with WASD \u002F arrows (`?still` for the fixed overview). In your own project, copy `assets\u002Flib\u002F` and\nthe template's harness (`harness.js` for 3D, `harness-2d.js` for 2D), write your own `scene.js`, and point\n`\"papercraft\u002F\"` in the page's import map at the folder that holds `lib\u002F`. Add `?size=1080x1920` (or `?aspect=9:16`) to\nsee another format. For review frames, `python skills\u002Fpapercraft\u002Fscripts\u002Fcapture.py \u003Cproject folder> overview\n\"walk=x,z;x,z\"` renders them headless (Playwright) and reports the build time, the slowest prints, whether the hero's\ncards cut into each other and any page error; `--size reel \"clip:video=8,30\"` renders a vertical clip and encodes the\nMP4.\n\n## License\n\nMIT\n",2,"2026-11-24 04:55:37","CREATED_QUERY"]