Agent Skills
› jasonkneen/tiny-world-builder
› tinyworld-tinyverse-race-track
tinyworld-tinyverse-race-track
GitHub定义 Tinyverse 赛道系统的开发规范,涵盖地面与悬空岛屿的几何构建、材质复用、动静分离及动画逻辑。规定 HUD 显隐、Watch 模式相机控制及公开 API 接口,确保系统隔离性与性能优化。
Trigger Scenarios
修改 Tinyverse 赛道地面或桥梁几何体
调整赛车模型或展示钩子逻辑
实现赛道启动、停止或观看模式功能
Install
npx skills add jasonkneen/tiny-world-builder --skill tinyworld-tinyverse-race-track -g -y
SKILL.md
Frontmatter
{
"name": "tinyworld-tinyverse-race-track",
"description": "Use when changing the Tinyverse ground-surface race track, perimeter bridge loop, rally karts, or poser-surface show\/hide hook."
}
Tinyverse Race Track
The race track lives in engine/world/61-tinyverse-race-track.js.
Rules:
- Keep the system isolated from avatar files. The track wraps
window.__tinyworldPoserSurface.{build,show,hide}and attaches one root group under the poser-surface group. - Respect sky-island vs ground-surface separation: do not add race-track meshes
to
worldGroupdirectly and do not mutate editable island or home-grid cells. - The poser surface scales Y three times harder than X/Z. Keep
root.scale.y = 1 / 3and multiply sampled terrain heights by3before placing track/kart geometry. - Use existing TinyWorld material families (
M.path,M.pathTrim,M.bridgeWood,M.bridgeWoodD,M.castleStoneD) instead of new texture assets. Clone them locally when the track needsfog=falsereadability, but never mutate sharedM.*materials. - Keep static road/bridge pieces in a static subgroup and run
mergeStaticBaseMeshesByMaterial(...)after authoring. Dynamic karts should stay in their own subgroup and animate by transform only. - The HUD should be visible only while the poser surface is visible.
PS.hide()must hide it and clear active race state. - Keep an obvious user-facing entry point. The
Play rallylauncher should callwatch(), descend to the poser surface, frame the route from the ground layer, and start the race after the descent settles. Do not leave the rally as a console-only or hidden-key feature. - Watch mode may set
body.tinyverse-rally-watchto clear obstructive editor panels and use a lightweight follower camera. Keep this state scoped towatch()and clear it on hide. - Do not create a local
requestAnimationFrameloop. The module exposeswindow.__tinyworldRaceTrack._tick(dt), and25-animation-loop-schema.jscalls it from the main loop;_tickmust stay a fast no-op while hidden. - Public runtime hook:
window.__tinyworldRaceTrackexposesshow(),hide(),watch(),startRace(),stopRace(),rebuild(),group(), androuteLength().
Validation:
node --check engine/world/61-tinyverse-race-track.jsnode tools/check.js- Visual check: click
Play rallyor callwindow.__tinyworldRaceTrack.watch()and confirm the app descends to the ground islands, frames the road loop, shows the HUD, and starts moving karts.
Version History
- 2ffaf91 Current 2026-07-06 00:20


