assets-modify

Modify Unity asset files via content overrides, path patches, or JSON Merge Patch.

Updated May 27, 2026
One-click install
npx skills add https://github.com/AdielMag/ClashUp --skill assets-modify-adielmag
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: assets-modify
Source: https://github.com/AdielMag/ClashUp/tree/main/client/ClashUp.Unity/.claude/skills/assets-modify
Command: npx skills add https://github.com/AdielMag/ClashUp --skill assets-modify-adielmag

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? Editing Unity assets (Materials, ScriptableObjects, Prefabs) programmatically requires precise targeting of serialized fields, and blind edits risk corrupting asset structure. This Skill provides controlled modification of asset files through the unity-mcp-cli tool with three ordered patching surfaces. ## Core Features & Use Cases - Three Modification Surfaces: Apply a full SerializedMember content override, a list of path-scoped patches, or a JSON Merge Patch (RFC 7396), executed in the order jsonPatch → pathPatches → content. - Flexible Path Syntax: Target nested fields, array indices, and dictionary keys using slash-delimited paths like planets/[0]/orbitRadius or config/[timeout]. - Use Case: After inspecting a ScriptableObject with assets-get-data, update a single nested field such as a player's movement speed by sending a pathPatch with the exact field path and new value, without rewriting the whole asset. ## Quick Start Ask the AI to modify a specific field of a Unity asset by providing its asset reference and a path patch with the new value.

Frequently Asked Questions about assets-modify

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I modify a Unity asset file programmatically?▼

Run the assets-modify tool via unity-mcp-cli with an assetRef identifying the asset and at least one modification surface: content, pathPatches, or jsonPatch. Inspect the asset first with assets-get-data to understand its structure before editing.

What is the difference between content, pathPatches, and jsonPatch?▼

Content replaces the full asset with a SerializedMember override, pathPatches apply targeted {path, value} edits via Reflector.TryModifyAt, and jsonPatch applies an RFC 7396 JSON Merge Patch via Reflector.TryPatch. When combined, they run in the order jsonPatch, pathPatches, then content.

Can I modify assets in the Unity Packages folder?▼

No, modifying asset files in the Packages folder is not allowed. You should modify them in the Assets folder instead, even though asset references can point to objects in either location.

How do I target array elements or dictionary keys in an asset?▼

Use the path syntax with bracket notation: [i] for array or list indices such as planets/[0]/orbitRadius, and [key] for dictionary entries such as config/[timeout]. A leading #/ prefix is stripped automatically.

Why is unity-mcp-cli not found when running the tool?▼

The CLI is not installed or not on your PATH. Install it globally with npm install -g unity-mcp-cli, or invoke it through npx unity-mcp-cli instead.