К основному содержанию
скилл CX Codex

motlab-assets — скилл для Claude Code: что делает и как установить

Скилл motlab-assets для Claude Code создаёт наборы графики и 3D-моделей в виде кода без нейросетей. Сохраняет иконки, текстуры и модели в общий кит для видео.

MIT ★ 357 обновлён 2026-11-17

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add staryone/motlab --skill motlab-assets -a claude-code
Открыть на GitHub

Что делает motlab-assets

Скилл motlab-assets собирает векторные логотипы, 2D-персонажей с ригом, фоны и 3D-объекты из исходников на SVG, Canvas, three.js или скриптов для Blender. Конечные файлы — прозрачные PNG, векторные SVG, а также 3D-форматы GLB, FBX и OBJ с запечёнными PBR-текстурами — генерируются движком motlab, браузером Chrome или Blender.

Элементы сохраняются в каталог с правилами style.md, токенами tokens.json и манифестом kit.json. Для создания трёхмерных моделей предложено два пути: лёгкий через функции расстояний (SDF) на Python и Chrome, либо основной через Blender от версии 4.2 с поддержкой материалов и ригов Rigify.

Для работы требуются Python 3 с библиотеками numpy, scipy и Pillow, а также установленный движок motlab. Прямое ручное редактирование готовых PNG или GLB исключено: любые правки вносятся только в исходный код ассета.

Какие задачи решает

  • создавать векторную графику и иконки кодом без нейросетей
  • собирать 3D-модели в форматах GLB, FBX и OBJ с PBR-текстурами
  • поддерживать единый стиль видео через токены и правила кита
  • готовить 2D-персонажей с ригом и слоями для анимации

Примеры запросов агенту

  • Собери набор векторных иконок для нового видео по палитре из брендбука
  • Создай 3D-модель кружки через лёгкий путь SDF и экспортируй в GLB
  • Добавь нового 2D-персонажа с ригом в текущий кит оформления

Как установить motlab-assets

1Через Skills CLI (Vercel)

npx skills add staryone/motlab --skill motlab-assets -a claude-code

2Вручную: положить файлы

~/.claude/skills/motlab-assets/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/motlab-assets/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о motlab-assets

Как установить motlab-assets в Claude Code?

Выполните команду npx skills add staryone/motlab --skill motlab-assets -a claude-code. Либо сохраните файл по пути ~/.claude/skills/motlab-assets/SKILL.md.

Что делает motlab-assets?

Скилл генерирует визуальные элементы через код без использования генеративных нейросетей. Он экспортирует графику в форматах SVG, PNG, GLB, FBX и OBJ, организуя файлы в повторяемый набор.

Что нужно для работы motlab-assets?

Требуется Python 3 с пакетами numpy, scipy и Pillow, а также движок motlab. Для полного 3D-конвейера с запеканием текстур понадобится Blender версии 4.2 или новее.

Исходный текст

SKILL.md · MIT
---
name: motlab-assets
description: Make reusable assets as code for motlab videos, without any AI image, video or 3D generator: icons, illustrations, vector logos, rigged 2D characters, 3D objects, transitions, textures and backgrounds, kept in one kit so every video looks the same. Outputs transparent PNG plus SVG, or GLB, FBX and OBJ with PBR textures. Use whenever someone asks for assets, an asset kit, a mascot, an icon set, a 3D model or textures, even if they never say motlab.
---

# motlab-assets

Build assets as code and keep them in a **kit**: one folder with the style rules, the source of every asset and its
rendered files. A motlab video copies the kit into its project and draws from it, so the tenth video looks like the
first. Nothing here uses an AI image, video or 3D model: you write SVG, canvas, three.js and Blender code, and
ordinary renderers (Chrome, Blender) draw the pixels.

**The source is the asset.** Every asset has a source file you wrote (`source.svg`, `parts.svg` + `rig.json`,
`build.py`, `transition.js`). PNG, GLB, FBX, OBJ and texture maps are outputs of that source. A change is made in the
source and the outputs are rendered again; never edit an output by hand. That is what keeps variations consistent.

**Good references in, good assets out.** Work from the user's references: brand guidelines, logos, product photos,
sketches, screenshots, a 3D viewer recording, style examples. If a reference is too small or missing, ask for a better
one. Don't draw a logo or a real product from memory.

## Tools

- This skill's folder: `scripts/` and `templates/` below.
- The motlab engine: run `motlab --help` once; it prints the engine folder. The motlab skill's scripts are in
  `<engine>/skills/motlab/scripts/`: `blender/kit.py` and `blender/mesh_from_sdf.py` (3D), `grid.py` (read coordinates
  off a reference), `get_font.py` (Google Fonts). `motlab stills` renders every PNG on the 2D and light 3D paths.
- Python 3 with numpy, scipy and Pillow (the motlab skill's `requirements.txt`). Commands say `python`; on macOS and
  Linux it may be `python3`.
- Blender, only for the main 3D path (below).

## The workflow

1. **Brief.** Ask what the assets are for (which videos, which brand or series), what is needed now, the sizes and
   orientation they will be used at, and which files the user wants besides PNG (SVG, GLB, FBX, OBJ, textures). Ask
   where the kit lives; the default is `kits/<name>/` in the user's workspace, outside any one video.
2. **Read the kit, if there is one.** Read `kit.json`, `style.md` and `tokens.json` first. New assets follow them. If a
   new asset needs a rule the kit does not have yet, add it to `style.md` and say so.
3. **References.** List and measure everything (size, format). Run `python scripts/palette.py <refs>` for the main
   colours. Write down what you can measure: line weight, corner radius, proportions, light direction, materials.
4. **Lock the style before building many assets.** For a new kit, write `tokens.json` and `style.md`
   (`references/kit.md`), build one hero asset, render it, and show the user a sheet with it next to the references.
   Wait for their OK here: a wrong style copied into twenty assets is twenty fixes. After that, build the rest without
   stopping.
5. **Build each asset** from its reference file:
   - 2D (icons, illustrations, logos, backgrounds, patterns, 2D characters, transitions): `references/2d.md`.
   - 3D (objects, products, simple characters, textures): `references/3d.md`. **Offer the two 3D paths first** (below).
6. **Render and export.** Each asset's folder gets its outputs (`references/kit.md` has the names). PNGs are transparent
   and at least 2x the largest size the asset will be shown at.
7. **Check it yourself.** `python scripts/sheet.py <sheet.jpg> <asset outputs> <refs>` and look at it: shapes against the
   references, edges on the checker (halos, missing alpha), sharpness at full size. `python scripts/palette.py check
   tokens.json <pngs>` for colour drift. For 3D, re-import every exported file (`asset3d.py check`) and look at the GLB
   through `templates/model.html`, which is how a motlab scene will show it.
8. **Hand over.** Update `kit.json`, rebuild the kit's `sheet.jpg`, and show the user the sheet and the list of files.
   Say what you could not check (an FBX opened in another program, a rig in motion, a texture at close range).
9. **Revisions.** The user names the asset and the change. Edit its source, render again, check again, and report what
   changed. Before a change that touches many assets, copy the kit to `backup/<n>/` inside it.

## The two 3D paths

When the user wants a 3D asset, say what each path gives and let them choose:

| | Light path | Main path |
|---|---|---|
| Needs | Python + Chrome only | Blender (4.2 or newer; tested on 5.2) |
| Model from | distance functions (`mesh_from_sdf.py`) | distance functions, Blender modelling, a GLB/OBJ the user owns, MPFB humans |
| Files | GLB, OBJ + MTL, PNG | GLB, FBX, OBJ + MTL, baked PBR textures (base colour, roughness, normal, AO), PNG |
| Materials | one flat colour, roughness and metalness per part | any Blender material, baked into textures |
| Rig | none | Rigify or MPFB armatures in FBX and GLB |
| PNG | three.js turntable (`templates/model.html`) | Cycles turntable, path traced |
| Time | seconds | about 30 s for the test mug: bake 7.5 s, export 2.3 s, four 1024 px views 16.5 s (RTX 3060 Laptop) |

For the main path, check the machine before promising anything, and tell the user what you found:

1. **Blender.** Find it: `blender` on PATH, `C:\Program Files\Blender Foundation\Blender <version>\blender.exe`,
   `/Applications/Blender.app/Contents/MacOS/Blender`, `/opt/homebrew/bin/blender`. If it is missing, say so and how to
   get it (blender.org, or `winget install BlenderFoundation.Blender` on Windows), and offer the light path meanwhile.
2. **Add-ons.** Run `blender -b -P scripts/blender/check_blender.py`. It prints the version, the GPU Cycles will use,
   and whether MPFB (human characters), a Blender MCP add-on and Rigify are installed and on. MPFB is needed only for
   human characters; without it, build characters from shapes.
3. **Blender MCP.** Also look for Blender MCP tools in this session (tool names with `blender` in them). If they are
   there, use them to show the user the model live in their own Blender window while it is built. If not, say it is
   not installed and carry on: every export and render goes through `blender -b -P build.py` either way, because
   `build.py` is the asset's source, a background run gives the same result every time, and MCP export calls can time
   out on large files. Point the user to the MCP's install guide only if they want the live view. Through the MCP,
   `kit.py` and `asset3d.py` import and run in the user's Blender (bake and export of a small mug took 2.3 s), but
   operators that need an active object, such as `bpy.ops.mesh.primitive_cylinder_add`, fail there: build meshes with
   `bmesh` and the data API instead.

## Kit layout

```
kits/<name>/
  kit.json        what is in the kit: assets, their sources and outputs, licences
  style.md        the style rules, in numbers where possible
  tokens.json     colours, fonts, line weight, radii, shadow, light and lens
  refs/           copies of the references the kit was built from
  2d/<asset>/     source.svg, asset.html, <asset>@4x.png
  chars/<name>/   parts.svg, rig.json, turnaround.svg, <name>@4x.png, poses.png
  3d/<asset>/     build.py, mesh/, <asset>.glb, <asset>.fbx, <asset>.obj + .mtl, textures/, turntable/
  transitions/<name>/  transition.js, transition.html, frames/ (PNG sequence with alpha)
  sheet.jpg       every asset on one sheet
```

`references/kit.md` has the formats of `kit.json`, `tokens.json` and `style.md`.

## Using a kit in a motlab video

Copy (never move) the kit into the video's project: `<video>/assets/kits/<name>/`, because the viewer and the renderer
only serve the project folder. Read its `style.md` and `tokens.json` before building scenes, and load assets from
there: PNGs and SVGs as images, a character through `svgparts.js`, a GLB in the motlab skill's `template-three.html`,
a transition by importing its `transition.js`. When the kit changes later, copy it again.

## Keep it above board

- Only build from references the user owns or may use, and only rebuild brands and products they own or have
  permission for. Record each reference's source in `kit.json`.
- Downloaded CC0 material (Poly Haven HDRIs and textures) and MPFB's CC0 assets still go in `kit.json` with where they
  came from.
- Fonts keep their licences; note them in `tokens.json`.
- No real people's likenesses without their consent.

## Scripts and templates

- `scripts/palette.py`: main colours of references; `check` measures assets against `tokens.json`.
- `scripts/sheet.py`: labelled review sheet of any images, transparency on a checker.
- `scripts/mesh_export.py`: light path, `.npz` meshes to GLB and OBJ + MTL with flat PBR colours.
- `scripts/blender/asset3d.py`: main path, `bake()`, `export()`, `turntable()`, and `check` to re-import files.
- `scripts/blender/check_blender.py`: Blender version, GPU and add-ons.
- `templates/asset.html`: SVG files to transparent PNG at any `--scale`.
- `templates/svgparts.js`: a rigged 2D character from `parts.svg` + `rig.json`, posed in a scene.
- `templates/transition.js` and `transition.html`: a transition as a layer over a hard cut, and its preview.
- `templates/model.html`: turntable stills of a GLB through three.js, transparent.

## Where to read more

| When you are… | Read |
|---|---|
| starting a kit, writing tokens and style rules, naming files | `references/kit.md` |
| making icons, illustrations, logos, backgrounds, 2D characters or transitions | `references/2d.md` |
| making 3D objects, characters or textures | `references/3d.md` |
| modelling a product from reference in Blender | the motlab skill's `references/blender.md` |

© staryone · MIT · staryone/motlab

Похожие скиллы

Все скиллы по теме «Дизайн» →
blender-pbr-materials blender-agent-skills Скилл blender-pbr-materials для Claude Code настраивает PBR-материалы и текстурные карты для Blender 5.3 по правилам игровых движков. CX Codex +1 644установок blender-materials RobLe3 Скилл blender-materials для Claude Code: создаёт и назначает PBR-материалы в Blender через Principled BSDF — металл, стекло, пластик, ткань, кожу. Выполняет запросы «как медь» или «матовую поверхность». CX Codex +1 3 100установок archviz https://github.com/arjun988 Скилл archviz для Claude Code и Codex задаёт правила архитектурной визуализации в Blender через MCP. Управляет масштабом, ракурсами камер, PBR-материалами и рендером сцен. CX Codex +1 619установок blender-texturing blender-agent-skills Скилл blender-texturing для Claude Code автоматизирует создание текстур и слоёв умных материалов в Blender 5.3. Запускается при настройке износа, грязи или декалей на 3D-моделях. CX Codex +1 431установок 3d-asset-production calesthio Скилл 3d-asset-production для Claude Code превращает модели, сканы и генеративную геометрию в готовые активы для движков, веба и DCC. Он запускается при подготовке игровых ассетов, запекании текстур и экспорте в GLTF, USD или FBX. CX Codex +1 148установок scenario-blender-texturing-shading scenario-labs Скилл scenario-blender-texturing-shading для текстурирования и look-dev в Blender: собирает PBR-материалы из текстурных наборов, рисует маски и грязь, разбирается с цветовыми пространствами. CX Codex +1 1 100установок

Из того же набора2

Спонсоры проекта

Компании, которые помогают держать аналитику открытой