Agent skill

Unity Scriptableobject

by Besty0728 in Besty0728/Unity-Skills

“Manage ScriptableObject assets”

— description from SKILL.md by Besty0728
MITAuto-check passedGame Development

Install Unity Scriptableobject

skills CLI
$ npx skills add Besty0728/Unity-Skills --skill unity-scriptableobject -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Besty0728/Unity-Skills unity-scriptableobject --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Besty0728/Unity-Skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/'SkillsForUnity/unity-skills~/skills/scriptableobject' .claude/skills/unity-scriptableobject && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
unity-scriptableobject
GitHub stars
1.8k
Token cost
~2.8k tokens
SKILL.md length
1,084 words
Files
1
Skills in repo
82
Repo updated
First seen
Licence
MIT

At a glance

  • SKILL.md covers Triggers, Operating Mode, Skills and Exact Signatures
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

About this skill

Unity Scriptableobject is a skill in Besty0728/Unity-Skills (1.8k stars). Its SKILL.md is about 2.8k tokens. Licence: MIT.

What it can do on your machine

Read from SKILL.md and the folder at commit 15a1925. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Unity Scriptableobject loads about 2.8k tokens when it runs. Until then it costs about 13 tokens; SKILL.md has 1,084 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~13
When it runs · the whole SKILL.md, loaded when a task matches
~2.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Besty0728/Unity-Skills at commit 15a1925, republished under its MIT licence (© Besty0728). 1,084 words, ~2,777 tokens.

Download SKILL.mdSave it as .claude/skills/unity-scriptableobject/SKILL.md (or your agent's skills folder).
name
unity-scriptableobject
description
Manage ScriptableObject assets

Before calling any skill in this module: if you are about to call a skill with parameters guessed from its name or description, STOP — read this file (or fetch its schema via GET /skills/recommend?includeSchema=true) first. If you already have the parameter definitions from recommend/schema, you may proceed straight to dryRun.

Triggers

  • Creating or editing SO data assets
  • Finding SO instances
  • Scripting SO management
  • 创建或编辑 ScriptableObject 数据资产、查找 SO 实例、脚本化管理 SO

ScriptableObject Skills

Create and manage ScriptableObject assets.

Operating Mode

  • Approval:本模块 Mixed —— scriptableobject_get / scriptableobject_get_serialized_properties / scriptableobject_list_types / scriptableobject_find / scriptableobject_export_json 标 SkillMode.SemiAuto,可直接执行(注意 scriptableobject_export_json 传 savePath 会落盘,因此标 MutatesAssets = true 而非 ReadOnly);写类 skill (scriptableobject_create / scriptableobject_set / scriptableobject_set_batch / scriptableobject_set_serialized_property / scriptableobject_set_serialized_property_batch / scriptableobject_duplicate / scriptableobject_import_json) 标 SkillMode.FullAuto,需 grant 单次执行返结果。
  • Auto / Bypass:FullAuto 直接执行。
  • 含 NeverInSemi 高危 skill:scriptableobject_delete(Operation.Delete)。该 skill 在 Approval/Auto 下返 MODE_FORBIDDEN,仅 Bypass 或 Allowlist 命中可调。

DO NOT (common hallucinations):

  • scriptableobject_create_type does not exist → create SO scripts via script_create with template "ScriptableObject"
  • scriptableobject_get_properties / scriptableobject_read do not exist → use scriptableobject_get (reflection view) or scriptableobject_get_serialized_properties (Inspector/serialized view)
  • scriptableobject_set_property / scriptableobject_set_field do not exist → use scriptableobject_set (top-level public field) or scriptableobject_set_serialized_property (nested/array/reference/private)
  • scriptableobject_save does not exist → changes are auto-saved to the asset

Routing:

  • For ScriptableObject script creation → use script module with template "ScriptableObject"
  • For JSON import/export → scriptableobject_import_json / scriptableobject_export_json (this module)
  • Choosing a setter: scriptableobject_set / scriptableobject_set_batch only reach top-level public simple fields (reflection). For nested paths, arrays/lists, object references, private [SerializeField] fields, gradients, curves and [Flags] enums → scriptableobject_set_serialized_property (+ _batch).

Skills

scriptableobject_create

Create a new ScriptableObject asset. Parameters:

  • typeName (string): ScriptableObject type name.
  • savePath (string): Asset save path.
scriptableobject_get

Get properties of a ScriptableObject. Parameters:

  • assetPath (string): Asset path.
scriptableobject_set

Set a top-level public field/property on a ScriptableObject via reflection. For nested paths, arrays, object references or private [SerializeField] fields use scriptableobject_set_serialized_property. Parameters:

  • assetPath (string): Asset path.
  • fieldName (string): Field or property name.
  • value (string): Value to set, parsed per member type as in component_set_property (bools true/false/1/0/yes/no/on/off, anything else rejected; an AnimationCurve as a preset or the JSON curve below).
scriptableobject_list_types

List available ScriptableObject types in the project. Parameters:

  • filter (string, optional): Filter by name.
scriptableobject_duplicate

Duplicate a ScriptableObject asset. Parameters:

  • assetPath (string): Source asset path to duplicate.
scriptableobject_set_batch

Set multiple fields on a ScriptableObject at once. fields: JSON object {fieldName: value, ...}

ParameterTypeRequiredDefaultDescription
assetPathstringYes-Asset path of the ScriptableObject
fieldsstringYes-JSON object with field-value pairs, e.g. {"fieldName": "value", ...}

Returns: { success, fieldsSet, failed, results: [{ field, error }] }: a key that is not a writable public field/property, or whose value its type rejects, fails on its own (listed in results) while the other keys are still set; malformed fields JSON is rejected before anything is written.

scriptableobject_get_serialized_properties

List Inspector serialized properties of a ScriptableObject asset — propertyPath, type, and current value for every serialized field, including private [SerializeField] and nested/array children. Use the returned propertyPath values with scriptableobject_set_serialized_property.

ParameterTypeRequiredDefaultDescription
assetPathstringYes-Asset path of the ScriptableObject
includeChildrenboolNotrueRecurse into nested/array child properties
limitintNo200Maximum number of properties to return

Returns: { success, path, typeName, properties: [{ propertyPath, name, displayName, propertyType, type, isArray, editable, value }] }

scriptableobject_set_serialized_property

Set a single Inspector serialized property by propertyPath. Works where scriptableobject_set cannot: nested fields, arrays/lists, UnityEngine.Object references, private [SerializeField] fields, gradients, animation curves, and [Flags] enums.

ParameterTypeRequiredDefaultDescription
assetPathstringYes-Asset path of the target ScriptableObject
propertyPathstringYes-Serialized property path (see syntax below); speed auto-falls back to m_Speed / _speed
valuestringNonullValue to set (format depends on property type)
valueAssetPathstringNonullFor ObjectReference properties: asset path of the asset to reference
valueObjectTypestringNonullOptional type filter for the referenced asset (e.g. "Sprite", useful for sub-assets)

propertyPath syntax:

  • Top-level field: speed
  • Nested field: stats.maxHp
  • Array/List element: items.Array.data[2]
  • Array/List resize: items.Array.size with value: "5" (resize first, then set elements)

Value formats:

  • Primitives: "3.5" / "true" / "hello" (bools: true/false/1/0/yes/no/on/off); Vector: "1,2,3"; Color: "1,0,0,1"; Enum: name, or a number 0..n-1 as the member index (a warnings entry names the member when its value differs; a larger number is a member value or declared bits, undeclared bits are rejected)
  • [Flags] enum: comma-separated names "Fire,Ice" (also |), or a raw bitmask number above the last member index ("-1" = Everything; smaller numbers are member indexes, as for any enum)
  • ObjectReference: pass valueAssetPath: "Assets/Icons/sword.png" (optionally valueObjectType); clear with value: "null"
  • Gradient: {"colorKeys":[{"color":"1,0,0,1","time":0},{"color":"0,0,1,1","time":1}],"alphaKeys":[{"alpha":1,"time":0},{"alpha":1,"time":1}],"mode":"Blend"}
  • AnimationCurve: {"keys":[{"time":0,"value":0},{"time":1,"value":1,"inTangent":2,"outTangent":2}],"preWrapMode":"ClampForever","postWrapMode":"Loop"}

Returns: { success, assetPath, propertyPath, valueSet, warnings? }. A rejected value writes nothing. Unknown propertyPath returns error plus availableProperties (first 60) for self-correction.

Show full SKILL.md (358 more words)Show less
scriptableobject_set_serialized_property_batch

Set multiple Inspector serialized properties on one ScriptableObject asset in a single call.

ParameterTypeRequiredDefaultDescription
assetPathstringYes-Asset path of the target ScriptableObject
itemsstringYes-JSON array of {propertyPath, value, valueAssetPath, valueObjectType}

Example items: [{"propertyPath":"items.Array.size","value":"2"},{"propertyPath":"items.Array.data[0]","value":"101"},{"propertyPath":"icon","valueAssetPath":"Assets/Icons/sword.png"}]

Returns: { success, totalItems, successCount, failCount, results }

scriptableobject_delete

Delete a ScriptableObject asset.

ParameterTypeRequiredDefaultDescription
assetPathstringYes-Asset path of the ScriptableObject to delete

Returns: { success, deleted }

scriptableobject_find

Find ScriptableObject assets by type name.

ParameterTypeRequiredDefaultDescription
typeNamestringYes-ScriptableObject type name to search for
searchPathstringNo"Assets"Folder path to search within
limitintNo50Maximum number of results to return

Returns: { success, count, assets }

scriptableobject_export_json

Export a ScriptableObject to JSON.

ParameterTypeRequiredDefaultDescription
assetPathstringYes-Asset path of the ScriptableObject to export
savePathstringNonullFile path to write the JSON to; omit it to get the JSON inline instead

Returns: { success, path } when savePath was given (the JSON is not echoed), { success, json } otherwise.

savePath makes this a write. With it the skill does a File.WriteAllText, so it is flagged MutatesAssets = true and not ReadOnly, even though it stays SkillMode.SemiAuto (no grant needed in any mode). Reading a ScriptableObject's values costs nothing on disk as long as you leave savePath out — and note the two return shapes are mutually exclusive, so passing savePath when you wanted to read the data means a second call.

scriptableobject_import_json

Import JSON data into a ScriptableObject. Two accepted formats:

  • Bare field object {"hp": 100, "title": "Boss"} — auto-wrapped into {"MonoBehaviour": {...}} before applying
  • The {"MonoBehaviour": {...}} envelope produced by scriptableobject_export_json
ParameterTypeRequiredDefaultDescription
assetPathstringYes-Asset path of the target ScriptableObject
jsonstringNonullJSON string to import
jsonFilePathstringNonullPath to a JSON file to read and import

Returns: { success, assetPath }. If no serialized field changed (field names did not match, or values already equal), returns success: true plus a warning — treat the warning as "nothing was written" and verify field names against scriptableobject_export_json output.


Exact Signatures

Exact names, parameters, defaults, and returns are defined by GET /skills/schema or unity_skills.get_skill_schema(), not by this file.

© Besty0728, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in SkillsForUnity/unity-skills~/skills/scriptableobject of Besty0728/Unity-Skills.

Open the folder on GitHubat commit 15a1925

Compare with similar skills

Unity Scriptableobject next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Unity Scriptableobject compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Unity Scriptableobject this skillBesty0728/Unity-Skills1.8k—~2.8kAutomated safety check: PassMIT
Image to Three.js Modelimg2threejs/img2threejs18k1 repos~8.2kAutomated safety check: PassApache-2.0
Web CloneJane-xiaoer/claude-skill-web-clone1k1 repos~2.7kAutomated safety check: PassMIT
Threejs Game Directormajidmanzarpour/threejs-game-skills2.5k—~2.2kAutomated safety check: PassMIT
Game Asset Generatorhtdt/godogen7.1k—~2.8kAutomated safety check: PassMIT
Threejs Gameplay Systemsvalkor-ai/loom1.2k1 repos~1.4kAutomated safety check: PassApache-2.0

Similar skills

  • Image to Three.js Model

    img2threejs/img2threejs

    Rebuilds the object in a reference image as a procedural, animation-ready Three.js model written entirely in code, using staged sculpting with quality checks.

    18k GitHub starsUsed in 1 repo~8.2k tokens
    Game DevelopmentAuto-check passed
  • Web Clone

    Jane-xiaoer/claude-skill-web-clone

    网站复刻 / 克隆方法论。USE WHEN 用户说 复刻网站、克隆网站、clone website、抄个站、仿站、 照着这个站做一个、reproduce site、还原某个网页效果、把这个站搬下来改成我的、 复刻某个交互/WebGL/Canvas/Three.js 效果。提供「先拿真源码 → 判路径 → 逆向拆解 → 搭工程 → 替换内容」的可移植决策树,覆盖静态站 /…

    1k GitHub starsUsed in 1 repo~2.7k tokens
    Game DevelopmentAuto-check passed
  • Threejs Game Director

    majidmanzarpour/threejs-game-skills

    Entrypoint for building, upgrading, and finishing Three.js browser games.

    2.5k GitHub stars~2.2k tokensUpdated 11 days ago
    Game DevelopmentAuto-check passed
  • Generates game art from text prompts: PNG images, GLB 3D models, rigged characters, animations and sprites, with background removal.

    7.1k GitHub stars~2.8k tokensUpdated 8 days ago
    Game DevelopmentAuto-check passed
  • Build and iterate playable Three.js game systems: starter scaffold, architecture, design briefs, core loops, level and encounter design, entities, input, camera, collision and physics, scoring…

    1.2k GitHub starsUsed in 1 repo~1.4k tokens
    Game DevelopmentAuto-check passed
  • Uloop Execute Dynamic Code

    CyberAgentGameEntertainment/NovaShader

    Execute C with Unity APIs when existing uloop tools cannot inspect or edit enough.

    1.6k GitHub starsUsed in 1 repo~1.9k tokens
    Game DevelopmentAuto-check passed

More from Besty0728/Unity-Skills

All 82 skills in this repo
  • Unity Skills

    Besty0728/Unity-Skills

    Automate the Unity Editor through a local REST API — scripts, scenes, prefabs, assets, materials, lighting, tests and hundreds of other Editor operations.

    1.8k GitHub stars~2k tokensUpdated yesterday
    Auto-check passed
  • Unity Animator

    Besty0728/Unity-Skills

    Edit Unity Animator Controllers and drive runtime parameters

    1.8k GitHub stars~2.4k tokensUpdated yesterday
    Auto-check passed
  • Unity Architecture

    Besty0728/Unity-Skills

    Advise on Unity gameplay and system architecture. An agent skill from Besty0728/Unity-Skills.

    1.8k GitHub stars~1.3k tokensUpdated yesterday
    Auto-check passed
  • Unity Batch

    Besty0728/Unity-Skills

    Unified batch and async-job orchestration. An agent skill from Besty0728/Unity-Skills.

    1.8k GitHub stars~2k tokensUpdated yesterday
    Auto-check passed
  • Unity Behavior

    Besty0728/Unity-Skills

    Drive Unity Behavior behavior graphs and blackboard variables

    1.8k GitHub stars~3k tokensUpdated yesterday
    Auto-check passed
  • Unity Console

    Besty0728/Unity-Skills

    Capture and query the Unity Editor console. An agent skill from Besty0728/Unity-Skills.

    1.8k GitHub stars~1.8k tokensUpdated yesterday
    Auto-check passed

Questions about Unity Scriptableobject

How do I install Unity Scriptableobject in Claude Code?

Run `npx skills add Besty0728/Unity-Skills --skill unity-scriptableobject -a claude-code`. Or copy the skill folder (SkillsForUnity/unity-skills~/skills/scriptableobject in Besty0728/Unity-Skills) into .claude/skills/unity-scriptableobject in your project. Claude Code loads it when a task matches its description.

How do I install Unity Scriptableobject in Codex?

Run `npx skills add Besty0728/Unity-Skills --skill unity-scriptableobject -a codex`. Or copy the skill folder (SkillsForUnity/unity-skills~/skills/scriptableobject in Besty0728/Unity-Skills) into .agents/skills/unity-scriptableobject in your project. Codex loads it when a task matches its description.

Can I use Unity Scriptableobject in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Besty0728/Unity-Skills --skill unity-scriptableobject -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/unity-scriptableobject, .gemini/skills/unity-scriptableobject, .github/skills/unity-scriptableobject and .opencode/skills/unity-scriptableobject in your project.

What does Unity Scriptableobject need to run?

SKILL.md names no scripts, command-line tools or credentials: Unity Scriptableobject is instructions for the agent only.

Does Unity Scriptableobject access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Unity Scriptableobject safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Unity Scriptableobject use?

Unity Scriptableobject is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Unity Scriptableobject use?

About 2.8k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Unity Scriptableobject?

Skills that share tags, products or a category with Unity Scriptableobject: Image to Three.js Model (img2threejs/img2threejs, 18k stars), Web Clone (Jane-xiaoer/claude-skill-web-clone, 1k stars), Threejs Game Director (majidmanzarpour/threejs-game-skills, 2.5k stars) and Game Asset Generator (htdt/godogen, 7.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Unity Scriptableobject?

Besty0728 (a GitHub user) maintains it in Besty0728/Unity-Skills, which has 1,819 GitHub stars. The repository holds 82 skills in this directory. The repository was last updated on October 8, 2026.

Source: Besty0728/Unity-Skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.