adaengine/ada/ada-voxel-models
Claude Code and agent skill by adaengine/ada
- community
Checking that the SKILL.md file is still in the repository.
Generate MagicaVoxel (.vox) models from an AdaScript program in Ada Studio, then place them in a scene with Model3DSource.
Install
npx vskill@latest install adaengine/ada/ada-voxel-modelsSKILL.md
Ada Studio Voxel Models
Use this to create props, characters, terrain pieces and sprites-in-3D as .vox files without external tools. Python, MagicaVoxel and Blender are not available; the model is described in AdaScript and Studio writes the file.
- Read
editor.project.contextfor the Assets root. Pick a new destination such asAssets/Models/tree.vox;editor.voxel.generatenever overwrites, so use a new name for each revision. - Call
editor.voxel.generatewithsource(the script) anddestination. The script runs in an isolated VM: no files, network, scene or engine access, a 64 KiB source limit and a small time/step budget. Errors come back as text; fix the script and call again. - Read the result:
size,voxelCount,paletteIndicesUsedandassetReference(@res://...). Check them against what you intended before placing the model. - Read
editor.components.describewith queryModel3DSource, add that component and a Transform to an entity, and setsourceto theassetReference. One voxel is 0.1 world units by default (voxelSizesetting), so a 32-voxel tree is 3.2 units tall. Preserve unrelated payload fields and pass the current scene revision. - Build, run visible Play and inspect a completed frame before claiming the model looks right. Generation proves the file is valid, not that it reads well.
Script API
Define func build(model). Call model.size first, once. Coordinates are whole numbers; x right, y forward, z up (MagicaVoxel space; the importer maps it to the engine's Y-up). Maximum size is 256 per axis. Painting outside the model is clipped for shapes and an error for voxel.
| Call | Meaning | |
|---|---|---|
model.size(x, y, z) | Grid size, 1...256 per axis. | |
model.palette(index, r, g, b) | Palette color, index 1...255, channels 0...255. Unset indices are gray. | |
model.voxel(x, y, z, color) | One voxel. Color 0 erases. | |
model.box(x0, y0, z0, x1, y1, z1, color) | Filled box, corners inclusive, any order. | |
model.sphere(x, y, z, radius, color) | Filled sphere; the center and radius may be fractional. | |
model.cylinder(x, y, z0, z1, radius, color) | Vertical cylinder from z0 to z1. | |
model.colorAt(x, y, z) | Current color index, 0 when empty. |
Later calls overwrite earlier ones, so paint large shapes first and details last. Carve with color 0.
Craft
- Work at a consistent scale: roughly 16 voxels for small props, 32 for characters, 64-128 for buildings. Larger grids cost more to mesh and draw.
- Use few, distinct palette entries (4-12) with clear light/mid/dark steps; flat color blocks read better than noise.
- Prefer shapes and loops over many
voxelcalls: shape calls are native and do not use the script budget, while loops over thousands of cells can hit the step limit. - For symmetry, paint one half and mirror it with a loop over
colorAt/voxel, or use symmetric shape pairs. - Keep the model centered in its grid: the pivot is the center of the box.
- Only the supported calls above exist; do not use
print, files, imports orSystem. A script that fails validation is rejected before running.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingEditor/Sources/AdaEditor/Assets/AgentSkills/ada-voxel-models/SKILL.md
Popularity
- Repository stars
- 226
- Repository forks
- 9
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/adaengine/ada/ada-voxel-models)