hayba-material-instance-variants

hayba-material-instance-variants is a skill for Claude Code, Codex from zajalist/hayba. It costs 27 tokens per session (338 once invoked), scanned A, original, MIT.

A workflow for making several Unreal Engine material instances from one parent material. A material instance is a reusable variation of a surface, such as a different color or texture, without changing the shared parent.

In plain words
What is it for?
It helps inspect a parent material, create missing variants, set confirmed parameters, apply them to a copied mesh, compare the result, validate assets, and check which assets reference an instance.
Why use it?
It prevents inconsistent parameters, unclear asset naming, and accidental changes to materials used elsewhere. It also provides a controlled way to compare variants on a test mesh.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps inspect a parent material, create missing variants, set confirmed parameters, apply them to a copied mesh, compare the result, validate assets, and check which assets reference an instance.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zajalist/hayba/hayba-material-instance-variants
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add zajalist/hayba --skill hayba-material-instance-variants
Clone the repo
git clone --depth 1 https://github.com/zajalist/hayba

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hayba-material-instance-variants

README.md
[![agentmods](https://agentmods.dev/badge/skills/zajalist/hayba/hayba-material-instance-variants/github.svg)](https://agentmods.dev/skills/zajalist/hayba/hayba-material-instance-variants)
Your own site
<a href="https://agentmods.dev/skills/zajalist/hayba/hayba-material-instance-variants"><img src="https://agentmods.dev/badge/skills/zajalist/hayba/hayba-material-instance-variants/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for hayba-material-instance-variants

Your own site · 80×15
<a href="https://agentmods.dev/skills/zajalist/hayba/hayba-material-instance-variants"><img src="https://agentmods.dev/badge/skills/zajalist/hayba/hayba-material-instance-variants.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 338 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.00338
Opus 5.5 $0.00011 $0.00135
Sonnet 5.5 $0.00005 $0.00068
Haiku 4.5 $0.00003 $0.00034

Measured 13d ago against content hash e34a961c2ea5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

hayba-material-instance-variants scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

mcp-tools/hayba-mcp/addons/workflows/hayba-material-instance-variants/SKILL.md · 24 lines

What it actually says

Build a controlled material variant set

When to use

Use when the same parent material needs a few deliberate surface variants for gameplay or art direction. Define their use cases, allowed parameter ranges, texture budget, and naming before creating assets. Prefer an existing instance when it already represents the intended surface.

Tool routing

  • Inspect the parent and existing instances through material_get_info and material_list. Read actual exposed parameter names and types. Use material_create_instance for each missing variant, then material_set_param only for confirmed scalar, vector, or texture parameters. Re-read material_get_info after each change.
  • Make a test copy with asset_duplicate, then apply a candidate with mesh_set_material_slot to that copied StaticMesh. The setter saves the mesh asset and changes its shared material slot. Compare editor_capture_viewport from the same camera under representative lighting. Use material_validate on the parent graph and asset_validate on the instance; save accepted material instances with asset_save.
  • Check asset_get_referencers before modifying or replacing an instance used elsewhere. A texture substitution can alter memory and streaming, so route large texture changes to the texture budget workflow rather than assuming a cheap variant.

Evidence

Report parent and variant paths, parameters and readback, representative captures, validation warnings, affected referencers, and any measured budget. A different color swatch does not prove the material reads correctly across all lighting or meets runtime shader cost.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago First seen · 24 lines · 27 tokens per session scan A e34a961c2ea5

Subscribe to this mod's changes

hayba-material-instance-variants is a skill published in the GitHub repository zajalist/hayba (13 stars, last pushed 3d ago), licensed MIT. It adds 27 tokens to every session and 338 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-04.

Related

Other skills, from other repositories

controller-ui

Use when building or reviewing Air Jam controller surfaces so touch controls stay simple, readable, and game-appropriate instead of drifting into dense web-app UI patterns.

vucinatim/air-jam · 34 tokens

host-surface

Use when building or reviewing the Air Jam host shell so the active game surface stays full-frame, overlays stay modular, and host UI does not interfere with gameplay layout.

vucinatim/air-jam · 37 tokens

pn-spatial-ux-patterns

Spatial interaction design, AR/VR/XR UX patterns. Depth, scale, ergonomics, interaction zones, text legibility. Use for immersive interface design.

perniemann/pnCore · 40 tokens

ux-design

Section-by-section UX spec authoring for a screen, flow or HUD. Reads the player journey to provide context; also project-wide accessibility.

Donchitos/Claude-Code-Game-Studios · 31 tokens

level-actors

List, find, place, move, rotate, and modify actors in the current level (ActorService + editor subsystems). Use when the user asks to find/list actors in the level, move or rotate an actor, set an actor's properties/folder/transform, or spawn/delete level actors.

kevinpbuckley/VibeUE · 64 tokens

materials

Create and edit materials and material instances — graph nodes, parameters, functions, custom HLSL, and instance overrides (MaterialService + MaterialNodeService). Use when the user asks to create or edit a material/material instance, wire material nodes, add material parameters, set blend/shading modes, or recreate a…

kevinpbuckley/VibeUE · 95 tokens