[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CB5T00MFBVQBV981AY0A3Z":3,"skill-same:01M6CB5T00MFBVQBV981AY0A3Z":70},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":23,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":49,"commitSha":50,"skillDirectory":51,"forksCount":14,"repositoryHtmlUrl":52,"repositoryHomepageUrl":6,"ownerHtmlUrl":53,"ownerBlogUrl":6,"ownerDescription":54,"updatedAt":55,"install":56,"resources":69},"01M6CB5T00MFBVQBV981AY0A3Z","unity-skill-create",null,"Create a new skill using C# code. It will be added into the project as a .cs file and compiled by Unity. The skill will be available for use after compilation.\n\nIt must be a partial class decorated with [McpPluginToolType]. Each tool method must be decorated with [McpPluginTool]. The class name should match the file name. All Unity API calls must use com.IvanMurzak.ReflectorNet.Utils.MainThread.Instance.Run(). Return a data model for structured output, or void for side-effect-only operations. \n\nFull sample:\n```csharp\n#nullable enable\nusing System;\nusing System.ComponentModel;\nusing com.IvanMurzak.McpPlugin;\nusing com.IvanMurzak.ReflectorNet.Utils;\nusing com.IvanMurzak.Unity.MCP.Editor.Utils;\nusing com.IvanMurzak.Unity.MCP.Runtime.Data;\nusing UnityEditor;\nusing UnityEngine;\n\nnamespace com.IvanMurzak.Unity.MCP.Editor.API\n{\n    [McpPluginToolType]\n    public partial class Tool_Sample\n    {\n        [McpPluginTool(\"sample-get\", Title = \"Sample \u002F Get\")]\n        [Description(\"Finds a GameObject and returns its ref data.\")]\n        public GameObjectRef Get\n        (\n            [Description(\"Name of the GameObject to find.\")]\n            string name\n        )\n        {\n            return MainThread.Instance.Run(() =>\n            {\n                var go = GameObject.Find(name)\n                    ?? throw new ArgumentException($\"GameObject '{name}' not found.\", nameof(name));\n\n                return new GameObjectRef(go);\n            });\n        }\n\n        [McpPluginTool(\"sample-rename\", Title = \"Sample \u002F Rename\")]\n        [Description(\"Renames a GameObject.\")]\n        public void Rename\n        (\n            [Description(\"Current name of the GameObject.\")]\n            string name,\n            [Description(\"New name to assign.\")]\n            string newName\n        )\n        {\n            MainThread.Instance.Run(() =>\n            {\n                var go = GameObject.Find(name)\n                    ?? throw new ArgumentException($\"GameObject '{name}' not found.\", nameof(name));\n\n                go.name = newName;\n                EditorUtility.SetDirty(go);\n                AssetDatabase.Refresh(ImportAssetOptions.ForceSynchronousImport);\n                EditorUtils.RepaintAllEditorWindows();\n            });\n        }\n    }\n}\n```\n## Suggestions\n\n### Refresh UI after visual changes\nIf the skill modifies anything visually in the Unity Editor (GameObjects, components, materials, etc.), call these two lines at the end of the tool method to apply changes to the UI immediately:\n```csharp\nAssetDatabase.Refresh(ImportAssetOptions.ForceSynchronousImport);\nEditorUtils.RepaintAllEditorWindows();\n```\n\n### Refresh AssetDatabase after asset or script changes\nIf the skill creates, modifies, or deletes any asset file or .cs script on disk outside of Unity API, call this inside a `MainThread.Instance.Run()` block to ensure Unity picks up the changes:\n```csharp\nMainThread.Instance.Run(() =>\n{\n    AssetDatabase.Refresh(ImportAssetOptions.ForceSynchronousImport);\n});\n```\n\n### Use processing mechanic for long-running or domain-reload operations\nSome operations take time to complete and may trigger a Unity domain reload (e.g. writing a .cs script, switching play mode, running tests, adding a package). In these cases the tool must NOT block and wait — instead it must:\n1. Accept a `[RequestID] string? requestId` parameter.\n2. Return `ResponseCallTool.Processing(\"...\").SetRequestID(requestId)` immediately.\n3. Schedule the actual work asynchronously via `MainThread.Instance.RunAsync(async () => { await Task.Yield(); ... })`.\n4. When the operation finishes, send the final result by calling:\n```csharp\n_ = UnityMcpPluginEditor.NotifyToolRequestCompleted(new RequestToolCompletedData\n{\n    RequestId = requestId,\n    Result = ResponseCallTool.Success(\"Operation completed.\").SetRequestID(requestId)\n});\n```\nIf the operation may survive a domain reload (e.g. a .cs file was saved and Unity will recompile), use `ScriptUtils.SchedulePostCompilationNotification(requestId, filePath, operationType)` instead of calling `NotifyToolRequestCompleted` directly — it persists the pending notification to `SessionState` and sends it automatically after the domain reload completes. For package install\u002Fremoval or other non-compilation domain reloads use `PackageUtils.SchedulePostDomainReloadNotification(requestId, label, action, expectedResult)` the same way.\n\n### Return structured data with a typed response\nPrefer returning a structured data model over a plain string so the AI can parse individual fields. Declare a nested class with `[Description]` on each property and use `ResponseCallValueTool\u003CT>` as return type:\n```csharp\n\u002F\u002F Return type:\npublic ResponseCallValueTool\u003CMyResult> MyTool(...)\n{\n    return ResponseCallValueTool\u003CMyResult>.Success(new MyResult\n    {\n        Name = go.name,\n        InstanceID = go.GetInstanceID()\n    }).SetRequestID(requestId);\n}\n\n\u002F\u002F Data model:\npublic class MyResult\n{\n    [Description(\"Name of the GameObject.\")]\n    public string? Name { get; set; }\n\n    [Description(\"Unity instance ID of the GameObject.\")]\n    public int InstanceID { get; set; }\n}\n```\nFor simpler cases that do not need async\u002Fprocessing, you may return the model directly (without `ResponseCallValueTool\u003CT>`) and Unity-MCP will wrap it automatically.\n\n### Validate inputs early and throw clearly\nAlways validate required parameters at the top of the method before any Unity API calls. Throw `ArgumentException` or `InvalidOperationException` with descriptive messages so the AI knows exactly what went wrong and can self-correct:\n```csharp\nif (string.IsNullOrEmpty(name))\n    throw new ArgumentException(\"Name cannot be null or empty.\", nameof(name));\n```\n\n### Always use MainThread for Unity API calls\nAll Unity API calls (including `GameObject.Find`, `AssetDatabase`, `EditorUtility`, etc.) MUST run on the main thread. Wrap them in `MainThread.Instance.Run(() => { ... })` for synchronous operations, or `MainThread.Instance.RunAsync(async () => { ... })` when you need to await inside.","devwinsoft\u002Fdevian","devwinsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F22570160?v=4","01M6C6RR8W05NH8NPKQNCE3Q72","maoshy","01M6C6RRDJ5TJJCZXRTY801YDH",0,"MIT","https:\u002F\u002Fgithub.com\u002Fdevwinsoft\u002Fdevian\u002Fblob\u002Fmain\u002Fframework-cs\u002Fapps\u002FUnityExample\u002F.claude\u002Fskills\u002Funity-skill-create\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"unity skill create","create","correct","async","up","only","use","effect","model","tool","system","MCP","SET","messages","file","package","play","csharp","structured data","writing","2026-11-10 10:12:30",false,"---\nname: unity-skill-create\ndescription: |-\n  Create a new skill using C# code. It will be added into the project as a .cs file and compiled by Unity. The skill will be available for use after compilation.\n  \n  It must be a partial class decorated with [McpPluginToolType]. Each tool method must be decorated with [McpPluginTool]. The class name should match the file name. All Unity API calls must use com.IvanMurzak.ReflectorNet.Utils.MainThread.Instance.Run(). Return a data model for structured output, or void for side-effect-only operations. \n  \n  Full sample:\n  ```csharp\n  #nullable enable\n  using System;\n  using System.ComponentModel;\n  using com.IvanMurzak.McpPlugin;\n  using com.IvanMurzak.ReflectorNet.Utils;\n  using com.IvanMurzak.Unity.MCP.Editor.Utils;\n  using com.IvanMurzak.Unity.MCP.Runtime.Data;\n  using UnityEditor;\n  using UnityEngine;\n  \n  namespace com.IvanMurzak.Unity.MCP.Editor.API\n  {\n      [McpPluginToolType]\n      public partial class Tool_Sample\n      {\n          [McpPluginTool(\"sample-get\", Title = \"Sample \u002F Get\")]\n          [Description(\"Finds a GameObject and returns its ref data.\")]\n          public GameObjectRef Get\n          (\n              [Description(\"Name of the GameObject to find.\")]\n              string name\n          )\n          {\n              return MainThread.Instance.Run(() =>\n              {\n                  var go = GameObject.Find(name)\n                      ?? throw new ArgumentException($\"GameObject '{name}' not found.\", nameof(name));\n  \n                  return new GameObjectRef(go);\n              });\n          }\n  \n          [McpPluginTool(\"sample-rename\", Title = \"Sample \u002F Rename\")]\n          [Description(\"Renames a GameObject.\")]\n          public void Rename\n          (\n              [Description(\"Current name of the GameObject.\")]\n              string name,\n              [Description(\"New name to assign.\")]\n              string newName\n          )\n          {\n              MainThread.Instance.Run(() =>\n              {\n                  var go = GameObject.Find(name)\n                      ?? throw new ArgumentException($\"GameObject '{name}' not found.\", nameof(name));\n  \n                  go.name = newName;\n                  EditorUtility.SetDirty(go);\n                  AssetDatabase.Refresh(ImportAssetOptions.ForceSynchronousImport);\n                  EditorUtils.RepaintAllEditorWindows();\n              });\n          }\n      }\n  }\n  ```\n  ## Suggestions\n  \n  ### Refresh UI after visual changes\n  If the skill modifies anything visually in the Unity Editor (GameObjects, components, materials, etc.), call these two lines at the end of the tool method to apply changes to the UI immediately:\n  ```csharp\n  AssetDatabase.Refresh(ImportAssetOptions.ForceSynchronousImport);\n  EditorUtils.RepaintAllEditorWindows();\n  ```\n  \n  ### Refresh AssetDatabase after asset or script changes\n  If the skill creates, modifies, or deletes any asset file or .cs script on disk outside of Unity API, call this inside a `MainThread.Instance.Run()` block to ensure Unity picks up the changes:\n  ```csharp\n  MainThread.Instance.Run(() =>\n  {\n      AssetDatabase.Refresh(ImportAssetOptions.ForceSynchronousImport);\n  });\n  ```\n  \n  ### Use processing mechanic for long-running or domain-reload operations\n  Some operations take time to complete and may trigger a Unity domain reload (e.g. writing a .cs script, switching play mode, running tests, adding a package). In these cases the tool must NOT block and wait — instead it must:\n  1. Accept a `[RequestID] string? requestId` parameter.\n  2. Return `ResponseCallTool.Processing(\"...\").SetRequestID(requestId)` immediately.\n  3. Schedule the actual work asynchronously via `MainThread.Instance.RunAsync(async () => { await Task.Yield(); ... })`.\n  4. When the operation finishes, send the final result by calling:\n  ```csharp\n  _ = UnityMcpPluginEditor.NotifyToolRequestCompleted(new RequestToolCompletedData\n  {\n      RequestId = requestId,\n      Result = ResponseCallTool.Success(\"Operation completed.\").SetRequestID(requestId)\n  });\n  ```\n  If the operation may survive a domain reload (e.g. a .cs file was saved and Unity will recompile), use `ScriptUtils.SchedulePostCompilationNotification(requestId, filePath, operationType)` instead of calling `NotifyToolRequestCompleted` directly — it persists the pending notification to `SessionState` and sends it automatically after the domain reload completes. For package install\u002Fremoval or other non-compilation domain reloads use `PackageUtils.SchedulePostDomainReloadNotification(requestId, label, action, expectedResult)` the same way.\n  \n  ### Return structured data with a typed response\n  Prefer returning a structured data model over a plain string so the AI can parse individual fields. Declare a nested class with `[Description]` on each property and use `ResponseCallValueTool\u003CT>` as return type:\n  ```csharp\n  \u002F\u002F Return type:\n  public ResponseCallValueTool\u003CMyResult> MyTool(...)\n  {\n      return ResponseCallValueTool\u003CMyResult>.Success(new MyResult\n      {\n          Name = go.name,\n          InstanceID = go.GetInstanceID()\n      }).SetRequestID(requestId);\n  }\n  \n  \u002F\u002F Data model:\n  public class MyResult\n  {\n      [Description(\"Name of the GameObject.\")]\n      public string? Name { get; set; }\n  \n      [Description(\"Unity instance ID of the GameObject.\")]\n      public int InstanceID { get; set; }\n  }\n  ```\n  For simpler cases that do not need async\u002Fprocessing, you may return the model directly (without `ResponseCallValueTool\u003CT>`) and Unity-MCP will wrap it automatically.\n  \n  ### Validate inputs early and throw clearly\n  Always validate required parameters at the top of the method before any Unity API calls. Throw `ArgumentException` or `InvalidOperationException` with descriptive messages so the AI knows exactly what went wrong and can self-correct:\n  ```csharp\n  if (string.IsNullOrEmpty(name))\n      throw new ArgumentException(\"Name cannot be null or empty.\", nameof(name));\n  ```\n  \n  ### Always use MainThread for Unity API calls\n  All Unity API calls (including `GameObject.Find`, `AssetDatabase`, `EditorUtility`, etc.) MUST run on the main thread. Wrap them in `MainThread.Instance.Run(() => { ... })` for synchronous operations, or `MainThread.Instance.RunAsync(async () => { ... })` when you need to await inside.\n---\n\n# Skill (Tool) \u002F Create\n\n## How to Call\n\n```bash\nunity-mcp-cli run-system-tool unity-skill-create --input '{\n  \"path\": \"string_value\",\n  \"code\": \"string_value\"\n}'\n```\n\n> For complex input (multi-line strings, code), save the JSON to a file and use:\n> ```bash\n> unity-mcp-cli run-system-tool unity-skill-create --input-file args.json\n> ```\n>\n> Or pipe via stdin (recommended):\n> ```bash\n> unity-mcp-cli run-system-tool unity-skill-create --input-file - \u003C\u003C'EOF'\n> {\"param\": \"value\"}\n> EOF\n> ```\n\n\n### Troubleshooting\n\nIf `unity-mcp-cli` is not found, either install it globally (`npm install -g unity-mcp-cli`) or use `npx unity-mcp-cli` instead.\nRead the \u002Funity-initial-setup skill for detailed installation instructions.\n\n## Input\n\n| Name | Type | Required | Description |\n|------|------|----------|-------------|\n| `path` | `string` | Yes | Path for the C# (.cs) file to be created. Sample: \"Assets\u002FSkills\u002FMySkill.cs\".\nCRITICAL — Assembly Definition placement: If the project uses Assembly Definition files (.asmdef), you MUST place the script inside a folder that belongs to an assembly definition which already references all required dependencies (e.g. com.IvanMurzak.McpPlugin, UnityEditor, UnityEngine). Placing the file in the wrong assembly will cause compile errors due to missing type references. Before choosing a path, inspect existing .asmdef files with the assets-find tool to identify the correct assembly folder. |\n| `code` | `string` | Yes | C# code for the skill tool. |\n\n### Input JSON Schema\n\n```json\n{\n  \"type\": \"object\",\n  \"properties\": {\n    \"path\": {\n      \"type\": \"string\"\n    },\n    \"code\": {\n      \"type\": \"string\"\n    }\n  },\n  \"required\": [\n    \"path\",\n    \"code\"\n  ]\n}\n```\n\n## Output\n\nThis tool does not return structured output.\n\n","# Skill (Tool) \u002F Create\n\n## How to Call\n\n```bash\nunity-mcp-cli run-system-tool unity-skill-create --input '{\n  \"path\": \"string_value\",\n  \"code\": \"string_value\"\n}'\n```\n\n> For complex input (multi-line strings, code), save the JSON to a file and use:\n> ```bash\n> unity-mcp-cli run-system-tool unity-skill-create --input-file args.json\n> ```\n>\n> Or pipe via stdin (recommended):\n> ```bash\n> unity-mcp-cli run-system-tool unity-skill-create --input-file - \u003C\u003C'EOF'\n> {\"param\": \"value\"}\n> EOF\n> ```\n\n\n### Troubleshooting\n\nIf `unity-mcp-cli` is not found, either install it globally (`npm install -g unity-mcp-cli`) or use `npx unity-mcp-cli` instead.\nRead the \u002Funity-initial-setup skill for detailed installation instructions.\n\n## Input\n\n| Name | Type | Required | Description |\n|------|------|----------|-------------|\n| `path` | `string` | Yes | Path for the C# (.cs) file to be created. Sample: \"Assets\u002FSkills\u002FMySkill.cs\".\nCRITICAL — Assembly Definition placement: If the project uses Assembly Definition files (.asmdef), you MUST place the script inside a folder that belongs to an assembly definition which already references all required dependencies (e.g. com.IvanMurzak.McpPlugin, UnityEditor, UnityEngine). Placing the file in the wrong assembly will cause compile errors due to missing type references. Before choosing a path, inspect existing .asmdef files with the assets-find tool to identify the correct assembly folder. |\n| `code` | `string` | Yes | C# code for the skill tool. |\n\n### Input JSON Schema\n\n```json\n{\n  \"type\": \"object\",\n  \"properties\": {\n    \"path\": {\n      \"type\": \"string\"\n    },\n    \"code\": {\n      \"type\": \"string\"\n    }\n  },\n  \"required\": [\n    \"path\",\n    \"code\"\n  ]\n}\n```\n\n## Output\n\nThis tool does not return structured output.\n\n",{"name":5,"description":7},"main","8cb5bd877a3a7004867d2f55697cb9e4ff2f1734","framework-cs\u002Fapps\u002FUnityExample\u002F.claude\u002Fskills\u002Funity-skill-create","https:\u002F\u002Fgithub.com\u002Fdevwinsoft\u002Fdevian","https:\u002F\u002Fgithub.com\u002Fdevwinsoft","Kim Hyong Joon","2026-04-12 18:44:10",{"source":8,"skillName":5,"commands":57,"prompt":67,"zipAvailable":68},[58,61,64],{"tool":59,"command":60},"npx","npx skills add devwinsoft\u002Fdevian --skill unity-skill-create",{"tool":62,"command":63},"bunx","bunx skills add devwinsoft\u002Fdevian --skill unity-skill-create",{"tool":65,"command":66},"pnpm","pnpm dlx skills add devwinsoft\u002Fdevian --skill unity-skill-create","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdevwinsoft\u002Fdevian\u002Fblob\u002Fmain\u002Fframework-cs\u002Fapps\u002FUnityExample\u002F.claude\u002Fskills\u002Funity-skill-create\u002FSKILL.md",true,[],[71,77,85,93,102,109],{"skillNo":72,"name":73,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":44},"01M6CBX3K2JJV38ANHVGCAT8A0","devian","https:\u002F\u002Fgithub.com\u002Fdevwinsoft\u002Fdevian\u002Fblob\u002Fmain\u002Fskills\u002Fdevian\u002FSKILL.md",[],[73],{"skillNo":78,"name":79,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":44},"01M6CBX210BFMM8AMN770J9WY8","90-project-archive","https:\u002F\u002Fgithub.com\u002Fdevwinsoft\u002Fdevian\u002Fblob\u002Fmain\u002Fskills\u002Fdevian\u002F80-tools\u002F90-project-archive\u002FSKILL.md",[],[83,84],"archive","90 project archive",{"skillNo":86,"name":87,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":44},"01M6CBWZSGRR9R3YJZB3177667","30-env-management","https:\u002F\u002Fgithub.com\u002Fdevwinsoft\u002Fdevian\u002Fblob\u002Fmain\u002Fskills\u002Fdevian\u002F80-tools\u002F30-env-management\u002FSKILL.md",[],[91,92],"management","30 env management",{"skillNo":94,"name":95,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":44},"01M6CBWYD3TGWBQV7V35551THF","19-page-push-send","https:\u002F\u002Fgithub.com\u002Fdevwinsoft\u002Fdevian\u002Fblob\u002Fmain\u002Fskills\u002Fdevian\u002F80-tools\u002F20-operation\u002F19-page-push-send\u002FSKILL.md",[],[99,100,101],"push","page","19 page push send",{"skillNo":103,"name":104,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":44},"01M6CBWWRQ05A7604GHJKTPJTF","18-page-savedata","https:\u002F\u002Fgithub.com\u002Fdevwinsoft\u002Fdevian\u002Fblob\u002Fmain\u002Fskills\u002Fdevian\u002F80-tools\u002F20-operation\u002F18-page-savedata\u002FSKILL.md",[],[100,108],"18 page savedata",{"skillNo":110,"name":111,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":44},"01M6CBWVH4S2VF1V7B2GBTESCT","17-page-deobfuscate","https:\u002F\u002Fgithub.com\u002Fdevwinsoft\u002Fdevian\u002Fblob\u002Fmain\u002Fskills\u002Fdevian\u002F80-tools\u002F20-operation\u002F17-page-deobfuscate\u002FSKILL.md",[],[100,115],"17 page deobfuscate"]