wave5-post-transform-matrix-non-uniform-scale

wave5-post-transform-matrix-non-uniform-scale is a skill for Claude Code from dyCuong03/unity-agent-team. It costs 38 tokens per session (873 once invoked), scanned A, original, MIT.

A Unity ECS method for applying non-uniform scale through PostTransformMatrix after the normal position, rotation, and scale calculation. Non-uniform scale changes different axes by different amounts, such as making an object taller without making it wider.

In plain words
What is it for?
Use it for squash-and-stretch animation, terrain tile variations, and procedurally scaled geometry.
Why use it?
It keeps the standard transform data intact while adding a separate scale adjustment. It also helps distinguish runtime scaling from changes that should instead be baked into a static mesh.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it for squash-and-stretch animation, terrain tile variations, and procedurally scaled geometry.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dycuong03/unity-agent-team/wave5-post-transform-matrix-non-uniform-scale
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 dyCuong03/unity-agent-team --skill wave5-post-transform-matrix-non-uniform-scale
Clone the repo
git clone --depth 1 https://github.com/dyCuong03/unity-agent-team

Made for: Claude Code.

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 wave5-post-transform-matrix-non-uniform-scale

README.md
[![agentmods](https://agentmods.dev/badge/skills/dycuong03/unity-agent-team/wave5-post-transform-matrix-non-uniform-scale/github.svg)](https://agentmods.dev/skills/dycuong03/unity-agent-team/wave5-post-transform-matrix-non-uniform-scale)
Your own site
<a href="https://agentmods.dev/skills/dycuong03/unity-agent-team/wave5-post-transform-matrix-non-uniform-scale"><img src="https://agentmods.dev/badge/skills/dycuong03/unity-agent-team/wave5-post-transform-matrix-non-uniform-scale/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 wave5-post-transform-matrix-non-uniform-scale

Your own site · 80×15
<a href="https://agentmods.dev/skills/dycuong03/unity-agent-team/wave5-post-transform-matrix-non-uniform-scale"><img src="https://agentmods.dev/badge/skills/dycuong03/unity-agent-team/wave5-post-transform-matrix-non-uniform-scale.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 873 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.00038 $0.00873
Opus 5.5 $0.00015 $0.00349
Sonnet 5.5 $0.00008 $0.00175
Haiku 4.5 $0.00004 $0.00087

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

Security

Grade A, and why

wave5-post-transform-matrix-non-uniform-scale 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 11d 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.

.claude/skills/unity-dots/wave5-post-transform-matrix-non-uniform-scale/SKILL.md · 91 lines

How it starts

The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PostTransformMatrix — Non-Uniform Scale

Intent

Apply non-uniform scale to entities using PostTransformMatrix, which is multiplied into LocalToWorld after the standard TRS computation.

Use When

  • Non-uniform scale needed (e.g., (1, 2, 1) — taller but same width)
  • Squash-and-stretch animation, terrain tile variations, procedurally scaled geometry

Avoid When

  • Uniform scale is sufficient — use LocalTransform.Scale
  • Non-uniform scale is baked and static — bake into mesh vertices or baked matrix directly

Senior Pattern

// In a custom LocalToWorld system (IJobChunk):
[BurstCompile]
public struct ApplyPostTransformJob : IJobChunk
{
    [ReadOnly]  public ComponentTypeHandle<LocalTransform> LocalTransformHandle;
    public ComponentTypeHandle<LocalToWorld> LocalToWorldHandle;
    // Optional — null when absent from chunk
    [ReadOnly]  public ComponentTypeHandle<PostTransformMatrix> PostTransformMatrixHandle;

    [BurstCompile]
    public void Execute(in ArchetypeChunk chunk, int unfilteredChunkIndex,
        bool useEnableMask, in v128 chunkEnabledMask)
    {
        var transforms = chunk.GetNativeArray(ref LocalTransformHandle);
        var localToWorlds = chunk.GetNativeArray(ref LocalToWorldHandle);

        // One null check per chunk, not per entity:
        bool hasPost = chunk.Has(ref PostTransformMatrixHandle);
        NativeArray<PostTransformMatrix> postArr = hasPost
            ? chunk.GetNativeArray(ref PostTransformMatrixHandle)
            : default;

        var enumerator = new ChunkEntityEnumerator(useEnableMask, chunkEnabledMask, chunk.Count);
        while (enumerator.NextEntityIndex(out var i))
        {
            float4x4 trs = transforms[i].ToMatrix();
            localToWorlds[i] = new LocalToWorld
            {
                Value = hasPost ? math.mul(trs, postArr[i].Value) : trs
            };
        }
    }
}

// Add PostTransformMatrix in Baker for authoring-time non-uniform scale:
public override void Bake(MyAuthoring authoring)
{
    var entity = GetEntity(TransformUsageFlags.Dynamic);
    AddComponent(entity, new PostTransformMatrix
    {
        Value = float4x4.Scale(authoring.NonUniformScale)
    });
}

Read the full file on GitHub · 91 lines

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. 11d ago First seen · 91 lines · 38 tokens per session scan A c949fb227e33

Subscribe to this mod's changes

wave5-post-transform-matrix-non-uniform-scale is a skill published in the GitHub repository dyCuong03/unity-agent-team (7 stars, last pushed 2mo ago), licensed MIT. It adds 38 tokens to every session and 873 once invoked, about $0.0002 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-02.

Related

Other skills, from other repositories

reflection-method-call

Call a C# method by reflection — including private methods. Requires a method schema obtained via 'reflection-method-find'. Supports static methods, instance methods (with optional target deserialization), and main-thread / off-thread execution.

IvanMurzak/Unity-MCP · 48 tokens

script-execute

Compiles and executes C# code dynamically using Roslyn. Supports a full-code mode (default) and a body-only mode — see the skill body for the difference and for how to pass Unity object references as parameters.

IvanMurzak/Unity-MCP · 48 tokens

reflection-method-find

Find C# methods across every loaded assembly by name / type / parameters — including private methods. Returns serialized MethodData entries usable as schemas for 'reflection-method-call'.

IvanMurzak/Unity-MCP · 39 tokens

unity-version-split

Split a C# file into Unity 6.5+ and pre-Unity 6.5 variants. Use when a file needs different implementations for different Unity versions due to API changes (e.g., EntityId vs int, GetEntityId vs GetInstanceID).

IvanMurzak/Unity-MCP · 59 tokens

script-delete

Delete one or more .cs script files from disk, refresh the AssetDatabase, and wait for Unity compilation to settle before delivering the final result via the request's requestId. Pair with 'script-read' to inspect files before deletion.

IvanMurzak/Unity-MCP · 52 tokens

script-read

Read a .cs script file and return its content as a string. Supports a 1-based lineFrom/lineTo slice for partial reads. Pair with 'script-update-or-create' to write back.

IvanMurzak/Unity-MCP · 49 tokens