aibridge-prefab-patch
Unity Prefab asset patch workflow for AIBridge. Use when modifying complex prefab assets with prefab patch operations, child or component creation, SerializedProperty writes, array edits, internal GameObject/component references, dry-run validation, or when deciding between prefab patch, inspector set_property, scene object commands, and direct Unity YAML fallback.
npx skills add FlameskyDexive/Legends-Of-Heroes --skill aibridge-prefab-patch --agent codex
Same command for any agent — swap --agent for claude-code, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# AIBridge Prefab Patch Use `prefab patch` for complex Prefab asset edits that need multiple operations in one load/save cycle. Use `inspector set_property` for a single simple serialized field, and `inspector set_properties` for small batched field edits. Use `gameobject`、`transform`、`inspector` for scene objects. If the requested Prefab/Scene/custom `.asset` operation is not supported by AIBridge, load `unity-yaml-editing` and follow its direct UnityYAML rules. `$CLI` means the platform-appropriate AIBridge CLI invocation, usually `./.aibridge/cli/AIBridgeCLI.exe` on Windows. ## 参数选择 - Prefer `--ops <file>` for multi-step edits, nested JSON, arrays, references, or anything run from PowerShell. - Use `--ops-json <json>` only for one or two very small operations. - Put temporary operation files under `.aibridge/patch_ops/`. - Always run `--dryRun true` before writing the prefab. ## 标准流程 1. Find the target prefab with `asset find/search --format paths`. 2. Inspect structure with `prefab get_hierarchy --prefabPath "<prefab>"`. 3. Create `.aibridge/patch_ops/<task>.json`. 4. Run dry-run: ```bash $CLI prefab patch --prefabPath "Assets/Prefabs/Player.prefab" --ops ".aibridge/patch_ops/p
- 参数选择
- 标准流程
- 操作示例
- 支持的操作
- 不支持时的处理
- 引用写法
- 注意事项
- References
What does the aibridge-prefab-patch skill do?
Unity Prefab asset patch workflow for AIBridge. Use when modifying complex prefab assets with prefab patch operations, child or component creation, SerializedProperty writes, array edits, internal GameObject/component references, dry-run validation, or when deciding between prefab patch, inspector set_property, scene object commands, and direct Unity YAML fallback.
How do I install it?
Run `npx skills add FlameskyDexive/Legends-Of-Heroes --skill aibridge-prefab-patch --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From FlameskyDexive/Legends-Of-Heroes, a repository with 908 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
