Voxel Worlds logo

Voxel Worlds

Community
0xBakeer
voxel-worlds

A Three.js voxel world - an island with a pagoda, gardens, lakes, bridges, creatures with state machines, a day-night cycle, ambient sound, quality presets - built one feature at a time with a render after each, a to-do file and the frame rate held at its baseline.

Overview

Publisher0xBakeer
RepositoryTandemLLM
Skill namevoxel-worlds
Stars
75
Forks
14
Bundled files
11
LicenseAGPL-3.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 11 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by 0xBakeer on GitHub. Read the source before you install it.

Installation

Install the Voxel Worlds AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/0xBakeer/TandemLLM/tree/main/packages/library/voxel-worlds
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/0xBakeer/TandemLLM.git /tmp/TandemLLM
mkdir -p .claude/skills
cp -r /tmp/TandemLLM/packages/library/voxel-worlds .claude/skills/voxel-worlds
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Voxel Worlds in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Voxel Worlds on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Voxel Worlds is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Voxel worlds

Build order; after each step a render, the fps, a TODO.md line:

  1. Skeleton: renderer, camera, orbit controls, lights, a flat 64x64 voxel ground, an fps counter: the baseline you hold.
  2. Terrain: a seeded height map (?seed=) to voxels, one InstancedMesh per colour, never one mesh per voxel.
  3. The landmark (a pagoda) from setVoxel(x, y, z, colour) calls.
  4. Water and trees; then one creature with a state machine (idle, walk, startle).
  5. Day-night (sun from the time of day, lanterns at night), then sound on the first click, then quality chips low, medium, high.

Hold the frame rate: after every feature compare the fps with the baseline; 5 or more below, fix it first (fewer voxels, instancing, no new per frame).

Rules: one seeded generator for all random numbers, the seed in the HUD; groundTop(x, z) places everything, nothing floats or sinks; modules as in the reference, or one index.html without a file tool; TODO.md lists done and todo, a line per feature with its fps.

Done when:

  • Every feature of the prompt is under done with its fps.
  • The last render: fps within 5 of the baseline, 0 console errors.
  • ?seed=7 builds the same island twice; screenshots at noon and midnight.

Reference

Seeded random and noise (js/core/rng.js):

js
export const SEED = +(new URLSearchParams(location.search).get('seed') || 20260317);
export function mulberry32(a){ return () => { a |= 0; a = a + 0x6D2B79F5 | 0; let t = Math.imul(a ^ a >>> 15, 1 | a); t = t + Math.imul(t ^ t >>> 7, 61 | t) ^ t; return ((t ^ t >>> 14) >>> 0) / 4294967296; }; }
export const rand = mulberry32(SEED), TAU = Math.PI * 2;
export const randRange = (a, b) => a + (b - a) * rand(), pick = arr => arr[(rand() * arr.length) | 0];
export const lerp = (a, b, t) => a + (b - a) * t, smoothstep = (a, b, x) => { const t = Math.min(1, Math.max(0, (x - a) / (b - a))); return t * t * (3 - 2 * t); };

Voxels and the ground (js/core/voxels.js): heights is a Float32Array(GRID*GRID); setVoxel(x,y,z,c,b) puts {x,y,z,c,b} in a Map keyed x,y,z (b is the material bucket: 0 terrain, 1 built, 4 glowing, 5 water); groundTop(x,z) returns Math.round(heights[idx]). Meshes (js/scene/meshes.js): group voxels by bucket, one InstancedMesh(BoxGeometry(1,1,1), MeshLambertMaterial, n) per bucket, setMatrixAt + setColorAt per voxel, instanceMatrix.needsUpdate = true, shadows cast by buckets 1 and 2 only. Day-night (js/scene/daynight.js): ang = (timeOfDay - 0.25) * TAU; sunDir = (cos(ang)*0.78, sin(ang), cos(ang)*0.42); day = smoothstep(-0.06, 0.20, sunDir.y); sky top #04070f -> #2a63c8 by day, horizon #0b1530 -> #a9cdea; dusk tint #ffab6a; sun.intensity = day * 2.6; moon.intensity = (1 - day) * 0.55; fog = FogExp2(horizon, 0.0026 + night * 0.0011); lanterns intensity = night * 40 * (1 + 0.14 * sin(11 t + 2.3 i)). Creature state machine: state = 'graze'; timer = randRange(3, 7); on timer <= 0 go walk to a new target (cos a * r, 0, sin a * r); within 2 units go back to graze; y = groundTop(round x, round z) + bob; legs rotation.x = ±sin(phase) * 0.5 while walking. Ambient audio: a 2 s white-noise buffer, looped; wind = lowpass 420 Hz at gain 0..0.22 by wind strength; water = bandpass 900 Hz at 0.045; chirp = sine 1800..3400 Hz with an 80 ms ramp up, 160 ms decay, by day at 0.35 a second; bell = sine 520 + 782 Hz, 2.5 s decay, by night at 0.06 a second. Quality presets: low {pixel 0.7, shadows off, bloom 0.25, fog 1.25}, med {1.0, on, 0.5, 1.0}, high {min(dpr, 2), on, 0.72, 0.8}; apply with renderer.setPixelRatio(pixel); renderer.setSize(innerWidth, innerHeight). References on request: references/module-layout.md, references/voxel-builder.md, references/day-night.md, references/creature-state-machines.md, references/ambient-audio.md, references/quality-presets.md; exemplars exemplars/deer.md, exemplars/shrine-bell.md (prompt, plan, diff).

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Voxel Worlds AI skill do?

A Three.js voxel world - an island with a pagoda, gardens, lakes, bridges, creatures with state machines, a day-night cycle, ambient sound, quality presets - built one feature at a time with a render after each, a to-do file and the frame rate held at its baseline.

Why use Voxel Worlds on TypingMind?

Because you install it once and use it with any model. Voxel Worlds is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Voxel Worlds in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/0xBakeer/TandemLLM/tree/main/packages/library/voxel-worlds. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Voxel Worlds?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Voxel Worlds?

As many as you like. As long as a model supports skills, you can use Voxel Worlds with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Voxel Worlds AI skill free?

Yes. It is published on GitHub by 0xBakeer under the AGPL-3.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇