MuharremTozan/Agentic-Duel / .agent/skills/unity-so-prefab-manager
unity-so-prefab-manager
VerifiedManages 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.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 3.0 KB |
| assets/code/DataEntity.cs.txt | markdown | 676 B |
| references/bridge-pattern.md | markdown | 1.5 KB |
| references/naming-conventions.md | markdown | 1.2 KB |
| references/yaml-templates.md | markdown | 1.1 KB |
references/naming-conventions.md
View on GitHub# Naming & Directory Conventions
To keep the Agent (AI) efficiently mapping between Data and Visuals, we follow a path-matching convention.
## Folder Structure
```text
Assets/
Data/
Robots/ <- .asset files (RobotSO)
Skills/ <- .asset files (SkillSO)
Prefabs/
Robots/ <- .prefab files (Robot Mono)
VFX/ <- .prefab files (Visual Effects)
Scripts/
Data/ <- SO Class definitions
Logic/ <- MonoBehaviour implementations
```
## Naming Rules
1. **The Twin Rule**: A Prefab and its corresponding SO Asset should share the exact same name where possible.
- Example: `Scout.prefab` + `Scout.asset`
2. **Suffix for Scripts**:
- `ClassNameSO.cs` for the ScriptableObject definition.
- `ClassName.cs` for the MonoBehaviour.
3. **Breadcrumbs**:
- Every Log should include the SO name found in `data.name` for traceability.
## Tooling Integration
As an Agent, when searching for the "Visuals" of a data object:
1. Get the name of the `.asset` file.
2. Search in `Assets/Prefabs/` for a `.prefab` with the same name.
3. If not found, check the `m_Script` of the prefab for the linking `[SerializeField]`.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| 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: 194k | Updated | Claude CodeCodex | Verified | Install |