Logo Scenario Unity Expert

Scenario Unity Expert

Tổ chức
scenario-labs
scenario-unity-expert

Dùng khi tác nhân AI điều khiển Unity 6.3 (6000.3) trên máy Mac cho bất kỳ tác vụ nào: chế độ batch và tác vụ -executeMethod, editor đang chạy (editor giao diện của người dùng hoặc editor headless), Unity CLI và com.unity.pipeline, máy chủ MCP, Test Framework, build bằng dòng lệnh; khi tác vụ batch âm thầm thất bại, gặp thông báo 'Scripts have compiler errors', ảnh chụp xuất ra bị đen hoặc hồng, hoặc cần chứng minh kết quả bằng số liệu và một khung hình; hoặc khi cần chuyển yêu cầu Unity cho chuyên gia scenario-unity-* phù hợp.

Add to TypingMind

Tổng quan

Nhà phát hànhscenario-labs
Kho mãskills
Tên kỹ năngscenario-unity-expert
Sao
970
Bản fork
114
Tệp đi kèm
20
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 20 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được scenario-labs công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Scenario Unity Expert trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/scenario-labs/skills/tree/main/skills/game-engines/unity/scenario-unity-expert
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/scenario-labs/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/game-engines/unity/scenario-unity-expert .claude/skills/scenario-unity-expert
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Scenario Unity Expert trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Scenario Unity Expert ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Scenario Unity Expert với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Unity expert (technical director and agent protocol)

Expert Unity work is a loop run against numbers: set the budget, build one stage, measure it, look at it, fix it, then advance. An agent without a mouse gets there by choosing the right channel for each action, editing through serialization with explicit saves, and never trusting its own eyes alone. This skill is that protocol, the shared toolkit every scenario-unity-* skill imports (scripts/), and the map of the team. Target: Unity 6000.3.21f1 (6.3 LTS), URP 17.3, macOS Apple Silicon. If a sibling skill named here is missing from your available skills, ask the user to install it (npx skills add scenario-labs/skills --skill <name>); unattended, proceed from tool schemas and flag the gap.

Status (2026-09-24, after blind grading and the refactor): every toolkit function ran in Unity 6000.3.21f1 here (tests/code/unity-expert/run_all.sh --live --builds; results in archive/tests/unity-expert/live_results.jsonl). Every call from before the refactor is unchanged.

Stance (the expert delta)

  1. One editor per project, and the live editor wins. "You can't open a project in batch mode while the Editor has the same project open" (6.3 Manual). When an editor holds the project, drive it (ut_live), never hand-edit .unity/.prefab/.asset YAML: wrong fileIDs, invisible until reimport, easy to hit the wrong scene (Unity's unity-cli skill).
  2. A job is only as honest as its result line. Pass on the AGENT_RESULT envelope and the log scan, not on "it exited". A compile error in ANY assembly aborts every batch job with "Scripts have compiler errors" (observed; the live editor's twin is Safe Mode, which also blocks com.unity.pipeline).
  3. Numbers before pixels, milliseconds not fps. 16.67 ms at 60 fps, 33.33 at 30; mobile keeps about 65% for thermals (Unity profiling e-book). Editor Play mode is for iteration; the verdict comes from a development player on the lowest target device.
  4. Look AND check, and know the capture's lies. Every frame goes through ut_review.image_checks and a contact sheet you open. Epic's lighting agent approved an all-white frame (scenario-unreal-expert sources); here batch captures showed first-frame white materials, culled 2D lights, bind poses, no Overlay UI and black metals (observed by the team): anything wrong only in an Editor capture is re-checked in a player first. Agent-built levels come out "90%" done, a shelf in front of a door (Code Monkey, ppFshgFOgXU [00:10:52]).
  5. Fix the platform at launch. Target switches inside a batch job silently do nothing (6.3 Manual); -buildTarget/-activeBuildProfile at launch, one process per target. The editor reopens on the last active platform (observed): pin it.
  6. Named jobs over eval. eval to explore, a named job for anything repeated: "A written command turns that workflow into something deterministic and repeatable" (DgNrgZeJOxQ [00:07:41]); generic run-command tools drift (git-amend, VPjo-M6mPkE [00:03:54]).
  7. Tests are the contract. Give work a failing test and a fence ("It can only touch the card data", DgNrgZeJOxQ [00:05:31]); -runTests never with -quit.
  8. Be honest about visual editors. Shader Graph, VFX Graph, the Animator window, UI Builder, Tile Palette painting and terrain sculpting have no authoring API: use the substitute (HLSL, templates with exposed properties, AnimatorController API, UXML/USS text, TerrainData) or name the human path.

Channels

ChannelUse forCost (measured here)Rules
Batch job ut_run.run_methodanything when no editor holds the project6 to 13 s per job (editor boot included)-nographics by default; graphics=True for captures, bakes (never bake with -nographics), profiling; quit=False for async jobs; an editor that hangs after its result is ended by PID (grace, 10 s)
Resident headless editor + AgentKit bridge ut_live.start_headless, callmany calls in a rowboot 5 to 20 s once, then 0.1 to 0.5 s per callholds the project and a license seat; stop_headless
User's GUI editor + AgentKit bridge ut_live.call, evalthe user has the project opensame code path as headless (not run: no GUI windows during tests)the user may need to focus Unity once so it compiles AgentKit; never re-open the user's scene without asking; save what you change
Unity CLI + com.unity.pipeline ut_live.cli_*, eval (auto)fastest live channel: 151 commands, Roslyn eval with no domain reloadeval 0.03 to 0.15 s after a 0.5 to 1.1 s first callCLI 1.0.0-beta.11 (portable copy), package 0.7.0-exp.1 installed before the editor opens; blocked by Safe Mode, possibly by a sandbox
MCPonly unity mcp or a vetted community serverUnity's AI Assistant MCP server is deprecated ("Use the Unity CLI instead")
Test Framework ut_run.run_testsEditMode and PlayMode verdicts, content validationabout 14 s per platformNUnit XML parsed; exit 2 when a test failed (observed)

ut_live.channel(P) picks batch, bridge, pipeline, or blocked (ask the user). "Can't connect" does not prove the editor is closed: rule out Safe Mode and a sandboxed shell first (unity-cli skill).

Establish first

Ask once, then run: target platforms and device class; frame budget (default 60 fps desktop, 30 fps mobile at 65%); 2D or 3D; pipeline (default URP 17.3, HDRP only for high-end PC or console); quality tiers; art style; whether the user's editor has the project open; deliverable. Then ut_env.preflight(P) and AgentJob.Echo; write what they report (pipeline asset, color space, active target, quality level, Enter Play Mode setting, input handler, scripting backend) into the plan.

Workflow (the expert loop)

  1. Brief in numbers. Budgets per platform, resolution, scale, style. GATE: every later check has a number to compare with.
  2. Preflight. License days left, modules, lock state, compile health (one Echo job). GATE: ok, zero compile errors, zero new CS0618 warnings.
  3. Baseline. AgentAudit.AuditScene/AuditAssets; captures of fixed bookmarks (AgentCapture.SaveBookmark); a Play-mode profile if performance matters. GATE: audit errors fixed or listed; contact sheet opened.
  4. Build one stage with small idempotent jobs (references/writing-jobs.md): get-or-create, serialized edits, explicit saves. Route domain work to the owner (below).
  5. Measure. Re-run the audit, the tests, AgentProfile.PlayModeTimings + ut_stat.budget_check, or the build summary. GATE: numbers against the brief.
  6. Look AND check. Same bookmarks, ut_review.review_capture, open the sheet, judge with the domain skill's critique. GATE: no blank or magenta frame, saturation not collapsed, the change visible.
  7. Fix before advancing, one change at a time; ut_review.compare and ut_stat.compare_frames prove parity or gain.
  8. Deliver with evidence. Each step with its Unity call (references/toolkit-map.md), then Verified (what ran, job id, number or frame) and Assumed (not run, [verify], defaults). Never call a scene, shader, level or build done without numbers and a frame you looked at.

Numbers

ValueRelative toSource
16.67 / 33.33 msframe budget at 60 / 30 fpsprofiling e-book
x 0.65mobile sustained budget (10.8 ms at 60, 21.7 at 30)profiling and mobile e-books
6 to 13 sone batch job on this project, editor boot includedobserved
about 14 sone run_tests platform run (EditMode 2 tests, PlayMode 1 test)observed
60 s (12 s incremental), 114.7 MBmacOS Mono player build of the demo scene (universal)observed
259 s (25 s incremental), 12.2 MBWeb build (IL2CPP, Brotli) of the same sceneobserved
0.1 to 0.5 s / 0.03 to 0.15 slive call through the AgentKit bridge / Pipeline eval (two runs)observed
30 daysPersonal license offline window (license_ok() reads it)observed + Unity support FAQ
10 s / 120 sgrace before ut_run ends a silent editor after its result with / without a shutdown linetoolkit default

Quality gates

  • Measurable: envelope ok plus compile_errors == []; audit counts.error == 0; NUnit failed == 0 and total > 0; budget_check verdict pass (warn needs a reason); gc_check in a development player; build_summary result Succeeded, size within budget; lock state recorded.
  • Visual: every capture passes image_checks (no all_white, all_black, uniform, magenta) and was opened; before/after from the same bookmarks.
  • Habits (references/routing-handoffs.md section 6): the same build_target on every stage; p95 AND worst frame, before and after as two captures of about 200 frames (YOtDVv5-0A4 [00:17:00]); the verdict from a development player on the target device class (ZkvK0mX-id4 [00:10:27]); one development-build run before code is done (only those catch off-main-thread Unity calls); size on the shipped output; the scene list checked before each build; expected errors LogAssert.Expected.

Common mistakes

MistakeWhat it looks likeFix
batch job on a project the GUI editor holdsrefused, or a corrupted Libraryut_live (the toolkit raises ProjectLockedError)
-quit with -runTestsno XML, no verdictut_run.run_tests (never passes it)
captures or bakes with -nographicsempty frames, "no graphics device", no lightmapsgraphics=True
switching platform or defines inside a job, or pinning the target only on the buildold target or defines; textures re-imported per stagebuild_target= on every stage, or two invocations
GetComponent<T>() ?? AddComponent<T>(), ?. on Unity objectsnothing added, MissingComponentException next (fake null, measured)explicit == null or TryGetComponent
AgentJob.List("k") ?? defaultsthe defaults never apply (empty list, not null)AgentJob.ListOrNull("k") ?? defaults, TryList, Has
sizing a build from BuildReport totalSizegigabytes: IL2CPP's do-not-ship folder countedbuild_summary (output on disk)
trusting "Access token is unavailable" as a license failurefalse alarmthe refusal line is "No valid Unity Editor license found"
hand-editing scene YAML while an editor is openchange invisible or lostlive job, then AgentBridge.SaveAll
killing Unity by nameother agents' editors diestop by PID only (stop_headless, the grace timeout)

Team routing and handoffs

Route by owner: scenario-unity-architecture (code, save data, input), scenario-unity-world-building (terrain, blockout, streaming), scenario-unity-rendering-lighting (pipeline, lighting, post), scenario-unity-shaders (HLSL, Shader Graph, renderer features), scenario-unity-vfx (VFX Graph, particles), scenario-unity-animation (Animator, Timeline, Cinemachine), scenario-unity-2d (sprites, tilemaps, 2D lights), scenario-unity-ui (uGUI, UI Toolkit), scenario-unity-gameplay (physics, AI, netcode, audio), scenario-unity-pipeline-automation (imports, Addressables, CI, builds), scenario-unity-performance (profiling, memory, batching), scenario-unity-mobile (Android, iOS, stores), scenario-unity-web (Web builds, servers, WebGPU). Full keyword table, persona chains and the handoff packet: references/routing-handoffs.md. Items that fell between two skills in blind grading (PSO warm-up, GPU Resident Drawer, VFX shaders, NavMesh through doors, foot sliding, uGUI over UI Toolkit, web fonts, stripping, Addressables duplication, static state) have ONE owner and a proof in its seams table: put both in the brief. Every packet carries project and channel, brief in numbers, what was done with its Unity calls, evidence (audit JSON, contact sheet with flags, CSV verdict, NUnit totals, build summary), Verified, Assumed, open issues, fence. The receiver reproduces one piece of evidence before building on it.

Unity 6.3 notes (full list: references/unity-6.3-traps.md)

  • Render Graph only (Compatibility Mode removed; the define dies in 6.4); _CLUSTER_LIGHT_LOOP replaces _FORWARD_PLUS.
  • FindObjectsByType<T>(FindObjectsSortMode.None); Rigidbody.linearVelocity/linearDamping; [SerializeField] only on fields; Lightmapping.TryGetLightingSettings (the getter throws when unassigned, observed).
  • Templates run the Input System only; entering Play mode reloads the domain (6.6 flips the default: reset statics in SubsystemRegistration, unsubscribe on ExitingPlayMode); -createProject without a template is Built-in.
  • Object.Destroy already calls OnDisable on every level of the hierarchy on 6000.3.21f1 (observed; the deltas say direct children only before 6.4): unregister in OnDisable and, idempotently, in OnDestroy.
  • Build Profiles replace Build Settings; no public API creates a profile before 6.5; IPreprocessBuildWithContext over ...WithReport; an EditorUserBuildSettings change on an active platform profile hits all platform profiles; profile texture compression lives in Library/.
  • Pin package versions: the manifest lists Cinemachine 2.10.7 yet a bare Client.Add installed 3.1.7 (observed); IAP 4.15.1 and LevelPlay 8.10.1 lag the docs (IAP 5, LevelPlay 9).
  • Web: the URP template ships Brotli, not the Manual's gzip (observed); WebGPU experimental (opt-in production from 6.6). Built-in RP deprecated from 6.5.

macOS specifics

  • Editor /Applications/Unity/Hub/Editor/6000.3.21f1/Unity.app/Contents/MacOS/Unity; Hub modules (Web, iOS, Android) in .../6000.3.21f1/PlaybackEngines/; Xcode 26.6 meets the App Store rule.
  • Metal only; no CPU lightmapper on Apple Silicon (GPU lightmapper needs graphics); no GPU timings in the VFX Graph panel; GPU Frame Time reads 0 on most Editor frames: measure GPU in a player.
  • Personal license: sign in to Unity Hub every 30 days (ut_env.license_ok()); the toolkit uses a portable, checksum-verified CLI (references/live-channels.md).
  • Paths with spaces worked; quote every path. Never ship <Product>_BurstDebugInformation_DoNotShip. Never kill an editor you did not start.

Shared toolkit (scripts/; exact API in references/toolkit-map.md)

import sys; sys.path.insert(0, "<scenario-unity-expert>/scripts").

  • ut_env (editor, license, base_project, install_agentkit, lock rule, preflight); ut_run (run_method(project, method, args=None, timeout=1800, graphics=False, quit=True, build_target=None, grace=None, result_grace=None), run_tests, build, scan_log); ut_live (bridge, headless editor, CLI, Pipeline eval); ut_review (image_checks, compare, contact_sheet, review_capture); ut_stat (budget_check, summarize_csv, compare_frames, build_summary).
  • C# AgentKit (scripts/AgentKit/): AgentJob (List/Dict never null; TryList, ListOrNull for missing keys), AgentCapture (warms materials and 2D lights), AgentAudit, AgentBuild, AgentProfile, AgentBridge, AgentJson.

References

  • references/toolkit-map.md: the Unity call behind every toolkit function; the report format (Verified, Assumed).
  • references/writing-jobs.md: how domain skills write AgentKit jobs (skeleton, rules, async jobs, findings).
  • references/live-channels.md: bridge, headless editor, Unity CLI and com.unity.pipeline, MCP, sandbox and Safe Mode.
  • references/unity-6.3-traps.md: traps observed by the lead and the writers, documented 6.3 facts, deltas corrections, first-run checklist.
  • references/routing-handoffs.md: routing, seams, persona chains, handoff packet, acceptance checks, verification habits.
  • references/procedures.md: the lead's nine procedures, each with its live test and result.
  • references/gui-paths.md: windows and menus for the same tasks.
  • references/sources.md: every source with credentials, URLs, timestamps; revision history.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Scenario Unity Expert làm được gì?

Dùng khi tác nhân AI điều khiển Unity 6.3 (6000.3) trên máy Mac cho bất kỳ tác vụ nào: chế độ batch và tác vụ -executeMethod, editor đang chạy (editor giao diện của người dùng hoặc editor headless), Unity CLI và com.unity.pipeline, máy chủ MCP, Test Framework, build bằng dòng lệnh; khi tác vụ batch âm thầm thất bại, gặp thông báo 'Scripts have compiler errors', ảnh chụp xuất ra bị đen hoặc hồng, hoặc cần chứng minh kết quả bằng số liệu và một khung hình; hoặc khi cần chuyển yêu cầu Unity cho chuyên gia scenario-unity-* phù hợp.

Vì sao nên dùng Scenario Unity Expert trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Scenario Unity Expert là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Scenario Unity Expert trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/scenario-labs/skills/tree/main/skills/game-engines/unity/scenario-unity-expert. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Scenario Unity Expert?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Scenario Unity Expert với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Scenario Unity Expert với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Scenario Unity Expert có miễn phí không?

Có. Kỹ năng này được scenario-labs phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇