Agent skill

Threejs Primitive Reconstructor

by jasonkneen in jasonkneen/tiny-world-builder

create robust, browser-runnable three.js primitive reconstructions from static low-poly, voxel, isometric, or stylized game-art reference images.

AGPL-3.0Auto-check passedGame Development

Install Threejs Primitive Reconstructor

skills CLI
$ npx skills add jasonkneen/tiny-world-builder --skill threejs-primitive-reconstructor -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jasonkneen/tiny-world-builder threejs-primitive-reconstructor --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jasonkneen/tiny-world-builder.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/threejs-primitive-reconstructor .claude/skills/threejs-primitive-reconstructor && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
threejs-primitive-reconstructor
GitHub stars
1.6k
Token cost
~1.1k tokens
SKILL.md length
543 words
Files
5 (incl. scripts, references, assets)
Skills in repo
29
Repo updated
First seen
Licence
AGPL-3.0

At a glance

create robust, browser-runnable three.js primitive reconstructions from static low-poly, voxel, isometric, or stylized game-art reference images.

  • Works in 8 steps: Inspect the reference image visually… → Produce a short analysis inventory in… → Generate one plain .html file, not… → …
  • The user asks to turn an image
  • SKILL.md covers Core workflow, Required analysis inventory, Coding rules and Reference and template files, plus 2 more sections
  • Runs Python scripts from its folder; calls python3

What it does

Threejs Primitive Reconstructor is an agent skill from jasonkneen/tiny-world-builder. create robust, browser-runnable three.js primitive reconstructions from static low-poly, voxel, isometric, or stylized game-art reference images. use when the user asks to turn an image or prompt into a three.js/html asset, generate a primitive-only scene, debug non-rendering three.js output, or produce a reusable prompt/template for low-poly three.js reconstruction.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files, including scripts, reference files and assets (for example `agents/openai.yaml`, `references/reconstruction-prompt.md` and `scripts/write_scene_from_template.py`).

It sits in Game Development, covering 3D graphics and WebGL. It works with Three.js. The licence is AGPL-3.0.

When your agent uses it

  • The user asks to turn an image
  • Prompt into a three.js/html asset
  • Generate a primitive-only scene
  • Debug non-rendering three.js output

Example prompts

  • “/threejs-primitive-reconstructor”

Requirements

  • Python 3

Workflow steps

8 steps, taken from the first numbered list in SKILL.md.

  1. Inspect the reference image visually before coding.
  2. Produce a short analysis inventory in the response and include the same inventory as a comment block at the top of the script.
  3. Generate one plain .html file, not React, JSX, iframe, or srcDoc.
  4. Use only primitive geometry: BoxGeometry, CylinderGeometry, ConeGeometry, SphereGeometry, Group, and MeshStandardMaterial.
  5. Use the import-map loading pattern from assets/threejs-scene-template.html.
  6. Keep objects aligned to integer or half-integer tile coordinates when reconstructing grid-based scenes.
  7. Add soft shadows, matte materials, and an immediate camera view where the asset is visible without user adjustment.
  8. When the user reports a loading or rendering error, first replace CDN/import patterns and wrappers with the robust plain HTML template in…

What it can do on your machine

Read from SKILL.md and the folder at commit a2a1129. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Threejs Primitive Reconstructor loads about 1.1k tokens when it runs, and up to ~2.3k if it reads all its reference files. Until then it costs about 100 tokens; SKILL.md has 543 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~100
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from jasonkneen/tiny-world-builder at commit a2a1129, republished under its AGPL-3.0 licence (© jasonkneen). 543 words, ~1,136 tokens.

Download SKILL.mdSave it as .claude/skills/threejs-primitive-reconstructor/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
threejs-primitive-reconstructor
description
create robust, browser-runnable three.js primitive reconstructions from static low-poly, voxel, isometric, or stylized game-art reference images. use when the user asks to turn an image or prompt into a three.js/html asset, generate a primitive-only scene, debug non-rendering three.js output, or produce a reusable prompt/template for low-poly three.js reconstruction.

Three.js Primitive Reconstructor

Core workflow

Use this skill to generate a reliable single-file Three.js HTML scene from a low-poly, voxel, isometric, or stylized 3D reference image.

  1. Inspect the reference image visually before coding.
  2. Produce a short analysis inventory in the response and include the same inventory as a comment block at the top of the script.
  3. Generate one plain .html file, not React, JSX, iframe, or srcDoc.
  4. Use only primitive geometry: BoxGeometry, CylinderGeometry, ConeGeometry, SphereGeometry, Group, and MeshStandardMaterial.
  5. Use the import-map loading pattern from assets/threejs-scene-template.html.
  6. Keep objects aligned to integer or half-integer tile coordinates when reconstructing grid-based scenes.
  7. Add soft shadows, matte materials, and an immediate camera view where the asset is visible without user adjustment.
  8. When the user reports a loading or rendering error, first replace CDN/import patterns and wrappers with the robust plain HTML template in assets/threejs-scene-template.html.

Required analysis inventory

Before the code, summarize:

  1. Camera and framing: projection feel, camera type, azimuth/elevation, crop/centering.
  2. Palette: 8-15 hex colors visible in the reference.
  3. Ground/podium: grid size, tile size, base thickness, grass variation, water/path positions.
  4. Structures: type, grid position, footprint, height, wall/roof colors, distinguishing features.
  5. Nature: trees, bushes, flowers, rocks, grass tufts, size variation.
  6. Farm/details: crops, stairs, doors, windows, fence rails, small props.
  7. Sky/atmosphere: sky color, fog, clouds/smoke.
  8. Animation: optional rotation, drifting clouds, rising smoke, water shimmer.

Coding rules

  • Use one self-contained .html file.
  • Use an import map with unpkg.com exactly as shown in assets/threejs-scene-template.html.
  • Import with import * as THREE from 'three' and OrbitControls from three/addons/controls/OrbitControls.js.
  • Do not use esm.sh, cdn.jsdelivr, relative Three.js module paths, React, JSX, iframe, or srcDoc.
  • Do not use external assets, textures, GLTF, OBJ, FBX, SVG, or postprocessing.
  • Use MeshStandardMaterial throughout; default roughness: 1 and metalness: 0.
  • Set renderer.outputColorSpace = THREE.SRGBColorSpace.
  • Enable renderer.shadowMap.enabled = true and THREE.PCFSoftShadowMap.
  • Add a resize listener.
  • Append renderer.domElement directly to document.body.
  • Keep comments sentence case.
  • Keep the generated file under roughly 500 lines unless the user asks for more detail.
Show full SKILL.md (211 more words)Show less

Reference and template files

  • Read references/reconstruction-prompt.md when the user wants the reusable prompt or prompt wording.
  • Use assets/threejs-scene-template.html as the starting point for generated HTML.
  • Use scripts/write_scene_from_template.py only when a quick local template copy is useful; customize the copied file afterward.

Debugging non-rendering output

If a generated scene does not render:

  1. Remove React, JSX, iframe, and srcDoc wrappers.
  2. Replace module imports with the import-map pattern in the template.
  3. Confirm the file is served through a local server, for example python3 -m http.server 8000, then opened at http://localhost:8000/scene.html.
  4. Confirm renderer.domElement is appended to document.body.
  5. Confirm the camera points at the asset and the object is near the origin.
  6. Simplify animation until a static render works.

Cottage reference shortcut

For the cropped cottage reference, reconstruct:

  • A 5 by 5 floating grass tile island with a brown dirt base.
  • A front-left water strip slightly below grass level.
  • One warm yellow cottage centered slightly back-left.
  • A bright blue hipped roof with dark blue ridge/caps.
  • A tall chimney with four rising smoke puffs.
  • A brown front door, cyan windows with dark frames, and exterior stone stairs on the right.
  • A wooden fence around the front/right/back of the yard.
  • Grass tufts, small white/yellow flowers, sky-blue background, soft shadows, and matte materials.

© jasonkneen, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (scripts, references, assets) in .codex/skills/threejs-primitive-reconstructor of jasonkneen/tiny-world-builder.

  • SKILL.md
  • agents/openai.yaml
  • assets/threejs-scene-template.html
  • references/reconstruction-prompt.md
  • scripts/write_scene_from_template.py

Open the folder on GitHubat commit a2a1129

Compare with similar skills

Threejs Primitive Reconstructor next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Threejs Primitive Reconstructor compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Threejs Primitive Reconstructor this skilljasonkneen/tiny-world-builder1.6k—~1.1kAutomated safety check: PassAGPL-3.0
Image to Three.js Modelimg2threejs/img2threejs18k1 repos~8.2kAutomated safety check: PassApache-2.0
Web CloneJane-xiaoer/claude-skill-web-clone1k1 repos~2.7kAutomated safety check: PassMIT
Threejs Game Directormajidmanzarpour/threejs-game-skills2.5k—~2.2kAutomated safety check: PassMIT
Threejs Gameplay Systemsvalkor-ai/loom1.2k1 repos~1.4kAutomated safety check: PassApache-2.0
Threejs World Generationcalesthio/OpenMontage66k—~2kAutomated safety check: PassAGPL-3.0

Similar skills

  • Image to Three.js Model

    img2threejs/img2threejs

    Rebuilds the object in a reference image as a procedural, animation-ready Three.js model written entirely in code, using staged sculpting with quality checks.

    18k GitHub starsUsed in 1 repo~8.2k tokens
    Game DevelopmentAuto-check passed
  • Web Clone

    Jane-xiaoer/claude-skill-web-clone

    网站复刻 / 克隆方法论。USE WHEN 用户说 复刻网站、克隆网站、clone website、抄个站、仿站、 照着这个站做一个、reproduce site、还原某个网页效果、把这个站搬下来改成我的、 复刻某个交互/WebGL/Canvas/Three.js 效果。提供「先拿真源码 → 判路径 → 逆向拆解 → 搭工程 → 替换内容」的可移植决策树,覆盖静态站 /…

    1k GitHub starsUsed in 1 repo~2.7k tokens
    Game DevelopmentAuto-check passed
  • Threejs Game Director

    majidmanzarpour/threejs-game-skills

    Entrypoint for building, upgrading, and finishing Three.js browser games.

    2.5k GitHub stars~2.2k tokensUpdated 11 days ago
    Game DevelopmentAuto-check passed
  • Build and iterate playable Three.js game systems: starter scaffold, architecture, design briefs, core loops, level and encounter design, entities, input, camera, collision and physics, scoring…

    1.2k GitHub starsUsed in 1 repo~1.4k tokens
    Game DevelopmentAuto-check passed
  • Threejs World Generation

    calesthio/OpenMontage

    Build deterministic, editable, free-viewpoint Three.js worlds from text or structured briefs.

    66k GitHub stars~2k tokensUpdated 6 days ago
    Game DevelopmentAuto-check passed
  • 3Dviz Pro Max Scene Builder

    viettranx/3dviz-pro-max

    Guides building an expressive 3D scene in Three.js or Blender by reasoning through intent, object construction and scientific grounding before using a catalog of recipes and kits.

    697 GitHub stars~2.8k tokensUpdated 29 days ago
    Game DevelopmentAuto-check passed

More from jasonkneen/tiny-world-builder

All 29 skills in this repo
  • Lightweight 3D Effects

    jasonkneen/tiny-world-builder

    Lightweight 3D effects for decorative elements and micro-interactions using Zdog, Vanta.js, and Vanilla-Tilt.js.

    1.6k GitHub starsUsed in 1 repo~5.7k tokens
    Auto-check passed
  • Poly Pizza API

    jasonkneen/tiny-world-builder

    A skill your agent uses whenever an LLM agent needs to search, browse, or download 3D models from Poly Pizza (poly.pizza) using their REST API.

    1.6k GitHub stars~1.9k tokensUpdated yesterday
    Auto-check passed
  • Tinyworld Block Button Style

    jasonkneen/tiny-world-builder

    A skill your agent uses when styling any tool/block button, palette tile, icon chip, or new clickable square in Tiny World Builder.

    1.6k GitHub stars~2k tokensUpdated yesterday
    Auto-check passed
  • Tinyworld Ghost World Gen

    jasonkneen/tiny-world-builder

    A skill your agent uses when changing ghost board generation, path / road / river continuity, deterministic regen, edge connections, or anything that runs inside makeGhostWorld in…

    1.6k GitHub stars~1.6k tokensUpdated yesterday
    Auto-check passed
  • Tinyworld Island And Planes

    jasonkneen/tiny-world-builder

    A skill your agent uses when changing the home island layout, edge dressing, undersides, autoincentive sponsor banner (now a top-left logo-adjacent DOM banner), plane/crop-duster flight paths…

    1.6k GitHub stars~4.7k tokensUpdated yesterday
    Auto-check passed
  • 3D Modeling

    jasonkneen/tiny-world-builder

    Expert 3D modeling specialist with deep knowledge of topology, UV mapping, game-ready and film-ready pipelines, DCC tool workflows (Blender, Maya, ZBrush, 3ds Max, Houdini), retopology, LOD systems…

    1.6k GitHub starsUsed in 1 repo~1k tokens
    Auto-check passed

Works with

Questions about Threejs Primitive Reconstructor

What does Threejs Primitive Reconstructor do?

create robust, browser-runnable three.js primitive reconstructions from static low-poly, voxel, isometric, or stylized game-art reference images. Threejs Primitive Reconstructor is an agent skill from jasonkneen/tiny-world-builder.js primitive reconstructions from static low-poly, voxel, isometric, or stylized game-art reference images.

When should I use Threejs Primitive Reconstructor?

Threejs Primitive Reconstructor fits situations like: the user asks to turn an image; prompt into a three.js/html asset; generate a primitive-only scene; debug non-rendering three.js output.

How do I install Threejs Primitive Reconstructor in Claude Code?

Run `npx skills add jasonkneen/tiny-world-builder --skill threejs-primitive-reconstructor -a claude-code`. Or copy the skill folder (.codex/skills/threejs-primitive-reconstructor in jasonkneen/tiny-world-builder) into .claude/skills/threejs-primitive-reconstructor in your project. Claude Code loads it when a task matches its description.

How do I install Threejs Primitive Reconstructor in Codex?

Run `npx skills add jasonkneen/tiny-world-builder --skill threejs-primitive-reconstructor -a codex`. Or copy the skill folder (.codex/skills/threejs-primitive-reconstructor in jasonkneen/tiny-world-builder) into .agents/skills/threejs-primitive-reconstructor in your project. Codex loads it when a task matches its description.

Can I use Threejs Primitive Reconstructor in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jasonkneen/tiny-world-builder --skill threejs-primitive-reconstructor -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/threejs-primitive-reconstructor, .gemini/skills/threejs-primitive-reconstructor, .github/skills/threejs-primitive-reconstructor and .opencode/skills/threejs-primitive-reconstructor in your project.

What does Threejs Primitive Reconstructor need to run?

Going by SKILL.md and its folder, Threejs Primitive Reconstructor needs Python for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: Python 3.

Does Threejs Primitive Reconstructor access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Threejs Primitive Reconstructor safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Threejs Primitive Reconstructor use?

Threejs Primitive Reconstructor is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Threejs Primitive Reconstructor use?

About 1.1k tokens (SKILL.md is roughly 4.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.2k tokens, read only when the agent opens those files.

What are the alternatives to Threejs Primitive Reconstructor?

Skills that share tags, products or a category with Threejs Primitive Reconstructor: Image to Three.js Model (img2threejs/img2threejs, 18k stars), Web Clone (Jane-xiaoer/claude-skill-web-clone, 1k stars), Threejs Game Director (majidmanzarpour/threejs-game-skills, 2.5k stars) and Threejs Gameplay Systems (valkor-ai/loom, 1.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Threejs Primitive Reconstructor?

jasonkneen (a GitHub user) maintains it in jasonkneen/tiny-world-builder, which has 1,590 GitHub stars. The repository holds 29 skills in this directory. The repository was last updated on October 9, 2026.

Source: jasonkneen/tiny-world-builder on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.