Skip to content

MuharremTozan/Agentic-Duel / .agent/skills/unity-so-prefab-manager

unity-so-prefab-manager

Verified

Manages the structured relationship between ScriptableObjects (Data) and Prefabs (Logic/Visuals) in Unity 6. Follows the 'SO-to-Mono' Bridge pattern to ensure instance independence (e.g., individual health for identical robots) while maintaining a clean, data-driven architecture. Use when: (1) Creating new unit/item types, (2) Wiring SO data to Prefab MonoBehaviours, (3) Resolving data-sharing bugs where changing one SO affects all instances.

references/yaml-templates.md

View on GitHub
# YAML Templates (Unity 6)

When performing **Bulk Generation**, use these templates to ensure Unity can parse the files upon refresh.

## 1. ScriptableObject (.asset)
**Note:** The `m_Script` GUID must match the `.meta` file of your C# SO class.

```yaml
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
  m_ObjectHideFlags: 0
  m_CorrespondingSourceObject: {fileID: 0}
  m_PrefabInstance: {fileID: 0}
  m_PrefabAsset: {fileID: 0}
  m_GameObject: {fileID: 0}
  m_Enabled: 1
  m_EditorHideFlags: 0
  m_Script: {fileID: 11500000, guid: [SCRIPT_GUID], type: 3}
  m_Name: [ASSET_NAME]
  m_EditorClassIdentifier: 
  # Custom Properties Start Here
  maxHealth: 100
  baseSpeed: 5
```

## 2. Guid Locating
Before generating, always find the Script GUID:
1. Locate `Assets/Scripts/Data/YourClassSO.cs.meta`.
2. Extract the `guid` string.
3. Replace `[SCRIPT_GUID]` in the template above.

## 3. The Refresh Ritual
After writing files, you **MUST** call:
`mcp_unityMCP_refresh_unity(scope="assets", wait_for_ready=true)`
Unity will then:
- Assign a new GUID to the `.asset`.
- Generate the `.meta` file.
- Register the asset in the AssetDatabase.
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall