Automated summary
Builds and edits Locus Views — Vue panels that act as editing interfaces inside a connected Unity project, such as inspectors, tables, block boards, and graph editors.
Strengths
- Covers the whole lifecycle: list or create a View package, edit sources, reload, compile, and run it
- Offers seven purpose-built templates (inspector-form, canvas-board, node-graph, serialized-table, and more) matched to the requested UI
- Grounds API discovery in a stable contract (@locus/view-runtime, @locus/components) plus a runtime-api.md quick reference
- States clear conventions for package paths, the view.json manifest, and workspace code shared through @locus/project-view
Limitations
- Tightly coupled to Locus tooling and its MCP-style tools, so it does not work outside that environment
- Unity-capable templates need a live Unity editor connection when the View runs
- The provided SKILL.md is truncated, so the later workflow steps for property editing and write-back are only partially visible
Use it when the user asks for a new or updated panel, inspector, table, board, or graph editor inside the Unity editor, delivered as a Locus View.
Skip it for Unity project View classes, folders, assets, or camera/runtime views, and for frontend work unrelated to Unity.
Security analysis
CautionThe skill does not contain destructive, exfiltrating, or obfuscated instructions. All actions are scoped to building Locus Views and interacting with a connected Unity project. However, the ability to compile and call scripts and write Unity properties is powerful and could cause unintended project changes if misused, warranting caution.
- •Uses view_compile_script and view_call_script, which can execute C# scripts in the connected Unity editor and potentially modify project state.
- •view_property_write and view_property_apply allow programmatic changes to Unity assets and properties without an explicit user confirmation step.
Examples
Create a Locus View using the inspector-form template that lets me edit the health, speed and damage fields of the PlayerStats ScriptableObject.Build a node-graph View for our dialogue system: nodes with parameters, ports and links, plus write-back into the Unity asset when the graph is saved.Make a serialized-table View that lists every enemy asset with columns for health, speed and aggro radius, and lets me edit the values inline.summary: >- Use when the user asks to build or edit a Locus View (视图/面板): a Vue UI panel, inspector, table, board, or graph editor for the connected Unity project. Ignore Unity project View classes, folders, assets, and camera/runtime views. tools:
- knowledge_query
- read
- view_list
- view_create
- view_reload
- view_run
- view_compile_script
- view_call_script
- view_property_read
- view_property_discover
- view_property_write
- view_property_apply
View
Instructions
Use this workflow when the user asks for a Locus View or a frontend-built Unity editor interface.
-
Resolve the target View.
- Use
view_listfirst when a matching View may already exist. To change an existing View, reuse itspackageRootand continue from step 3. - For a new View, choose the template:
blankfor custom panels and early prototypes.inspector-formfor field-oriented Unity asset, GameObject, Component, Material, or ScriptableObject editing.canvas-boardfor draggable custom blocks.field-blocksfor block-based UnitySerializedPropertyeditors.node-graphfor graph editors with nodes, parameters, links, ports, layout, and scripted write-back.link-boardfor source-to-target mapping interfaces.serialized-tablefor table-based aggregation and editing ofSerializedPropertydata.
- Use
-
Create the package with
view_create.- Keep
idlowercase kebab-case and the display name concise. Pickiconfrom the tool enum, or omit it for the template default. - Set
temporary: truefor one-off display Views. They are written under the app temp directory, stay out ofLocus/Viewandview_list, and the requested id gains a unique suffix — use the returned id everywhere afterwards. displayPathonly changes the user-visible View tree path.packageNamepicks the workspace folder underLocus/Viewand defaults to the Unity project name.- Unity-capable templates (
inspector-form,field-blocks,node-graph,serialized-table) need a connected Unity editor when the View runs.
- Keep
-
Edit only inside the returned
packageRoot.- Manifest
view.jsonownsid,name,template,apiVersion, entry/style paths, scripts, capabilities, and requirements. Keep every path package-relative with forward slashes; never write absolute Unity project paths. - Main UI:
src/App.vue. Entry:src/main.ts. Styles:src/style.css(template styles extend a shared base block — keep it and append rules). Optional Unity script:unity/ViewApi.cs. Additional modules (for example asrc/store.tsfor shared state) may be created underpackageRootas needed. - Code shared across Views in the same workspace lives in the workspace
src/and is imported as@locus/project-view.
- Manifest
-
Resolve API details through the stable View contract, in this order:
runtime-api.mdin this skill package: the quick reference for@locus/view-runtimeservices (Unity property editing, drawers, drag/drop, graph/canvas, session, LLM, storage, fs, logs) and@locus/componentscomponents. Locate it withknowledge_query, thenreadthe returned physical path.- Exported runtime sources under this skill package's
app/view-runtime/src/: exact component props, graph/canvas data shapes, and release behavior. - Locus application sources: only present in a development checkout. Installed releases do not ship them, so never depend on them from package code or instructions.
Typical starting imports:
import { view, unity, property, onEditorUpdate } from "@locus/view-runtime";
import { UnitySerializedPropertyTree, GraphView } from "@locus/components";
-
Use the right runtime path for Unity data.
SerializedPropertyediting from package code:property.fromPath("asset/<assetPath>/property/<propertyPath>")— alsoselection/…,guid/<assetGuid>/…,scene/…, andprefab/…path forms — thentree.drawDefaultEditor(),tree.require(path).draw(),property.write(target, value), or batchedproperty.apply([...]).- Unknown property paths:
view_property_discoverbefore hardcoding any path. Agent-side spot checks and one-off fixes:view_property_read,view_property_write,view_property_apply. - Custom property rendering:
propertyDrawer.registerValue/registerField/registerAttribute/registerPropertyPath/register, passed aspropertyDrawersintoUnitySerializedPropertyTree,UnityPropertyDraw, orUnityObjectPreview. Whole-object rendering:unityObjectDrawer.register(...), passed asobjectDrawersintoUnityObjectPreview. App-wide drawers (affecting chat fences and the Locus Inspector, not just this View) ship as plugin drawer packages instead — seeruntime-api.md"Plugin Drawer Packages". - Custom Unity logic: declare the C# file in
view.jsonscripts[], then call it withview.callScriptfrom package code orview_compile_script+view_call_scriptfrom the agent. - Selection-driven panels:
onEditorUpdate(handler). Unity selection and inspectors:unity.select(...),unity.inspect(...),unity.selectAsset(...),unity.selectSceneObject(...). - Locus <-> Unity drag and drop:
useUnityReferenceDrag,useUnityAssetDropTarget,UnityReferenceChip,UnityDropZone. - LLM-assisted semantic editors:
view.sessionandview.llm.
-
Keep the UI aligned with Locus / Unity Editor tool style.
- Prefer panels, split panes, inspectors, tables, trees, toolbars, and workspaces.
- Keep controls compact, neutral, and useful for long editing sessions. Use existing tokens for surfaces, borders, text, hover states, and accent color.
- Use state badges only for strong statuses such as running, error, modified, enabled, or disabled.
- Avoid marketing-style hero areas, decorative gradients, heavy shadows, oversized cards, colorful chip clusters, and continuous animation.
-
Validate, debug, and report.
- Run
view_reloadafter edits: it validates the manifest and refreshes an open host. Useview_runto open or focus the View host. - If the View fails to load or misbehaves, locate
debug.mdwithknowledge_query, thenreadthe returned physical path. Reading a registered Skill document activates its debugging tools (view_capture,view_snapshot,view_action,view_wait,view_console_read,view_debug_eval). Checkview_console_readfirst for frontend runtime errors. - When the user-facing reply should reference the finished View, put a standalone line in this exact format:
view:<view-id>, using the id returned byview_create,view_list, orview_reload. The Locus frontend renders that line as a View reference block with an Open View button. - Report the View id,
packageRoot, template used, files changed, reload or run result, and the standaloneview:<view-id>reference line.
- Run
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/build-and-edit-locus-views-for-unity-mt3wm12b/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/build-and-edit-locus-views-for-unity-mt3wm12b' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/build-and-edit-locus-views-for-unity-mt3wm12b/download' --output '.skill-downloads/build-and-edit-locus-views-for-unity-mt3wm12b/SKILL.md.part' && mv '.skill-downloads/build-and-edit-locus-views-for-unity-mt3wm12b/SKILL.md.part' '.skill-downloads/build-and-edit-locus-views-for-unity-mt3wm12b/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
This file does not provide a usable name/description header for this native procedure. It remains available to download and inspect; use the manual method below.
Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/build-and-edit-locus-views-for-unity-mt3wm12b/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.