unity-prefab

unity-prefab is a skill for Claude Code, Codex from batihandev/unity-mcp-skills. It costs 20 tokens per session (1,775 once invoked), scanned A, a copy of unity-prefab, MIT.

A Unity prefab toolkit for creating, spawning, editing, applying, finding, and unpacking prefabs. A prefab is a reusable saved game-object template.

In plain words
What is it for?
Use it to create prefabs, spawn one or many instances, find instances, apply scene changes back to the source prefab, set asset properties, or unpack instances.
Why use it?
It provides separate operations for changing a prefab asset and changing an instance in a scene, reducing confusion about which copy is being edited.

Skill for Claude CodeCodex

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

Good fit Use it to create prefabs, spawn one or many instances, find instances, apply scene changes back to the source prefab, set asset properties, or unpack instances.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/batihandev/unity-mcp-skills/prefab
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 batihandev/unity-mcp-skills --skill prefab
Clone the repo
git clone --depth 1 https://github.com/batihandev/unity-mcp-skills

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 unity-prefab

README.md
[![agentmods](https://agentmods.dev/badge/skills/batihandev/unity-mcp-skills/prefab/github.svg)](https://agentmods.dev/skills/batihandev/unity-mcp-skills/prefab)
Your own site
<a href="https://agentmods.dev/skills/batihandev/unity-mcp-skills/prefab"><img src="https://agentmods.dev/badge/skills/batihandev/unity-mcp-skills/prefab/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 unity-prefab

Your own site · 80×15
<a href="https://agentmods.dev/skills/batihandev/unity-mcp-skills/prefab"><img src="https://agentmods.dev/badge/skills/batihandev/unity-mcp-skills/prefab.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,775 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 86% copy Near-identical to another mod 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.00020 $0.01775
Opus 5.5 $0.00008 $0.00710
Sonnet 5.5 $0.00004 $0.00355
Haiku 4.5 $0.00002 $0.00178

Measured 3mo ago against content hash 1be6a813a308, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

unity-prefab 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 3mo 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.

Origin

This is a copy

86% identical to unity-prefab — 87 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/prefab/SKILL.md · 182 lines

How it starts

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

Unity Prefab Skills

Overview

BATCH-FIRST: Use prefab_instantiate_batch when spawning 2+ prefab instances.

Common Mistakes

DO NOT (common hallucinations):

  • prefab_create_from_object does not exist → use prefab_create (takes scene object name/instanceId and savePath)
  • prefab_spawn does not exist → use prefab_instantiate
  • prefab_edit / prefab_modify do not exist → use prefab_set_property (edit prefab asset directly) or instantiate, modify, then prefab_apply
  • prefab_save does not exist → use prefab_apply (applies instance changes to source prefab)

Routing:

  • To modify components on a prefab instance in scene → use component module skills, then prefab_apply
  • To set a property directly on the prefab asset → prefab_set_property (this module)
  • To find all instances of a prefab → prefab_find_instances (this module)

Skills Overview

Single Object Batch Version Use Batch When
prefab_instantiate prefab_instantiate_batch Spawning 2+ instances

No batch needed:

  • prefab_create - Create prefab from scene object
  • prefab_apply - Apply instance changes to prefab
  • prefab_unpack - Unpack prefab instance
  • prefab_get_overrides - Get instance overrides
  • prefab_revert_overrides - Revert to prefab values
  • prefab_apply_overrides - Apply overrides to prefab
  • prefab_create_variant - Create a prefab variant
  • prefab_find_instances - Find all instances of a prefab in scene
  • prefab_set_property - Set a property on a component inside a Prefab asset (supports basic types, vectors, colors, and asset references)

Skills

prefab_create

Create a prefab from a scene GameObject.

Parameter Type Required Description
name string No* Source object name
instanceId int No* Instance ID
path string No* Object path
savePath string Yes Prefab save path

Read the full file on GitHub · 182 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. 3mo ago First seen · 182 lines · 20 tokens per session scan A 1be6a813a308

Subscribe to this mod's changes

unity-prefab is a skill published in the GitHub repository batihandev/unity-mcp-skills (7 stars, last pushed 17d ago), licensed MIT. It adds 20 tokens to every session and 1,775 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 86% identical to unity-prefab, differing in 87 lines, and is treated as a copy.

Related

unity-prefab compared with skills from other repositories

unity-prefab next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
unity-prefabbatihandev/unity-mcp-skillsSkill717d agoMITA20Claude Code, Codex
unity-csharpWade-DevCode/awesome-coding-skills-cnSkill75mo agoMITA28Claude Code, Codex
godot-csharpgamedev-skills/awesome-gamedev-agent-skillsSkill13kyesterdayApache-2.0A111Claude Code
pufferlibforyourhealth111-pixel/Vibe-SkillsSkill3.9k22d agoApache-2.0A83Claude Code, Codex
ability-systemjame581/GodotPrompterSkill1.0kyesterdayMITA37Claude Code
addon-developmentjame581/GodotPrompterSkill1.0kyesterdayMITA24Claude Code
ai-navigationjame581/GodotPrompterSkill1.0kyesterdayMITA26Claude Code