liyingsong99/aibridge/aibridge-prefab-patch
Claude Code and agent skill by liyingsong99/aibridge
- community
Checking that the SKILL.md file is still in the repository.
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
Install
npx vskill@latest install liyingsong99/aibridge/aibridge-prefab-patchSKILL.md
AIBridge Prefab Patch
Use prefab patch when one Prefab edit needs multiple operations in one load/save cycle. For single-field or small batched edits, prefer inspector set_property or inspector set_properties. For scene objects, prefer gameobject, transform, and inspector. For unsupported operations, load unity-yaml-editing
参数选择
- 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 truebefore writing the prefab
标准流程
- Find the target prefab with
asset find/search --format paths - Inspect structure with
prefab get_hierarchy --prefabPath "<prefab>" - Create
.aibridge/patch_ops/<task>.json - Run dry-run:
- If dry-run succeeds, run the same command without
--dryRun true - Re-check hierarchy/properties, then run
compile unityandget_logs --logType Error
操作示例
Supported ops: ensure_child, ensure_component, set_property, set_properties, set_array, append_array, clear_array. See references/prefab-reference.md for full op schemas
不支持时的处理
If an operation is not covered by patch ops, load unity-yaml-editing and follow its Decision Order
引用写法
Use these object reference values inside value or array items:
注意事项
- Do not edit Prefab YAML directly; for unsupported operations use
unity-yaml-editing - Duplicate child names or component types are ambiguous; use exact hierarchy paths and
componentIndex
References
references/prefab-reference.md: generated CLI reference for generalprefabcommands
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingSkill~/aibridge-prefab-patch/SKILL.md
Popularity
- Repository stars
- 189
- Repository forks
- 27
- 7-day trend score
- 26
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/liyingsong99/aibridge/aibridge-prefab-patch)