📦
AutomationC#

Close Prefab

by IvanMurzak

Close Prefab is an Automation skill for Claude Code, published by IvanMurzak in Unity-MCP.

3.9K stars355 forkson IvanMurzak/Unity-MCPAdded 2026/08/16Repository updated 2026/08/16
aiai-integrationanthropicclaudeclaude-codeclaude-desktopclicopilotcursorgame-developmentgamedevgeminillmmcpmcp-servermodel-context-protocolopenaiunitywindsurf
Install in seconds
Install Close Prefab
Copy Close Prefab into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/IvanMurzak/Unity-MCP/tree/main/Unity-MCP-Plugin/.claude/skills/assets-prefab-close ~/.claude/skills/assets-prefab-close

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/IvanMurzak/Unity-MCP.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
Unity-MCP-Plugin/.claude/skills/assets-prefab-close/SKILL.md in IvanMurzak/Unity-MCP
Installs to
~/.claude/skills/assets-prefab-close
Collection
One of 25 skills cataloged from this repository
Category
Automation — 2226 skills

What Close Prefab does

Close Prefab closes the currently opened Unity prefab edit stage, optionally saving changes back to the prefab asset before exiting.

Close Prefab is cataloged under Automation on DirSkills. Close Prefab comes from a repository tagged ai, ai-integration, anthropic, claude and claude-code.

Documentation

README

Assets / Prefab / Close

Close currently opened prefab. Use it when you are in prefab editing mode in Unity Editor. Use 'assets-prefab-open' tool to open a prefab first.

Inputs

  • save (default true) — when true, calls PrefabUtility.SaveAsPrefabAsset before exiting the stage; when false, the save is skipped. The prefab stage's dirtiness is always cleared at the end, so any unsaved changes are discarded when save is false.

Behavior

Throws when no prefab stage is currently open. Returns an AssetObjectRef for the closed prefab asset.

How to Call

unity-mcp-cli run-tool assets-prefab-close --input '{
  "save": false
}'

This is the opening of the README. Read the full README on GitHub.

Commands Close Prefab provides

Slash commands named in this skill’s SKILL.md, listed in the order they first appear.

  • /unity-initial-setup

Frequently asked about Close Prefab

  • What else does IvanMurzak publish alongside Close Prefab?

    Close Prefab is one of 25 skills that DirSkills catalogs from IvanMurzak/Unity-MCP, the repository it ships in. Its siblings there include Asset Data Reader, Asset Finder and Asset Modification. Each one is a separate skill with its own page in this directory, installs the same way Close Prefab does, and is maintained by IvanMurzak in that same repository. The rest of the collection is listed on the IvanMurzak/Unity-MCP page.

  • How does Close Prefab compare to other Automation skills?

    Close Prefab ranks #333 by stars among the 2226 Automation skills in this catalog. The most-starred ones next to it are Autonomous Loops, Autonomous Agent Harness and Automation Audit Ops. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Close Prefab against them. Open each page to compare what they document and how they install.

More from IvanMurzak/Unity-MCP

Close Prefab is one of 25 skills cataloged on DirSkills from IvanMurzak/Unity-MCP.

See all 25 skills →
📦
2026/08/16

Asset Data Reader

Asset Data Reader retrieves serializable fields and properties from a Unity asset file. Use it when an agent needs to inspect a Material, ScriptableObject, Prefab, or other asset in a Unity project.
AI Engineering
3.9K355
🔍
2026/08/16

Asset Finder

Asset Finder queries the Unity asset database using filters for name, type, label, asset bundle, area, and glob patterns. Use it to locate assets in a Unity project before modifying or referencing them.
AI Engineering
3.9K355
🛠️
2026/08/16

Asset Modification

Asset Modification edits a Unity asset file in place using full content replacement, path-scoped patches, or JSON Merge Patch. Use it after assets-get-data to inspect structure; modifications to Packages/ are not allowed.
Automation
3.9K355
📁
2026/08/16

Assets Copy

Assets Copy copies assets at given paths and stores them at new paths, refreshing the AssetDatabase afterwards. Use it after locating source assets with assets-find.
Automation
3.9K355
📁
2026/08/16

Assets Create Folder

Assets Create Folder creates a new folder under a specified parent inside Unity's Assets directory, validates paths, refreshes the AssetDatabase, and returns created folder GUIDs. Use it when an AI agent needs to organize scripts or assets in a Unity project.
Automation
3.9K355
🗑️
2026/08/16

Assets Delete

Assets Delete removes assets at the given project paths in Unity and refreshes the AssetDatabase. Use it after finding assets with assets-find to delete files from disk.
Automation
3.9K355