3d-world-building 0.0.0-stage → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +322 -2
  3. package/bin/cli.cjs +41 -0
  4. package/package.json +38 -4
  5. package/skills/3d-world-building/SKILL.md +152 -0
  6. package/skills/3d-world-building/agents/openai.yaml +7 -0
  7. package/skills/3d-world-building/assets/icon.png +0 -0
  8. package/skills/3d-world-building/assets/icon.svg +26 -0
  9. package/skills/3d-world-building/references/architecture.md +150 -0
  10. package/skills/3d-world-building/references/copy-motion.md +226 -0
  11. package/skills/3d-world-building/references/interview.md +130 -0
  12. package/skills/3d-world-building/references/measuring.md +121 -0
  13. package/skills/3d-world-building/references/performance.md +241 -0
  14. package/skills/3d-world-building/references/review-and-shipping.md +103 -0
  15. package/skills/3d-world-building/references/world-design.md +217 -0
  16. package/skills/3d-world-building/references/world-ideas.md +200 -0
  17. package/skills/3d-world-building/scripts/README.md +74 -0
  18. package/skills/3d-world-building/scripts/cmp.cjs +25 -0
  19. package/skills/3d-world-building/scripts/finalcheck.cjs +54 -0
  20. package/skills/3d-world-building/scripts/focuscheck.cjs +72 -0
  21. package/skills/3d-world-building/scripts/frames.cjs +118 -0
  22. package/skills/3d-world-building/scripts/gpu.cjs +133 -0
  23. package/skills/3d-world-building/scripts/hook.cjs +19 -0
  24. package/skills/3d-world-building/scripts/layoutcheck.cjs +50 -0
  25. package/skills/3d-world-building/scripts/load.cjs +62 -0
  26. package/skills/3d-world-building/scripts/loader-hidden.cjs +61 -0
  27. package/skills/3d-world-building/scripts/new-site.cjs +87 -0
  28. package/skills/3d-world-building/scripts/pace60.cjs +75 -0
  29. package/skills/3d-world-building/scripts/perf.cjs +258 -0
  30. package/skills/3d-world-building/scripts/present.cjs +74 -0
  31. package/skills/3d-world-building/scripts/prof.cjs +67 -0
  32. package/skills/3d-world-building/scripts/resume.cjs +89 -0
  33. package/skills/3d-world-building/scripts/shoot.cjs +121 -0
  34. package/skills/3d-world-building/scripts/site.cjs +62 -0
  35. package/skills/3d-world-building/scripts/styles.cjs +111 -0
  36. package/skills/3d-world-building/scripts/timeline.cjs +82 -0
  37. package/skills/3d-world-building/scripts/tour.cjs +45 -0
  38. package/skills/3d-world-building/scripts/wake.cjs +81 -0
  39. package/skills/3d-world-building/starter/app/(journey)/about/page.js +8 -0
  40. package/skills/3d-world-building/starter/app/(journey)/layout.js +7 -0
  41. package/skills/3d-world-building/starter/app/(journey)/page.js +8 -0
  42. package/skills/3d-world-building/starter/app/globals.css +201 -0
  43. package/skills/3d-world-building/starter/app/icon.svg +1 -0
  44. package/skills/3d-world-building/starter/app/layout.js +38 -0
  45. package/skills/3d-world-building/starter/components/brand/Mark.js +10 -0
  46. package/skills/3d-world-building/starter/components/journey/JourneyPage.js +200 -0
  47. package/skills/3d-world-building/starter/components/journey/JourneyShell.js +53 -0
  48. package/skills/3d-world-building/starter/components/journey/Loader.js +134 -0
  49. package/skills/3d-world-building/starter/components/journey/Scene.js +2 -0
  50. package/skills/3d-world-building/starter/components/journey/Stage.js +213 -0
  51. package/skills/3d-world-building/starter/components/journey/journey.css +866 -0
  52. package/skills/3d-world-building/starter/components/journey/journey.test.mjs +199 -0
  53. package/skills/3d-world-building/starter/components/journey/journeys/README.md +171 -0
  54. package/skills/3d-world-building/starter/components/journey/journeys/rig.js +37 -0
  55. package/skills/3d-world-building/starter/components/journey/light.js +34 -0
  56. package/skills/3d-world-building/starter/components/journey/loader.css +78 -0
  57. package/skills/3d-world-building/starter/components/journey/notes.js +21 -0
  58. package/skills/3d-world-building/starter/components/journey/path.js +113 -0
  59. package/skills/3d-world-building/starter/components/journey/routes/AboutRoute.js +30 -0
  60. package/skills/3d-world-building/starter/components/journey/routes/HomeRoute.js +37 -0
  61. package/skills/3d-world-building/starter/components/journey/shared/Sky.js +102 -0
  62. package/skills/3d-world-building/starter/components/journey/shared/look.js +19 -0
  63. package/skills/3d-world-building/starter/components/journey/standView.js +53 -0
  64. package/skills/3d-world-building/starter/components/journey/store.js +312 -0
  65. package/skills/3d-world-building/starter/components/journey/theme.js +303 -0
  66. package/skills/3d-world-building/starter/components/journey/world/Air.js +196 -0
  67. package/skills/3d-world-building/starter/components/journey/world/Scatter.js +33 -0
  68. package/skills/3d-world-building/starter/components/journey/world/Scene.js +308 -0
  69. package/skills/3d-world-building/starter/components/journey/world/build.js +189 -0
  70. package/skills/3d-world-building/starter/components/journey/world/style.js +153 -0
  71. package/skills/3d-world-building/starter/components/journey/world/terrain.js +66 -0
  72. package/skills/3d-world-building/starter/components/site/SiteFooter.js +19 -0
  73. package/skills/3d-world-building/starter/components/site/SiteHeader.js +23 -0
  74. package/skills/3d-world-building/starter/components/site/ThemePicker.js +42 -0
  75. package/skills/3d-world-building/starter/data/site.js +23 -0
  76. package/skills/3d-world-building/starter/gitignore +4 -0
  77. package/skills/3d-world-building/starter/journey.check.json +4 -0
  78. package/skills/3d-world-building/starter/jsconfig.json +7 -0
  79. package/skills/3d-world-building/starter/next.config.js +10 -0
  80. package/skills/3d-world-building/starter/package.json +21 -0
  81. package/skills/3d-world-building/worlds/cafe/about.js +40 -0
  82. package/skills/3d-world-building/worlds/cafe/copy.js +20 -0
  83. package/skills/3d-world-building/worlds/cafe/home.js +52 -0
  84. package/skills/3d-world-building/worlds/cafe/world.js +176 -0
  85. package/skills/3d-world-building/worlds/desk/about.js +44 -0
  86. package/skills/3d-world-building/worlds/desk/copy.js +20 -0
  87. package/skills/3d-world-building/worlds/desk/home.js +58 -0
  88. package/skills/3d-world-building/worlds/desk/world.js +432 -0
  89. package/skills/3d-world-building/worlds/factory/about.js +43 -0
  90. package/skills/3d-world-building/worlds/factory/copy.js +20 -0
  91. package/skills/3d-world-building/worlds/factory/home.js +58 -0
  92. package/skills/3d-world-building/worlds/factory/world.js +691 -0
  93. package/skills/3d-world-building/worlds/harbour/about.js +46 -0
  94. package/skills/3d-world-building/worlds/harbour/copy.js +20 -0
  95. package/skills/3d-world-building/worlds/harbour/home.js +55 -0
  96. package/skills/3d-world-building/worlds/harbour/world.js +204 -0
  97. package/skills/3d-world-building/worlds/index.json +42 -0
  98. package/skills/3d-world-building/worlds/network/about.js +45 -0
  99. package/skills/3d-world-building/worlds/network/copy.js +20 -0
  100. package/skills/3d-world-building/worlds/network/home.js +72 -0
  101. package/skills/3d-world-building/worlds/network/world.js +320 -0
  102. package/skills/3d-world-building/worlds/orbit/about.js +43 -0
  103. package/skills/3d-world-building/worlds/orbit/copy.js +20 -0
  104. package/skills/3d-world-building/worlds/orbit/home.js +53 -0
  105. package/skills/3d-world-building/worlds/orbit/world.js +116 -0
  106. package/skills/3d-world-building/worlds/reef/about.js +43 -0
  107. package/skills/3d-world-building/worlds/reef/copy.js +20 -0
  108. package/skills/3d-world-building/worlds/reef/home.js +69 -0
  109. package/skills/3d-world-building/worlds/reef/world.js +461 -0
  110. package/skills/3d-world-building/worlds/street/about.js +40 -0
  111. package/skills/3d-world-building/worlds/street/copy.js +20 -0
  112. package/skills/3d-world-building/worlds/street/home.js +54 -0
  113. package/skills/3d-world-building/worlds/street/world.js +128 -0
  114. package/skills/3d-world-building/worlds/temple/about.js +38 -0
  115. package/skills/3d-world-building/worlds/temple/copy.js +20 -0
  116. package/skills/3d-world-building/worlds/temple/home.js +52 -0
  117. package/skills/3d-world-building/worlds/temple/world.js +192 -0
  118. package/skills/3d-world-building/worlds/valley/about.js +41 -0
  119. package/skills/3d-world-building/worlds/valley/copy.js +20 -0
  120. package/skills/3d-world-building/worlds/valley/home.js +62 -0
  121. package/skills/3d-world-building/worlds/valley/world.js +148 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Haseeb Khizar
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,323 @@
1
- # Temporary Holding Version
1
+ <p align="center">
2
+ <img src="https://raw.githubusercontent.com/haseeb090/3d-world-building/main/docs/banner.jpg" alt="3D World Building: one continuous world running from a dawn valley past a temple, a cafe, a harbour and a night street up into orbit, with a camera's path threaded through it" width="100%">
3
+ </p>
2
4
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
5
+ <p align="center">
6
+ <b>Websites your visitors travel through.</b><br>
7
+ An agent skill that interviews you, designs a world from your brief, and builds a site where<br>
8
+ scrolling is travelling: down a valley, onto a reef, along a factory line, across a desk, into orbit.
9
+ </p>
10
+
11
+ <p align="center">
12
+ <img alt="Licence: MIT" src="https://img.shields.io/badge/licence-MIT-4B55A6">
13
+ <img alt="Claude Code: plugin and skill" src="https://img.shields.io/badge/Claude_Code-plugin_%2B_skill-D97757">
14
+ <img alt="Codex: skill" src="https://img.shields.io/badge/Codex-skill-111111">
15
+ <img alt="Next.js 16" src="https://img.shields.io/badge/Next.js-16-000000">
16
+ <img alt="three.js r170" src="https://img.shields.io/badge/three.js-r170-049EF4">
17
+ <img alt="React Three Fiber 9" src="https://img.shields.io/badge/React_Three_Fiber-9-2D2D2D">
18
+ <img alt="Example worlds: 10" src="https://img.shields.io/badge/example_worlds-10-2F6F8F">
19
+ </p>
20
+
21
+ ```bash
22
+ npx skills add haseeb090/3d-world-building
23
+ ```
24
+
25
+ <p align="center"><b><a href="https://haseeb090.github.io/3d-world-building/">See it live: all ten worlds in your browser</a></b></p>
26
+
27
+ <sub>The banner is an illustration of the idea. Every other picture on this page is a real frame
28
+ from a site the skill made, captured in Chrome from the example worlds as they ship.</sub>
29
+
30
+ ## A real ride
31
+
32
+ <p align="center">
33
+ <img src="https://raw.githubusercontent.com/haseeb090/3d-world-building/main/docs/ride.gif" alt="Scrolling through four example worlds: down to a harbour, up a temple path under falling leaves, along a street at night in the rain, past a space station over a planet" width="100%">
34
+ </p>
35
+
36
+ Four of the ten example worlds, each straight out of the scaffolder and scrolled in a real
37
+ browser. The copy is ordinary HTML riding over one 3D scene that keeps running from page to page:
38
+ the scroll position is the ride's clock.
39
+
40
+ ## Ten worlds to start from
41
+
42
+ Every site starts from the example world nearest its subject, already riding in the first minute.
43
+ Then the agent designs the site's own world, palette and light from its brief. The examples are
44
+ placeholders that prove the machinery; each is a different kind of place, so between them they
45
+ show most of what a world can be made of. [See them live](https://haseeb090.github.io/3d-world-building/)
46
+ and scroll through each one.
47
+
48
+ <table>
49
+ <tr>
50
+ <td width="50%" valign="top"><img src="https://raw.githubusercontent.com/haseeb090/3d-world-building/main/docs/world-valley.jpg" alt="A river valley in morning light: pine woods on the slopes, a cabin by the water, a small jetty"><br><b><code>valley</code></b> · open country<br><sub>Terrain from two small functions, hundreds of instanced trees and rocks, a river, seed in the morning air.</sub><br><sub><i>Suits a retreat, an outdoor brand, a personal site about a slower life.</i></sub></td>
51
+ <td width="50%" valign="top"><img src="https://raw.githubusercontent.com/haseeb090/3d-world-building/main/docs/world-temple.jpg" alt="A temple approach: stone lanterns along a paved path to a hall, maples and a red bridge"><br><b><code>temple</code></b> · buildings and gardens<br><sub>Swept roofs, turned shapes, one stone lantern set down eighteen times, leaves coming down over the path.</sub><br><sub><i>Suits heritage, craft, hospitality, a practice built on care.</i></sub></td>
52
+ </tr>
53
+ <tr>
54
+ <td width="50%" valign="top"><img src="https://raw.githubusercontent.com/haseeb090/3d-world-building/main/docs/world-cafe.jpg" alt="A coffee shop counter: an espresso machine, shelves of jars and pendant lamps"><br><b><code>cafe</code></b> · an interior<br><sub>Walls with openings, lamps of the room's own, light through the windows, dust turning in it.</sub><br><sub><i>Suits food and drink, a shop, a neighbourhood business.</i></sub></td>
55
+ <td width="50%" valign="top"><img src="https://raw.githubusercontent.com/haseeb090/3d-world-building/main/docs/world-harbour.jpg" alt="A harbour town on a green hill above a quay with cranes, boats and a curved breakwater"><br><b><code>harbour</code></b> · land meeting water<br><sub>One terrain from hills to sea bed, a moving sea, jetties, boats, a striped lighthouse. Flat illustrated light.</sub><br><sub><i>Suits trade and logistics, travel, a business on the coast.</i></sub></td>
56
+ </tr>
57
+ <tr>
58
+ <td width="50%" valign="top"><img src="https://raw.githubusercontent.com/haseeb090/3d-world-building/main/docs/world-reef.jpg" alt="A sunken wooden ship on pale sand in blue water, its ribs bare and its mast still standing"><br><b><code>reef</code></b> · under water<br><sub>A reef by a drop-off, eight hundred instanced corals, kelp and rocks, a hull from one function, a lit bell, bubbles in blue water.</sub><br><sub><i>Suits an ocean cause, a dive school, a marine research group.</i></sub></td>
59
+ <td width="50%" valign="top"><img src="https://raw.githubusercontent.com/haseeb090/3d-world-building/main/docs/world-street.jpg" alt="A street at night: lit shop windows, signs and strings of lights over a wet road"><br><b><code>street</code></b> · a place at night<br><sub>Shopfronts lit from within, glowing signs and lamp heads, real lamps on the road, rain.</sub><br><sub><i>Suits nightlife, music, restaurants, a city's businesses.</i></sub></td>
60
+ </tr>
61
+ <tr>
62
+ <td width="50%" valign="top"><img src="https://raw.githubusercontent.com/haseeb090/3d-world-building/main/docs/world-factory.jpg" alt="Two orange robot arms welding in a fenced cell on a factory floor, racking with cartons behind"><br><b><code>factory</code></b> · a place of work<br><sub>Trusses and skylights the sun comes through, presses and robots built in code, hundreds of instanced parts and cartons, warm dust in the air.</sub><br><sub><i>Suits manufacturing, logistics, hardware, software for operations.</i></sub></td>
63
+ <td width="50%" valign="top"><img src="https://raw.githubusercontent.com/haseeb090/3d-world-building/main/docs/world-desk.jpg" alt="A walnut desk at evening under a brass lamp: a laptop, an open notebook, pencils and a mug by a window"><br><b><code>desk</code></b> · a small world<br><sub>A desk at ten times life under one real lamp, instanced keys and books, a page written as you arrive, dust in the lamplight.</sub><br><sub><i>Suits a personal site, a writer, a designer, a consultant.</i></sub></td>
64
+ </tr>
65
+ <tr>
66
+ <td width="50%" valign="top"><img src="https://raw.githubusercontent.com/haseeb090/3d-world-building/main/docs/world-orbit.jpg" alt="A space station's solar panels and hull over the curve of a planet against a black sky"><br><b><code>orbit</code></b> · no ground at all<br><sub>A station from three.js's own shapes, a planet painted point by point, one hard sun.</sub><br><sub><i>Suits space, satellites, deep technology, research.</i></sub></td>
67
+ <td width="50%" valign="top"><img src="https://raw.githubusercontent.com/haseeb090/3d-world-building/main/docs/world-network.jpg" alt="Glowing network hubs in green-black haze, a coral route running through a cage of struts"><br><b><code>network</code></b> · a structure in open space<br><sub>A network in deep haze: hubs built in code, hundreds of instanced devices, one message's route lit piece by piece as you scroll.</sub><br><sub><i>Suits AI, data, infrastructure, developer tools.</i></sub></td>
68
+ </tr>
69
+ </table>
70
+
71
+ ### Every ride, beat by beat
72
+
73
+ Each home page is four beats: an opening, two stops that each show something the builder can do,
74
+ and an ending that stands for the visitor's next step.
75
+
76
+ <details><summary><b>valley</b>: down the river to a cabin</summary><br><img src="https://raw.githubusercontent.com/haseeb090/3d-world-building/main/docs/ride-valley.jpg" alt="The valley ride in four frames: from the air, the river, a bridge built as you arrive, the cabin" width="100%"></details>
77
+ <details><summary><b>temple</b>: through the gate to the hall</summary><br><img src="https://raw.githubusercontent.com/haseeb090/3d-world-building/main/docs/ride-temple.jpg" alt="The temple ride in four frames: the gate, the lantern path, the bridge, the hall" width="100%"></details>
78
+ <details><summary><b>cafe</b>: from the door to the counter</summary><br><img src="https://raw.githubusercontent.com/haseeb090/3d-world-building/main/docs/ride-cafe.jpg" alt="The cafe ride in four frames: the room from the door, the counter, the window seats, the shelves" width="100%"></details>
79
+ <details><summary><b>harbour</b>: from the hill to the lighthouse</summary><br><img src="https://raw.githubusercontent.com/haseeb090/3d-world-building/main/docs/ride-harbour.jpg" alt="The harbour ride in four frames: the town from the hill, the quay, the moorings, the lighthouse" width="100%"></details>
80
+ <details><summary><b>reef</b>: down onto the reef, past the wreck, to a diving bell</summary><br><img src="https://raw.githubusercontent.com/haseeb090/3d-world-building/main/docs/ride-reef.jpg" alt="The reef ride in four frames: the reef garden from above, corals close to, the wreck, the lit diving bell" width="100%"></details>
81
+ <details><summary><b>street</b>: down the street at night to a lit doorway</summary><br><img src="https://raw.githubusercontent.com/haseeb090/3d-world-building/main/docs/ride-street.jpg" alt="The street ride in four frames: the street from above, lit shopfronts, lamps on the road, the doorway" width="100%"></details>
82
+ <details><summary><b>factory</b>: from the roof, along the line, to the loading dock</summary><br><img src="https://raw.githubusercontent.com/haseeb090/3d-world-building/main/docs/ride-factory.jpg" alt="The factory ride in four frames: the hall from the roof walkway, the line, the weld cell, the loading dock" width="100%"></details>
83
+ <details><summary><b>desk</b>: from the lamp, across the desk, to a notebook</summary><br><img src="https://raw.githubusercontent.com/haseeb090/3d-world-building/main/docs/ride-desk.jpg" alt="The desk ride in four frames: the whole desk under the lamp, the books and the plant, the laptop, the open notebook" width="100%"></details>
84
+ <details><summary><b>orbit</b>: in to a station and round to the dock</summary><br><img src="https://raw.githubusercontent.com/haseeb090/3d-world-building/main/docs/ride-orbit.jpg" alt="The orbit ride in four frames: the station over the planet, the ring, the solar panels, the docking capsule" width="100%"></details>
85
+ <details><summary><b>network</b>: one message, from a device to its answer</summary><br><img src="https://raw.githubusercontent.com/haseeb090/3d-world-building/main/docs/ride-network.jpg" alt="The network ride in four frames: the whole network, the first hop, the hubs, the answering node" width="100%"></details>
86
+
87
+ ## One world, any look
88
+
89
+ The world owns its things and their paints. The theme owns the light, the sky, how things are
90
+ shaded (matte, faceted or flat illustrated) and the page's colours. Here is the same temple under
91
+ four of the starter's placeholder themes:
92
+
93
+ <table>
94
+ <tr>
95
+ <td width="50%"><img src="https://raw.githubusercontent.com/haseeb090/3d-world-building/main/docs/look-cedar.jpg" alt="The temple path in late afternoon light, shaded in facets"><br><sub><code>cedar</code>: late afternoon, faceted</sub></td>
96
+ <td width="50%"><img src="https://raw.githubusercontent.com/haseeb090/3d-world-building/main/docs/look-tide.jpg" alt="The temple path in bright, flat illustrated light"><br><sub><code>tide</code>: bright, flat illustrated light</sub></td>
97
+ </tr>
98
+ <tr>
99
+ <td width="50%"><img src="https://raw.githubusercontent.com/haseeb090/3d-world-building/main/docs/look-lamplight.jpg" alt="The temple path under a lilac evening sky"><br><sub><code>lamplight</code>: a lilac evening</sub></td>
100
+ <td width="50%"><img src="https://raw.githubusercontent.com/haseeb090/3d-world-building/main/docs/look-walnut.jpg" alt="The temple path at night with its lanterns lit"><br><sub><code>walnut</code>: night, the lanterns lit</sub></td>
101
+ </tr>
102
+ </table>
103
+
104
+ A real site's palettes are designed from its brief, never taken from these. The agent offers two
105
+ to four as live options on the page, with a picker to compare them while you scroll, and
106
+ recommends one.
107
+
108
+ ## On a phone
109
+
110
+ <table>
111
+ <tr>
112
+ <td width="25%"><img src="https://raw.githubusercontent.com/haseeb090/3d-world-building/main/docs/phone-desk.jpg" alt="The desk world on a phone: the desk above, the copy on a sheet below"></td>
113
+ <td width="25%"><img src="https://raw.githubusercontent.com/haseeb090/3d-world-building/main/docs/phone-reef.jpg" alt="The reef world on a phone"></td>
114
+ <td width="25%"><img src="https://raw.githubusercontent.com/haseeb090/3d-world-building/main/docs/phone-street.jpg" alt="The street world on a phone"></td>
115
+ <td width="25%"><img src="https://raw.githubusercontent.com/haseeb090/3d-world-building/main/docs/phone-network.jpg" alt="The network world on a phone"></td>
116
+ </tr>
117
+ </table>
118
+
119
+ On a phone the copy docks as a sheet over the lower half and the world fills the top. A page can
120
+ give the phone a camera rail of its own, so the subject sits where it is seen. Phones that cannot
121
+ keep up get a lighter picture first, then fewer pixels.
122
+
123
+ ## Worlds it can build
124
+
125
+ The examples are ten points in a wider catalogue. `references/world-ideas.md` in the skill has
126
+ nearly fifty, by kind: who each suits, what it is made of, how the ride goes, and which example to
127
+ start from.
128
+
129
+ | Kind | Ideas | Start from |
130
+ |---|---|---|
131
+ | Open country | a valley walk, a mountain ascent, a coastline, a vineyard through a day, a desert road, a forest floor, terraces | `valley` |
132
+ | Water | a river from source to sea, a harbour, a lake house, under the sea | `harbour`, `reef` |
133
+ | Gardens and sacred places | a temple approach, a cloister, a walled garden through the seasons, a glasshouse, a ruin | `temple` |
134
+ | Streets and towns | a market street, a hill town, a city at night, a station, a festival ground | `street` |
135
+ | Interiors | a coffee shop, a workshop, a gallery, a library, a home room by room, a restaurant, a shop, a theatre | `cafe` |
136
+ | Places of work | a factory line, a laboratory, a construction site, a control room, a warehouse, a data centre | `factory` |
137
+ | Small worlds | a model on a table, a desk, a map table, inside a watch or an engine, a terrarium | `desk` |
138
+ | No ground at all | orbit, islands in the air, a cloud of things, a network made visible | `orbit`, `network` |
139
+ | Journeys through time | a day, a year, a building going up, before and after, the life of a product | any: the light and the build carry it |
140
+
141
+ ## What a world is made of
142
+
143
+ A world is one plain JavaScript file. Everything fixed is built in code and merged into a single
144
+ draw call; anything repeated is instanced; what drifts in the air moves on the GPU.
145
+
146
+ ```js
147
+ const b = createBuilder()
148
+ b.box(6, 3.2, 8, { at: [0, 0, -40], color: "#e9e2d0" }) // a hall
149
+ b.roof(7.5, 9.5, 2.4, { at: [0, 3.2, -40], color: "#3d4a52" }) // a roof that sweeps up at the eaves
150
+ b.lathe([[0.4, 0], [0.25, 0.3], [0.3, 1.5], [0, 1.8]], { at: [3, 0, -28] }) // a lantern, turned
151
+ b.tube([[-4, 1, -20], [0, 1.2, -24], [4, 1, -28]], 0.05, { color: "#b03a2e" }) // a rail along a curve
152
+ b.box(1.2, 1.4, 0.1, { at: [0, 1, -36], color: "#ffd58a", glow: 1 }) // a window lit from within
153
+ b.at(2.5) // from here on: built as the ride arrives
154
+ b.box(2, 2, 2, { at: [9, 0, -52], color: "#8a6f4e" })
155
+
156
+ export const BUILT = b.geometry() // all of it, one draw call
157
+ export const SCATTER = [{ geometry: pine, spots: pines }] // four hundred pines, one draw call
158
+ export const AIR = [{ kind: "leaves" }] // leaves coming down, moved on the GPU
159
+ ```
160
+
161
+ The builder makes boxes, cylinders, cones, balls, turned profiles, extruded outlines, tubes along
162
+ curves, slabs, swept roofs and walls with openings, and takes any three.js geometry. A world can
163
+ add terrain (height and colour as two functions), water that moves in the light, real lamps, and
164
+ air: dust, snow, rain, leaves, fireflies, embers or bubbles.
165
+
166
+ ## Try asking
167
+
168
+ > Build a 3D walkthrough site for my pottery studio. Here is our current site and some photos.
169
+
170
+ > Turn my CV into a portfolio I can walk through: a valley, one stop for each job.
171
+
172
+ > Make my cafe's site a walk from the street, through the door, to the counter.
173
+
174
+ > Our product is an electric ferry. Make a landing page that rides its route along the coast.
175
+
176
+ > The 3D scene on my site makes laptops hot. Find out why and fix it.
177
+
178
+ The agent takes it from there, starting with the interview.
179
+
180
+ ## What it does
181
+
182
+ 1. **Interviews you.** It asks for what already exists (a website, a CV or LinkedIn export,
183
+ product details, photographs of a place), reads it, asks only what that leaves open, and
184
+ writes a brief. It asks what must never appear on the site, and guards that with a test.
185
+ 2. **Scaffolds a site that already runs**, from the example world nearest in kind.
186
+ 3. **Proposes worlds and palettes as real options on the page**, designed from your brief, and
187
+ recommends one of each. You judge them by scrolling them, not by reading about them.
188
+ 4. **Builds the world and the pages.** One world, and a ride through it for each page. The copy
189
+ gets entrances of its own, drawn in the world's own hand.
190
+ 5. **Audits every frame**, at several window sizes and on a phone, and drives the motion by hand.
191
+ 6. **Measures and tunes it** on a weak graphics card and a slowed processor.
192
+
193
+ The skill carries no look of its own. The world, its palette, its light, its shading and how its
194
+ notes are drawn are designed for your site.
195
+
196
+ ## Built to run on ordinary machines
197
+
198
+ It grew out of a site whose first bug report was "my GPU fans start spinning whenever the site
199
+ is open". Everything that fixed that is in the engine every new site starts with:
200
+
201
+ - **It draws only when a picture is due**: sixty a second on the move, thirty once left alone,
202
+ held still in a window left out of focus, none in a hidden tab. Never the display's 144 or
203
+ 240.
204
+ - **It fits the machine.** A machine that cannot keep up is given a lighter picture first, then
205
+ fewer pixels, and both come back when it can. A display held to thirty a second (a phone
206
+ saving battery) is not mistaken for a slow machine.
207
+ - **Nothing freezes on the first scroll.** Shaders are compiled under the loader.
208
+ - **The world is cheap by construction.** Everything built is one draw call, anything repeated
209
+ is instanced, what drifts in the air is moved on the GPU, and shadows are kept while nothing
210
+ moves.
211
+ - **It is a real website.** The copy is HTML, so search engines, AI assistants and screen
212
+ readers read the same page the visitor rides through. Reduced motion holds it still.
213
+ - **Its tests guard the ride**: every journey well formed, the view held still at every stop,
214
+ the camera above the ground and clear of everything built on every rail, every theme
215
+ readable, and the pacing rules.
216
+
217
+ On the site it came from, at 4K on a desktop card, the fans now stay off at rest, and scrolling
218
+ went from a mean of 96 W to 67 W. Every number, and what was tried and thrown out, is in
219
+ `references/performance.md`.
220
+
221
+ ## Install
222
+
223
+ With the [skills installer](https://github.com/vercel-labs/skills), for Claude Code, Codex and
224
+ the other agents it supports:
225
+
226
+ ```bash
227
+ npx skills add haseeb090/3d-world-building # asks which agents
228
+ npx skills add haseeb090/3d-world-building -a claude-code -a codex -g # or say so
229
+ ```
230
+
231
+ From npm, which runs that same installer and passes your flags on:
232
+
233
+ ```bash
234
+ npx 3d-world-building install # asks which agents
235
+ npx 3d-world-building install -a claude-code -a codex -g # or say so
236
+ ```
237
+
238
+ As a Claude Code plugin:
239
+
240
+ ```
241
+ /plugin marketplace add haseeb090/3d-world-building
242
+ /plugin install 3d-world-building@3d-world-building
243
+ ```
244
+
245
+ Or by hand: copy `skills/3d-world-building` into your agent's skills folder
246
+ (`~/.claude/skills/` for Claude Code).
247
+
248
+ ## Works well with
249
+
250
+ The skill owns the world, the rides and the engine. The page over the world (type, panels,
251
+ buttons, forms) is ordinary web design, and a design skill does that part well. If you have
252
+ [impeccable](https://github.com/pbakaus/impeccable) installed, the skill uses it for that layer,
253
+ under one rule: every colour still comes from the site's theme. Nothing requires it.
254
+
255
+ ```bash
256
+ npx skills add pbakaus/impeccable
257
+ ```
258
+
259
+ ## Start a site without an agent
260
+
261
+ ```bash
262
+ npx 3d-world-building new my-site --world reef # npx 3d-world-building worlds lists all ten
263
+ cd my-site
264
+ npm install
265
+ npm run dev # http://localhost:3000
266
+ npm test
267
+ ```
268
+
269
+ What comes out is a complete Next.js app (App Router, JavaScript, React Three Fiber, three.js):
270
+ the chosen world, a home page of four beats, a second page that the scene cuts to without
271
+ reloading, a loader, a phone layout, and a bar for comparing palettes.
272
+
273
+ ## What is in the skill
274
+
275
+ ```
276
+ skills/3d-world-building/
277
+ SKILL.md where an agent starts: the order of work and the rules
278
+ references/ interview, world ideas, world design, architecture, copy motion,
279
+ performance, measuring, review and shipping
280
+ scripts/new-site.cjs the scaffolder
281
+ scripts/ capture, check and measure tools
282
+ starter/ the app a new site begins as: the engine, the builder,
283
+ terrain, scatter, air, water, shading, the theme
284
+ worlds/ the ten example worlds
285
+ agents/openai.yaml how Codex shows the skill
286
+ ```
287
+
288
+ ## Requirements
289
+
290
+ - Node 20.9 or later.
291
+ - A browser with WebGL 2 to view a site.
292
+ - For the capture and measuring scripts: Chrome, and `playwright-core` installed in the site
293
+ (`npm i --prefix .journey-check/tools playwright-core`). They drive the Chrome already on the
294
+ machine, headless, download nothing, and send nothing anywhere.
295
+
296
+ ## Status
297
+
298
+ Version 0.3.0. Say what you find.
299
+
300
+ - Built and checked on Windows 11 with Chrome. On Linux (Ubuntu, under WSL) a new site installs
301
+ and passes its tests. Not yet run on macOS, and sites made with it have not been checked in
302
+ Safari, Firefox or on real phones.
303
+ - All ten example worlds are scaffolded, tested, built and pictured page by page. The skill has
304
+ not yet been used to build a whole site from interview to launch, and the four newest worlds
305
+ have not been timed on a weak graphics card.
306
+ - Not built yet: flocks and shoals, people and animals, sound. Loaded 3D models are covered in
307
+ the guides but not exercised by an example. `references/world-ideas.md` says how each would
308
+ be added.
309
+
310
+ ## Made by
311
+
312
+ <p align="center">
313
+ <a href="https://www.haseebkhizar.com"><img src="https://raw.githubusercontent.com/haseeb090/3d-world-building/main/docs/brand/haseeb-khizar.png" alt="Made by Haseeb Khizar, Software Architect and AI Consultant" width="49%"></a>
314
+ <a href="https://hirubix.com"><img src="https://raw.githubusercontent.com/haseeb090/3d-world-building/main/docs/brand/rubix-labs.png" alt="Sponsored by Rubix Labs" width="49%"></a>
315
+ </p>
316
+
317
+ 3D World Building is made by [Haseeb Khizar](https://www.haseebkhizar.com), and grew out of
318
+ building [haseebkhizar.com](https://www.haseebkhizar.com) and [hirubix.com](https://hirubix.com).
319
+ It is sponsored by [Rubix Labs](https://hirubix.com).
320
+
321
+ ## Licence
322
+
323
+ MIT, by Haseeb Khizar. See `LICENSE`.
package/bin/cli.cjs ADDED
@@ -0,0 +1,41 @@
1
+ #!/usr/bin/env node
2
+ // A small front door, for starting a site without an agent:
3
+ //
4
+ // npx 3d-world-building install [flags for the skills installer]
5
+ // npx 3d-world-building new <folder> [--world name] [--theme name]
6
+ // npx 3d-world-building worlds
7
+ //
8
+ // "install" hands over to the open skills installer, which puts the skill where each agent reads it.
9
+ const { spawnSync } = require("child_process")
10
+ const fs = require("fs")
11
+ const path = require("path")
12
+
13
+ const skill = path.join(__dirname, "..", "skills", "3d-world-building")
14
+ const [command, ...rest] = process.argv.slice(2)
15
+
16
+ if (command === "install") {
17
+ const args = ["skills", "add", "haseeb090/3d-world-building", ...rest]
18
+ // shortcut: on Windows npx is a .cmd and needs a shell, so a flag holding a space would split; quote flags if that is ever needed.
19
+ const run = spawnSync("npx", args, { stdio: "inherit", shell: process.platform === "win32" })
20
+ // A missing npx gives no one exit code across shells, so any failure prints the command.
21
+ if (run.status !== 0) console.log(`\nThat did not finish. If npx is missing here, run this where it is:\n\n npx ${args.join(" ")}`)
22
+ process.exit(run.status ?? 1)
23
+ } else if (command === "new") {
24
+ process.exit(spawnSync(process.execPath, [path.join(skill, "scripts", "new-site.cjs"), ...rest], { stdio: "inherit" }).status ?? 1)
25
+ } else if (command === "worlds") {
26
+ const worlds = JSON.parse(fs.readFileSync(path.join(skill, "worlds", "index.json"), "utf8"))
27
+ for (const [name, world] of Object.entries(worlds)) console.log(name.padEnd(8), world.is)
28
+ } else {
29
+ const names = Object.keys(JSON.parse(fs.readFileSync(path.join(skill, "worlds", "index.json"), "utf8"))).join("|")
30
+ console.log(`3d-world-building
31
+
32
+ install [flags]
33
+ add the skill to your agents: runs npx skills add haseeb090/3d-world-building,
34
+ passing flags such as -a codex -g on
35
+ new <folder> [--world ${names}] [--theme name]
36
+ start a site that already builds and rides
37
+ worlds list the example worlds
38
+
39
+ The skill itself is in skills/3d-world-building: an agent reads SKILL.md there and takes it from the interview.`)
40
+ process.exit(command && command !== "help" && command !== "--help" ? 1 : 0)
41
+ }
package/package.json CHANGED
@@ -1,6 +1,40 @@
1
1
  {
2
2
  "name": "3d-world-building",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.3.0",
4
+ "description": "An agent skill that builds websites which are 3D worlds travelled by scrolling: any world, made in code, with a palette designed from the brief.",
5
+ "license": "MIT",
6
+ "author": "Haseeb Khizar (https://github.com/haseeb090)",
7
+ "homepage": "https://haseeb090.github.io/3d-world-building/",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/haseeb090/3d-world-building.git"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/haseeb090/3d-world-building/issues"
14
+ },
15
+ "bin": {
16
+ "3d-world-building": "bin/cli.cjs"
17
+ },
18
+ "files": [
19
+ "bin",
20
+ "skills",
21
+ "README.md",
22
+ "LICENSE"
23
+ ],
24
+ "engines": {
25
+ "node": ">=20.9.0"
26
+ },
27
+ "keywords": [
28
+ "agent-skill",
29
+ "agent-skills",
30
+ "claude-code",
31
+ "codex",
32
+ "three.js",
33
+ "react-three-fiber",
34
+ "next.js",
35
+ "webgl",
36
+ "scroll",
37
+ "3d",
38
+ "3d-website"
39
+ ]
40
+ }
@@ -0,0 +1,152 @@
1
+ ---
2
+ name: 3d-world-building
3
+ license: MIT
4
+ description: Build a website that is a 3D world the visitor travels through by scrolling, page after page (Next.js App Router, React Three Fiber, three.js). Any world, made in code - natural terrain, a temple approach, a coffee shop interior, a street, a workshop, a factory line, orbit - for a person, a product, a place or a company. It interviews for the source material (a previous website, a CV or LinkedIn export, product details, photos of a place), proposes worlds and colour palettes designed from that brief as real options to choose between, scaffolds a site that already runs, audits every frame, and applies measured performance work so it runs on weak devices. Use this skill whenever the user asks for a 3D website, a 3D journey or walkthrough, a cinematic, immersive or scroll-story site, a 3D portfolio or landing page, a virtual tour of a place, or wants to extend, restyle, audit or optimise such a site, even if they only say "make my site more cinematic" or "turn my shop into an experience".
5
+ ---
6
+
7
+ # 3D World Building
8
+
9
+ A site made with this skill is one 3D world and many rides through it. The scene is mounted once
10
+ and keeps running from page to page. Each page hands it a **journey**: a rail for the camera,
11
+ where the light stands, notes pinned to places in the world, and how much of the world is built.
12
+ The page's copy is ordinary HTML that scrolls over the scene, and the scroll position is the
13
+ ride's clock.
14
+
15
+ The skill carries no look of its own. The world, its buildings or landscape, its palette, its
16
+ light, how things are shaded and how the notes are drawn are all designed for the site in hand,
17
+ from its own brief. What it does carry is what makes that fast and safe: a builder for any kind
18
+ of world, ten example worlds of different kinds, an engine that paces itself, the order of
19
+ work, and the lessons of two earlier builds.
20
+
21
+ ## What is in this folder
22
+
23
+ | Path | What it is | Read it |
24
+ |---|---|---|
25
+ | `references/interview.md` | What to ask for and how to turn it into a brief | First, before any design |
26
+ | `references/world-ideas.md` | A catalogue of worlds by kind: who each suits, what it is made of, how the ride goes | When proposing worlds |
27
+ | `references/world-design.md` | Turning the brief into a world, rides, a palette and a look | Before the concept stage |
28
+ | `scripts/new-site.cjs` | One command that lays down a new site that already builds and rides | To start a site |
29
+ | `worlds/` | Ten example worlds of different kinds: `valley` (open country), `temple` (buildings and gardens), `cafe` (an interior), `harbour` (land meeting water), `reef` (under water), `street` (a street after dark), `factory` (a place of work), `desk` (a small world), `orbit` (no ground at all), `network` (a structure in open space) | Start from the nearest; read the others for technique |
30
+ | `starter/` | The new site's own files: the builder, terrain, scatter and shading, the theme, the app | To see what a new site begins as |
31
+ | `starter/components/journey/journeys/README.md` | The journey API: every field a page can set | When writing a page |
32
+ | `references/architecture.md` | How the engine and the world-building layer fit together | Before changing either |
33
+ | `references/performance.md` | What makes it cheap to run, in order of payoff, and what was tried and thrown out | Before the performance pass, and before changing the frame loop |
34
+ | `references/measuring.md` | How to measure honestly: weak-GPU stand-in, real pace, pixel comparison | Before any number is quoted |
35
+ | `references/copy-motion.md` | Entrances for the copy over the world, in each world's own hand: headings arriving, key phrases marked, all played once and measured | When the copy reads flat next to the journey, before animating any text |
36
+ | `references/review-and-shipping.md` | Auditing frames and motion, showing work, shipping, cleaning up | Before showing anything |
37
+ | `scripts/` | Capture, check and measure tools (`scripts/README.md`) | When checking or measuring |
38
+
39
+ ## The order of work
40
+
41
+ Work in this order. Each stage ends in something the owner can say yes or no to, which is what
42
+ keeps weeks from going into a direction they then reject (it happened twice on the first build).
43
+
44
+ 1. **Interview.** Ask for the sources, read them, ask only what they leave open, and write the
45
+ brief. Design nothing yet. → `references/interview.md`
46
+ 2. **Skeleton.** Scaffold the site (below) from the example world nearest in kind, and put the
47
+ owner's name in. It rides from the first minute.
48
+ 3. **Concept.** Two or three worlds, and two to four palettes, each designed from the brief and
49
+ shown as a real option in the skeleton: a world file of plain shapes with a home ride, a
50
+ theme in the picker. They are judged by scrolling them, not by reading about them. Recommend
51
+ one of each and say why; the owner picks, or takes the recommendation.
52
+ → `references/world-ideas.md`, `references/world-design.md`
53
+ 4. **World and pages.** Build the home journey first, then the other pages as rides through the
54
+ same world. One page at a time, each checked as it lands. Give the copy its own entrances in
55
+ the world's hand, so it holds its own against the scene. → `references/copy-motion.md`
56
+ 5. **Audit.** Every beat of every page, at several scroll positions and window sizes, and the
57
+ motion driven by hand. Fix what is off before the owner sees it. → `references/review-and-shipping.md`
58
+ 6. **Performance.** The engine already paces itself; measure the new world on a weak GPU and a
59
+ slowed CPU and fix what the numbers show. → `references/performance.md`, `references/measuring.md`
60
+ 7. **Ship.** Tests, build, the page checks, push on the owner's word, then open the live site in
61
+ a real browser. Remove what the release does not use in the same commit.
62
+
63
+ For a smaller request on an existing site (a new page, a slow page, a new palette, a look that
64
+ is off), skip to the reference that covers it.
65
+
66
+ ## Starting a new site
67
+
68
+ ```bash
69
+ node <skill>/scripts/new-site.cjs <folder> --world valley # or any in worlds/index.json
70
+ cd <folder> && npm install && npm run dev # http://localhost:3000
71
+ npm test # journeys, world, theme, pacing
72
+ ```
73
+
74
+ What comes out is a complete Next.js app (App Router, JavaScript): the chosen example world, a
75
+ home page of four beats, a second page that shows the scene cutting from one ride to another
76
+ without reloading, a loader, a phone layout, a bar for comparing palettes, and every pacing rule
77
+ in `references/performance.md`. Each example was built, served and pictured as it stands. Then:
78
+
79
+ - `data/site.js`: the site's name and address.
80
+ - `components/journey/theme.js`: the look. Replace the placeholder themes with ones designed from
81
+ the brief.
82
+ - `components/journey/world/world.js`: the world. Replace the example with the subject's own,
83
+ using `build.js`, `terrain.js` and scatter.
84
+ - `components/journey/journeys/` and `routes/copy.js`: a journey and its words for each page.
85
+
86
+ If the installed Next.js is newer than the one you know, read its own docs in
87
+ `node_modules/next/dist/docs/` before writing anything Next-specific.
88
+
89
+ A world may also say what drifts in its air (`AIR`: dust, snow, rain, leaves, fireflies,
90
+ embers, bubbles) and how its water moves (`waves`). Every example has one or the other; see
91
+ `references/world-design.md` for when a world wants them.
92
+
93
+ ## Companion skills
94
+
95
+ This skill owns the world, the rides, the engine and its performance. The page that floats over
96
+ the world (type, panels, buttons, the header, forms, the words of the loader) is ordinary web
97
+ design, and a design skill does that part well. None is required. If one is installed, use it
98
+ there, once the world and the palette are chosen:
99
+
100
+ - **impeccable** (`npx skills add pbakaus/impeccable`). Treat the site as its *Experience* mode:
101
+ the world is the subject and the page layer is a guest in it. Its critique, typeset, layout,
102
+ polish and audit passes suit the routes and their CSS. Two of this skill's rules hold over
103
+ it: every colour still comes from `theme.js` (the page reads the `--j-*` variables, and no
104
+ stylesheet names a colour of its own), and nothing may hide the world the copy is about.
105
+ - Any other design skill, on the same terms.
106
+
107
+ Say which companion was used, and what it changed, when showing the work. Without one, the page
108
+ rules in `references/world-design.md` are enough.
109
+
110
+ ## Rules that hold everywhere
111
+
112
+ Each of these cost a round of rework to learn. The reasons matter more than the wording: apply
113
+ the reason when a case is not listed.
114
+
115
+ - **Design the look for this site.** The example worlds and the themes that come with the
116
+ starter are placeholders that prove the machinery. A real site's world, palette, light,
117
+ shading and notes come from its own brief. Never carry one site's look into another, and
118
+ never ship a placeholder as the design.
119
+ - **Offer choices as real options on the page**, with labels in plain words that say what each
120
+ is for and which one is live, and recommend one. Described options get approved and then
121
+ rejected on sight. Where the owner would rather not choose, take the recommendation and say
122
+ which it was.
123
+ - **Never invent a fact.** Dates, numbers, employers, clients and product claims come from a
124
+ source the owner gave or confirmed. The site is read as their word.
125
+ - **Ask what must not appear** before writing any copy or diagram: unreleased work, client and
126
+ supplier names, personal contact details, a face. Then guard it with a test, because a later
127
+ edit by someone who did not hear the answer will otherwise put it back.
128
+ - **Show it in the world, do not list it.** A section of copy that has no place in the scene
129
+ showing it reads as a slideshow with a 3D wallpaper.
130
+ - **The camera holds one view while the visitor reads** and turns only between stops. Sway,
131
+ chasing a subject and cutting through a subject were each reported as faults.
132
+ - **In this engine a palette sets the light and the page.** The paints of things belong to the
133
+ world and are baked in when the page loads, so a palette that recolours things needs a reload
134
+ or world paints that read the theme.
135
+ - **Whatever moves takes its time from the scene's clock**, never from a count of frames or a
136
+ timer of its own. The scene is not drawn on every frame the display shows, so frame counts lie.
137
+ - **A performance change that alters a pixel is a design change.** Put it behind a switch on the
138
+ page and let the owner choose. Compare frames to prove the ones that claim to change nothing.
139
+ - **Measure before and after, at the pace the page really runs.** Flat-out timings on an
140
+ integrated GPU mislead in ways `references/measuring.md` explains.
141
+ - **Stills hide motion faults, and a passing build hides a blank scene.** Scroll the page
142
+ yourself in wheel-sized steps and look at the pictures before saying it is ready. A contact
143
+ sheet of chosen frames once hid fourteen faults; this skill's own starter once built cleanly,
144
+ ran without an error and drew nothing, until its frames were looked at.
145
+ - **Commit and push only when the owner says so**, and say plainly what was not checked.
146
+
147
+ ## When the work is done
148
+
149
+ Leave the project able to carry on without this conversation: the brief in the repo, the README
150
+ beside the journeys kept true, tests that guard the form of every journey, the theme's
151
+ legibility and the things that must not appear, and notes in memory for what the owner said
152
+ that no file records.
@@ -0,0 +1,7 @@
1
+ interface:
2
+ display_name: "3D World Building"
3
+ short_description: "Websites your visitors travel through: a 3D world built in code"
4
+ icon_small: "./assets/icon.svg"
5
+ icon_large: "./assets/icon.png"
6
+ brand_color: "#4B55A6"
7
+ default_prompt: "Use $3d-world-building to turn my site into a 3D world visitors travel through by scrolling. Start with the interview."
@@ -0,0 +1,26 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="512" height="512">
2
+ <defs>
3
+ <linearGradient id="sky" x1="0" y1="0" x2="0" y2="1">
4
+ <stop offset="0" stop-color="#151a3a"/>
5
+ <stop offset="0.5" stop-color="#4b55a6"/>
6
+ <stop offset="0.82" stop-color="#d98f86"/>
7
+ <stop offset="1" stop-color="#f6b783"/>
8
+ </linearGradient>
9
+ <clipPath id="tile"><rect width="512" height="512" rx="112"/></clipPath>
10
+ </defs>
11
+ <g clip-path="url(#tile)">
12
+ <rect width="512" height="512" fill="url(#sky)"/>
13
+ <g fill="#fff6e4">
14
+ <circle cx="92" cy="96" r="4"/><circle cx="168" cy="62" r="3"/><circle cx="410" cy="84" r="4"/>
15
+ <circle cx="350" cy="140" r="2.5"/><circle cx="62" cy="178" r="2.5"/><circle cx="246" cy="112" r="3"/>
16
+ </g>
17
+ <circle cx="350" cy="250" r="60" fill="#ffd27a"/>
18
+ <path d="M0 318 C 96 270 178 292 258 312 C 340 332 428 286 512 296 V512 H0 Z" fill="#46638a"/>
19
+ <path d="M0 384 C 110 344 214 374 300 366 C 392 358 452 334 512 350 V512 H0 Z" fill="#2d4c58"/>
20
+ <path d="M0 448 C 120 416 254 452 356 438 C 430 428 476 418 512 424 V512 H0 Z" fill="#1b3033"/>
21
+ <path d="M300 520 C 250 462 196 430 182 390 C 172 362 176 338 186 318" fill="none" stroke="#fff4dc" stroke-width="13" stroke-linecap="round" stroke-dasharray="0 27"/>
22
+ <rect x="148" y="232" width="76" height="46" rx="11" fill="#fff4dc" fill-opacity="0.9"/>
23
+ <path d="M176 278 L186 294 L196 278 Z" fill="#fff4dc" fill-opacity="0.9"/>
24
+ </g>
25
+ </svg>
26
+