Open-source agent skill · Claude Code, Codex, Cursor

3D World Building

Websites your visitors travel through.

An agent skill that interviews you, designs a world from your brief, and builds a site where scrolling is travelling: down a valley, onto a reef, along a factory line, across a desk, into orbit.

npx skills add haseeb090/3d-world-building

Works in Claude Code, Codex, Cursor, OpenCode and about 75 more agents. It asks which ones.

  • MIT licence
  • 10 example worlds
  • Next.js 16
  • React Three Fiber
  • three.js
  • v0.3.1
A real ride: four of the ten example worlds, straight out of the scaffolder and scrolled in Chrome. The copy is ordinary HTML over one 3D scene; the scroll position is the ride’s clock.

01Ten worlds

Ten example worlds to start a 3D website from

Every site starts from the example world nearest its subject, already riding in the first minute. Then the agent designs the site’s own world, palette and light from its brief. Each example is a different kind of place; between them they show most of what a world can be made of. Each home page is four beats: an opening, two stops that each show something the builder can do, and an ending that stands for the visitor’s next step.

A river valley in morning light: pine woods on the slopes, a cabin by the water, a small jetty

valley · open country

A valley world, down the river to a cabin

Terrain from two small functions, hundreds of instanced trees and rocks, a river, seed in the morning air.

Suits a retreat, an outdoor brand, a personal site about a slower life.

Open this world live (valley, opens in a new tab)
  1. The valley ride, beat 1: from the air01 from the air
  2. The valley ride, beat 2: the river02 the river
  3. The valley ride, beat 3: a bridge built as you arrive03 a bridge built as you arrive
  4. The valley ride, beat 4: the cabin04 the cabin

02Any look

One world, any look

The world owns its things and their paints. The theme owns the light, the sky, how things are shaded (matte, faceted or flat illustrated) and the page’s colours. Here is the same temple under four of the starter’s placeholder themes.

The temple path in late afternoon light, shaded in facets

A real site’s palettes are designed from its brief, never taken from these. The agent offers two to four as live options on the page, with a picker to compare them while you scroll, and recommends one.

03On a phone

A scroll website that works on a phone

On a phone the copy docks as a sheet over the lower half and the world fills the top. A page can give the phone a camera rail of its own, so the subject sits where it is seen. Phones that cannot keep up get a lighter picture first, then fewer pixels.

  • The desk world on a phone: the desk above, the copy on a sheet belowdesk
  • The reef world on a phone: corals above, the copy on a sheet belowreef
  • The street world on a phonestreet
  • The network world on a phonenetwork

04How it works

How the agent skill works

Ask your agent for a 3D site. It takes it from there, starting with the interview. The skill carries no look of its own: the world, its palette, its light, its shading and how its notes are drawn are designed for your site.

  1. Interviews you

    It asks for what already exists (a website, a CV or LinkedIn export, product details, photographs of a place), reads it, asks only what that leaves open, and writes a brief. It asks what must never appear on the site, and guards that with a test.

  2. Scaffolds a site that already runs

    It starts from the example world nearest in kind, already riding in the first minute.

  3. Proposes worlds and palettes

    They come as real options on the page, designed from your brief, and it recommends one of each. You judge them by scrolling them, not by reading about them.

  4. Builds the world and the pages

    One world, and a ride through it for each page. The copy gets entrances of its own, drawn in the world’s own hand.

  5. Audits every frame

    At several window sizes and on a phone, and it drives the motion by hand.

  6. Measures and tunes it

    On a weak graphics card and a slowed processor.

Try asking

  • “Build a 3D walkthrough site for my pottery studio. Here is our current site and some photos.”
  • “Turn my CV into a portfolio I can walk through: a valley, one stop for each job.”
  • “Make my cafe’s site a walk from the street, through the door, to the counter.”
  • “Our product is an electric ferry. Make a landing page that rides its route along the coast.”
  • “The 3D scene on my site makes laptops hot. Find out why and fix it.”

05Ordinary machines

Built to run on ordinary machines

It grew out of a site whose first bug report was “my GPU fans start spinning whenever the site is open”. Everything that fixed that is in the engine every new site starts with.

  • It draws only when a picture is due.

    Sixty a second on the move, thirty once left alone, held still in a window left out of focus, none in a hidden tab. Never the display’s 144 or 240.

  • It fits the machine.

    A machine that cannot keep up is given a lighter picture first, then fewer pixels, and both come back when it can. A display held to thirty a second (a phone saving battery) is not mistaken for a slow machine.

  • Nothing freezes on the first scroll.

    Shaders are compiled under the loader.

  • The world is cheap by construction.

    Everything built is one draw call, anything repeated is instanced, what drifts in the air is moved on the GPU, and shadows are kept while nothing moves.

  • It is a real website.

    The copy is HTML, so search engines, AI assistants and screen readers read the same page the visitor rides through. Reduced motion holds it still.

  • Its tests guard the ride.

    Every journey well formed, the view held still at every stop, the camera above the ground and clear of everything built on every rail, every theme readable, and the pacing rules.

96 W → 67 WOn the site it came from, at 4K on a desktop card, the fans now stay off at rest, and scrolling went from a mean of 96 W to 67 W. Every number, and what was tried and thrown out, is in references/performance.md.

06What it can build

What it can build: 3D worlds by kind

The ten examples are points in a wider catalogue. references/world-ideas.md in the skill has nearly fifty, by kind: who each suits, what it is made of, how the ride goes, and which example to start from.

An illustration of one continuous world: a cabin in a valley, a temple garden, a cafe, a harbour with a lighthouse and a lit street under the curve of a planet
An illustration of the idea. Every other picture on this page is a real frame from a site the skill made.
World ideas by kind, and the example world to start from
KindIdeasStart from
Open countrya valley walk, a mountain ascent, a coastline, a vineyard through a day, a desert road, a forest floor, terracesvalley
Watera river from source to sea, a harbour, a lake house, under the seaharbour, reef
Gardens and sacred placesa temple approach, a cloister, a walled garden through the seasons, a glasshouse, a ruintemple
Streets and townsa market street, a hill town, a city at night, a station, a festival groundstreet
Interiorsa coffee shop, a workshop, a gallery, a library, a home room by room, a restaurant, a shop, a theatrecafe
Places of worka factory line, a laboratory, a construction site, a control room, a warehouse, a data centrefactory
Small worldsa model on a table, a desk, a map table, inside a watch or an engine, a terrariumdesk
No ground at allorbit, islands in the air, a cloud of things, a network made visibleorbit, network
Journeys through timea day, a year, a building going up, before and after, the life of a productany: the light and the build carry it

What a world is made of

A world is one plain JavaScript file. Everything fixed is built in code and merged into a single draw call; anything repeated is instanced; what drifts in the air moves on the GPU. The builder makes boxes, cylinders, cones, balls, turned profiles, extruded outlines, tubes along curves, slabs, swept roofs and walls with openings, and takes any three.js geometry. A world can add terrain, water that moves in the light, real lamps, and air: dust, snow, rain, leaves, fireflies, embers or bubbles.

const b = createBuilder()
b.box(6, 3.2, 8, { at: [0, 0, -40], color: "#e9e2d0" })                       // a hall
b.roof(7.5, 9.5, 2.4, { at: [0, 3.2, -40], color: "#3d4a52" })                // a roof that sweeps up at the eaves
b.lathe([[0.4, 0], [0.25, 0.3], [0.3, 1.5], [0, 1.8]], { at: [3, 0, -28] })  // a lantern, turned
b.tube([[-4, 1, -20], [0, 1.2, -24], [4, 1, -28]], 0.05, { color: "#b03a2e" }) // a rail along a curve
b.box(1.2, 1.4, 0.1, { at: [0, 1, -36], color: "#ffd58a", glow: 1 })          // a window lit from within
b.at(2.5)                                                                     // from here on: built as the ride arrives
b.box(2, 2, 2, { at: [9, 0, -52], color: "#8a6f4e" })

export const BUILT = b.geometry()                              // all of it, one draw call
export const SCATTER = [{ geometry: pine, spots: pines }]      // four hundred pines, one draw call
export const AIR = [{ kind: "leaves" }]                        // leaves coming down, moved on the GPU

07Questions

Questions about the Claude Code skill

Which agents does it work with?

Claude Code, Codex, Cursor, OpenCode and about 75 more. npx skills add haseeb090/3d-world-building asks which agents to install it for, or you can name them: -a claude-code -a codex. It also installs as a Claude Code plugin, or by hand: copy skills/3d-world-building into your agent’s skills folder (~/.claude/skills/ for Claude Code).

What do I need to run it?

Node 20.9 or later, and a browser with WebGL 2 to view a site. The capture and measuring scripts also need Chrome and playwright-core installed in the site; they drive the Chrome already on the machine, headless, download nothing, and send nothing anywhere.

What does it build with?

A complete Next.js app (App Router, JavaScript, React Three Fiber, three.js): the chosen world, a home page of four beats, a second page that the scene cuts to without reloading, a loader, a phone layout, and a bar for comparing palettes.

What licence is it under?

MIT. You can use it for personal and commercial sites.

Does it cost anything?

No. The skill is free and open source. Your agent’s own usage is billed as usual by whoever provides it.

Can I use my own world?

Yes; that is the point. The ten examples are placeholders that prove the machinery. The agent designs your site’s own world, palette and light from its brief. A world is one plain JavaScript file, and the builder takes any three.js geometry. Loaded 3D models are covered in the guides but not yet exercised by an example.

How far along is it?

Version 0.3.1. It is built and checked on Windows 11 with Chrome; it has not yet run on macOS or Linux, and sites made with it have not been checked in Safari, Firefox or on real phones. All ten example worlds are scaffolded, tested, built and pictured page by page. Not built yet: flocks and shoals, people and animals, sound.