用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Besty0728/Unity-Skills --skill unity-sample命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Automate the Unity Editor through a local REST API — create and edit scripts, build scenes and prefabs, manage assets/materials/lighting, run tests, and drive hundreds of Editor operations across modules. Use when the user wants to actually operate the Unity Editor from chat — create or modify GameObjects/scripts/scenes/assets, batch-edit, or run Editor automation — in any language. Not needed for conceptual Unity Q&A that touches no Editor state — read the matching advisory doc under skills/ instead. 当用户要从对话里实际操作 Unity 编辑器(创建/修改/批量编辑/运行测试)时使用,任何语言均可触发;纯概念问答无需本协议。
Unified batch and async-job orchestration
Index of all Unity Skills modules with per-module mode labels (SA/FA/Mixed). Use to find which module covers a task before loading its doc.
正在显示 SKILL.md
| name | unity-sample |
| description | Sample and demo skills for API connectivity testing |
Before calling any skill in this module: if you are about to call a skill with parameters guessed from its name or description, STOP — read this file (or fetch its schema via
GET /skills/recommend?includeSchema=true) first. If you already have the parameter definitions from recommend/schema, you may proceed straight to dryRun.
Basic examples for testing the API.
Operating Mode (v1.9 three-tier):
get_scene_info, find_objects_by_name) run directly. Creators/mutators (create_cube, create_sphere, set_object_position, set_object_rotation, set_object_scale) are FullAuto — on MODE_RESTRICTED, run the grant protocol.delete_object (SkillOperation.Delete). It is reachable only under Bypass or via a user-managed Allowlist entry; the grant flow returns MODE_FORBIDDEN.Surface profile: this module's write skills count as GameObject authoring under another name, so both the guide and noSceneAuthoring profiles hide them and answer SURFACE_EXCLUDED — the exclusion cannot be bypassed by mode or Allowlist. Under guide, details.manualDoc points at manual-gameobject, which teaches these same primitive/transform steps by hand. The query skills stay available in every profile.
SURFACE_EXCLUDED has a second source beyond a hidden skill name: visible shell skills that replay a payload — batch_execute / batch_retry_failed (batch module) and the workflow undo/redo/revert skills (workflow module) — return the same code at execution time when the payload they are about to apply lands in a category the active profile withdraws, even though those shell skills are never themselves hidden.
DO NOT (common hallucinations):
sample_create is a simplified version of gameobject_create — prefer the full gameobject modulesample_hello / sample_ping are connectivity test skills onlyRouting:
gameobject moduleunity_skills.health()Create a cube primitive.
Parameters: x, y, z, name
Create a sphere primitive.
Parameters: x, y, z, name
Delete object by name.
Parameters: objectName
find_objects_by_nameFind objects containing string.
Parameters: nameContains (name is also accepted as a compatibility alias)
set_object_positionSet object position.
Parameters: objectName, x, y, z
set_object_rotationSet object rotation.
Parameters: objectName, x, y, z
set_object_scaleSet object scale.
Parameters: objectName, x, y, z
get_scene_infoGet current scene information. Parameters: None.
Exact names, parameters, defaults, and returns are defined by GET /skills/schema or unity_skills.get_skill_schema(), not by this file.