assets-create-folder

Create a folder under an existing Unity Assets path and return its GUID.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Silac1995/My-World-Isekai-Unity --skill assets-create-folder-silac1995
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: assets-create-folder
Source: https://github.com/Silac1995/My-World-Isekai-Unity/tree/main/.claude/skills/assets-create-folder
Command: npx skills add https://github.com/Silac1995/My-World-Isekai-Unity --skill assets-create-folder-silac1995

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creates a new folder inside the Unity Assets folder hierarchy and returns the GUID of the newly created folder, enabling consistent project organization. AssetDatabase.Refresh() is called at the end to ensure the editor reflects the change.

Core Features & Use Cases

  • Programmatically create a folder under an existing Assets path only if the parent chain exists and starts with Assets.
  • Return the GUID of the newly created folder for reliable references in scripts and asset pipelines.
  • Use case: organize large Unity projects by adding folders like Assets/Scripts/Gameplay or Assets/UI/Widgets without manual creation.

Quick Start

Create a folder by specifying the ParentFolderPath that starts with Assets and the NewFolderName to create.

Frequently Asked Questions about assets-create-folder

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

FAQPage Schema
How do I create a folder in Unity Assets programmatically and get its GUID?

To create a folder in Unity Assets programmatically, specify an existing parent path starting with Assets and a new folder name. The tool validates the path, creates the folder, calls AssetDatabase.Refresh(), and returns the new folder's GUID for reliable script references.

How do I automate project organization by adding folders under Assets in Unity?

You can automate Unity project organization by providing the ParentFolderPath and NewFolderName inputs. This creates folders like Assets/Scripts/Gameplay automatically, enforcing that the parent chain exists before adding the new directory to the hierarchy.

Does the Unity AssetDatabase Refresh after creating a new folder?

Yes, AssetDatabase.Refresh() is called at the end of the folder creation process. This ensures the Unity editor immediately reflects the newly added folder in the project window without requiring a manual refresh.

Why does creating a folder under Unity Assets fail if the parent path is missing?

Creating a folder fails because the tool enforces path validation, requiring the parent path to exist and start with Assets. This prevents broken references and ensures consistent project organization before adding new directories.

Can I use this to create nested folders like Assets/UI/Widgets if the parent doesn't exist?

No, you cannot create nested folders if intermediate parents like Assets/UI do not exist. The tool requires ParentFolderPath to be a valid, existing directory starting with Assets before creating the NewFolderName inside it.

What is the best way to get a reliable reference to a newly created Unity asset folder?

The best way to get a reliable reference is to create the folder programmatically and capture the returned GUID. Using the folder's GUID ensures your scripts and asset pipelines maintain correct references even if the folder is moved or renamed later.