skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
besty0728/unity-skills91 installs

unity-prefab

Manage Prefabs and variants

How do I install this agent skill?

npx skills add https://github.com/besty0728/unity-skills --skill unity-prefab
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    The skill provides a set of tools for managing Unity Prefabs and variants through a local API. No security issues were detected.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

  • Runlayerpass

    1 file scanned · No issues

What does this agent skill do?

Unity Prefab Skills

Scene prefab instances, prefab assets and variants. Parameters come from the schema (GET /skills/schema?category=Prefab&wire=v2); execution and dryRun rules: root SKILL.md. Parameters: reference/<skill_name>.md.

Rules

  • Batch first: use prefab_instantiate_batch for 2 or more instances, and the _batch variant of an asset edit for several assets.
  • Instance skills target entityId (preferred), name, instanceId or path. Instance writes stay on the instance until prefab_apply or prefab_apply_overrides.
  • Asset edits take prefabPath and a root-relative gameObjectPath (empty means the root), and save only that asset. Variant and nested edits stay overrides; they never change the base prefab.
  • Duplicate sibling names are rejected with candidates and siblingIndex. Component indices are zero-based among components of exactly the requested type (prefab_list_components reports them).
  • prefab_edit_batch runs ordered edits, all or nothing: list the 12 single writes in steps, not reads or scene skills.
  • Reference fields take a project asset, a node inside this prefab, or an explicit clear; never a scene object.
  • Operating mode: instance and asset reads are SemiAuto; writes are FullAuto. Component and node deletion and prefab_edit_batch carry Delete or high metadata: refused under Approval and Auto.
  • DryRun does not load prefab contents; a step that depends on an earlier one is validated when it runs.

Pitfalls

  • Root deletion, reparenting or duplication, transform replacement or removal, cycles, script and bookkeeping property writes, and Unity-invalid inherited structure changes are rejected.
  • prefab_set_property keeps its legacy parameters; new code uses prefab_set_serialized_property.

Routing

  • Components on a scene instance → component module, then prefab_apply.

Skills Overview

SkillPurpose
prefab_createCreate a prefab from a scene object
prefab_applyApply instance changes to the source
prefab_unpackBreak the prefab connection
prefab_get_overridesCount or list instance overrides
prefab_revert_overridesRevert an instance's overrides
prefab_apply_overridesApply an instance's overrides to the source
prefab_create_variantCreate a variant of a prefab asset
prefab_find_instancesFind instance roots in the scene
prefab_set_propertyLegacy one-property asset write
prefab_get_infoRead one node of a prefab asset
prefab_get_hierarchyRead the node tree of an asset
prefab_list_componentsList components per node
prefab_get_serialized_propertiesRead a component's serialized properties
prefab_edit_batchOrdered asset edits, all or nothing
prefab_instantiate, prefab_instantiate_batchInstantiate several prefabs in one call
prefab_add_component, prefab_add_component_batchAdd a component to a node
prefab_remove_component, prefab_remove_component_batchRemove a component
prefab_set_component_enabled, prefab_set_component_enabled_batchEnable or disable a component
prefab_set_serialized_property, prefab_set_serialized_property_batchWrite one serialized property
prefab_create_gameobject, prefab_create_gameobject_batchCreate a node
prefab_delete_gameobject, prefab_delete_gameobject_batchDelete a node (refused under Approval)
prefab_duplicate_gameobject, prefab_duplicate_gameobject_batchDuplicate a node subtree
prefab_rename_gameobject, prefab_rename_gameobject_batchRename a node
prefab_set_transform, prefab_set_transform_batchSet a node's transform
prefab_set_parent, prefab_set_parent_batchReparent a node
prefab_set_active, prefab_set_active_batchSet a node's active state
prefab_set_sibling_index, prefab_set_sibling_index_batchReorder a node among its siblings

DO NOT (common hallucinations):

  • prefab_create_from_object does not exist: use prefab_create.
  • prefab_spawn does not exist: use prefab_instantiate.
  • prefab_edit and prefab_modify do not exist: use prefab_edit_batch.
  • prefab_save does not exist: use prefab_apply.

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/besty0728/unity-skills/unity-prefab">View unity-prefab on skillZs</a>