skill-creator
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.
Triggers
- Writing your own custom skill for your project
- Extending what agents can do in this specific Unity project
- Learning the [UnitySkill] metadata contract and discovery rules
- 为自己的工程编写自定义技能、扩展 Agent 在本工程可调用的能力
Skill Creator (advisory)
Audience: an agent (or developer) adding a custom skill to your own Unity project, not to the UnitySkills plugin source. A custom skill is a public static method marked [UnitySkill] compiled inside your project's Editor code; the server discovers it automatically — you never edit the plugin.
Where the C# must live
Put the file under Assets/ in an Editor-only location (e.g. Assets/Editor/UnitySkillsCustom/MySkills.cs, or any asmdef whose platform is Editor). The plugin's editor asmdef has autoReferenced: true, so Assembly-CSharp-Editor and ordinary user Editor asmdefs see the public API without adding references.
- Never put custom skill code inside the package (
Packages/com.besty.unity-skills/) orLibrary/PackageCache/: package updates and self-update replace that whole tree and your file is wiped. - The class need not be a MonoBehaviour; a plain
static classis fine.