Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

unity-yaml-editing

/unity-yaml-editing

Bezpośrednio sprawdza i edytuje pliki YAML Unity: sceny, prefaby, assety ScriptableObject i materiały.

Repozytorium
aibridge ↗
Licencja
MIT
Ostatnia zmiana repozytorium
28.09.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
2
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 28.09.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Bezpośrednio sprawdza i edytuje pliki YAML Unity: sceny, prefaby, assety ScriptableObject i materiały.

Oryginalny opis (EN)

Unity YAML text serialization editing workflow. Use when Codex needs to directly inspect, modify, create, or repair Unity serialized YAML files such as .unity scenes, .prefab assets, .asset ScriptableObject/config files, .mat, .controller, or other text-serialized Unity assets, especially when AIBridge inspector/prefab/scene APIs do not support the requested Prefab, Scene, ScriptableObjectTable, or custom asset operation

Jak działa

  1. Decision Order
  2. Required Workflow
  3. Hard Rules
  4. Reference
Sekcje z nagłówków SKILL.md, w oryginale · 40 linii, 415 słów
Podgląd SKILL.md
---
name: unity-yaml-editing
description: Unity YAML text serialization editing workflow. Use when Codex needs to directly inspect, modify, create, or repair Unity serialized YAML files such as .unity scenes, .prefab assets, .asset ScriptableObject/config files, .mat, .controller, or other text-serialized Unity assets, especially when AIBridge inspector/prefab/scene APIs do not support the requested Prefab, Scene, ScriptableObjectTable, or custom asset operation
---

# Unity YAML Editing

Load this Skill only after considering Unity/AIBridge APIs. UnityYAML is fragile, and direct text edits are the fallback for unsupported serialized asset operations, deterministic repair work, and rare text-serialized asset authoring that AIBridge/Unity APIs cannot express

## Decision Order

1. Prefer `aibridge` Inspector/SerializedProperty commands for single readable field edits on scene objects, prefab assets, and `.asset` files
2. Prefer `inspector set_properties` for small batched field edits on one target
3. Prefer `aibridge-prefab-patch` for complex Prefab child/component/property/array/reference edits it supports
4. Prefer Unity Editor scripts when generating high-level assets that Unity can create more safely than text
5. Use direct UnityYAML editing when AIBridge/Unity APIs cannot express the operation, for example:
   - Scene `.unity` structure/object creation or unsupported scene edits
   - New Prefab asset authoring, paired `.meta` creation, or Prefab/Variant structures not covered by `prefab patch`
   - ScriptableObjectTable, custom ScriptableObject `.asset`, `.mat`, `.controller`, or other serialized assets requiring unsupported structural changes
   - Repairing malformed text serialization while preserving existing IDs and references

## Required Workflow

1. Read `references/unity-yaml-reference.md` before editing
2. Inspect a same-project example for every Unity component/class you will create; never write component schemas from memory
3. Make a small, reviewable patch; preserve ordering, indentation, document headers, anchors, `m_Script`, GUIDs, and local fileIDs unless a new object must be created
4. For new assets, create or preserve the paired `.meta` file and ensure its GUID does not already appear in the project
5. For new MonoBehaviour/ScriptableObject documents, resolve the script `.meta` GUID first and use it in `m_Script`
6. For new documents, allocate local fileIDs that do not exist in the same file and update every owning reference consistently
7. Validate with Unity import/compile and targeted AIBridge hierarchy/properties inspection when possible

## Hard Rules

- Do not use generic YAML formatters or parsers to rewrite UnityYAML files
- Do not change `%YAML`, `%TAG`, `--- !u!<classID> &<fileID>` headers, class IDs, GUIDs, or fileIDs without a clear reference update plan
- Do not invent Unity schema fields. Copy shape from an existing nearby object of the same class/component/script when possible
- Prefer decimal floats in hand edits. Avoid editing Unity-generated hexadecimal float values unless preserving existing text unchanged
- Keep `.meta` GUIDs stable. Creating a new asset requires creating/retaining the paired `.meta` file through Unity when possible
- When adding Prefab nodes/components, update all reciprocal references in the same patch: parent `m_Children`, child `m_Father`, `GameObject.m_Component`, and component `m_GameObject`

## Reference

- `references/unity-yaml-reference.md`: detailed UnityYAML format, editing patterns, safety checks, and validation checklist
Pliki w paczce (2)
  • SKILL.md 3 KB
  • references/unity-yaml-reference.md 12 KB

Wersje

W bazie nie ma innych skilli o nazwie unity-yaml-editing.

Migawka bazy z 13.11.2026 · wersja paczki 0d2583c84560 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 1 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100uprefab
    Czyta i zmienia dane serializowane Unity: prefaby, sceny i ScriptableObject, w tym hierarchię, FSM, warianty i odwołania.
  • 100unitygraph
    Streszcza projekt Unity przez zwięzłe podsumowania zamiast surowego YAML: sceny, prefaby, komponenty i użycie skryptów.
  • 100unity-yaml-editing-guide
    Podpowiada, jak edytować pliki YAML Unity bez edytora: wartości ScriptableObject, właściwości materiałów i konfiguracje.
  • 100aibridge-prefab-patch
    Łata assety prefabów Unity przez AIBridge: tworzenie dzieci i komponentów, zapisy SerializedProperty, edycja tablic, odwołania wewnętrzne i walidacja dry-run, oraz wybór między patchem a inspektorem.
  • 95assets-prefab-save
    Zapisuje prefab w trybie edycji prefabów w Unity Editor, po wcześniejszym otwarciu go narzędziem assets-prefab-open.
  • 90edit-scene
    Tworzy i zmienia pliki scen i prefabrykatów Unity: dodaje obiekty gry, buduje hierarchie uGUI i podłącza komponenty.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.