Synthèse automatique
Applique des modifications par lot à un AnimatorController Unity (paramètres, couches, états, transitions) via l'outil unity-mcp-cli.
Points forts
- Gère de nombreux types de modifications (paramètres, couches, états, transitions, vitesses).
- Les erreurs par modification sont accumulées sans interrompre le lot.
- L'asset est marqué comme sale puis sauvegardé automatiquement.
Limites
- Nécessite d'abord d'exécuter animator-get-data pour connaître les noms valides.
- Se limite aux AnimatorController et aux AnimationClip existants.
- L'installation de unity-mcp-cli est requise.
Lorsque vous devez restructurer ou régler un AnimatorController Unity de manière programmatique dans un workflow piloté par MCP.
Pour des modifications manuelles ponctuelles plus rapides dans l'éditeur Unity ou lorsque les données de l'animator sont inconnues.
Analyse de sécurité
SûrThe skill instructs using a Unity-specific CLI tool to modify AnimatorController assets. It does not contain destructive shell commands, exfiltration, obfuscation, or disabling of safety features. The bash commands shown are limited to invoking the unity-mcp-cli tool with JSON input.
Aucun point d'attention détecté
Comment cette analyse est faiteExemples
Add a float parameter 'Speed' to the AnimatorController at Assets/Animators/Player.controllerRemove the layer named 'Aim' from the animator controller Assets/Animators/Player.controllerIn Assets/Animators/Player.controller, set the default state of layer 0 to 'Idle' and set the speed of state 'Run' to 1.5name: animator-modify
description: Apply a batch of modifications to a Unity AnimatorController — add/remove parameters, layers, states, and transitions; set default states; set state motion/speed. Use 'animator-get-data' first to discover valid names.
Animator / Modify
Apply a batch of modifications to a Unity AnimatorController asset. Each modification is dispatched by its AnimatorModificationType discriminator. Use 'animator-get-data' first to discover valid names so the diff is targeted.
Inputs
animatorRef— reference to theAnimatorControllerasset (path must start withAssets/and end with.controller).modifications— array ofAnimatorModificationentries.
Supported modification types
AddParameter/RemoveParameter— manage controller parameters (float, int, bool, trigger).AddLayer/RemoveLayer— manage animator layers.AddState/RemoveState— manage states inside a specific layer.SetDefaultState— pick the default state for a layer.AddTransition/RemoveTransition— manage state-to-state transitions.AddAnyStateTransition— add a transition from Any State.SetStateMotion— assign anAnimationClipas a state's motion.SetStateSpeed— set a state's speed multiplier.
Behavior
Per-modification errors are accumulated in the response's errors array instead of aborting the whole batch. The controller asset is marked dirty and saved after the modifications complete.
How to Call
unity-mcp-cli run-tool animator-modify --input '{
"animatorRef": "string_value",
"modifications": "string_value"
}'
For complex input (multi-line strings, code), save the JSON to a file and use:
unity-mcp-cli run-tool animator-modify --input-file args.jsonOr pipe via stdin (recommended):
unity-mcp-cli run-tool animator-modify --input-file - <<'EOF' {"param": "value"} EOF
Troubleshooting
If unity-mcp-cli is not found, either install it globally (npm install -g unity-mcp-cli) or use npx unity-mcp-cli instead.
Read the /unity-initial-setup skill for detailed installation instructions.
Input
| Name | Type | Required | Description |
|------|------|----------|-------------|
| animatorRef | any | Yes | Reference to the AnimatorController asset to modify. |
| modifications | any | Yes | Array of modifications to apply to the controller. |
Input JSON Schema
{
"type": "object",
"properties": {
"animatorRef": {
"$ref": "#/$defs/AIGD.AssetObjectRef"
},
"modifications": {
"$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Animation.AnimatorModification-1"
}
},
"$defs": {
"System.Type": {
"type": "string"
},
"AIGD.AssetObjectRef": {
"type": "object",
"properties": {
"instanceID": {
"type": "integer",
"description": "instanceID of the UnityEngine.Object. If this is '0' and 'assetPath' and 'assetGuid' is not provided, empty or null, then it will be used as 'null'."
},
"assetType": {
"$ref": "#/$defs/System.Type",
"description": "Type of the asset."
},
"assetPath": {
"type": "string",
"description": "Path to the asset within the project. Starts with 'Assets/'"
},
"assetGuid": {
"type": "string",
"description": "Unique identifier for the asset."
}
},
"required": [
"instanceID"
],
"description": "Reference to UnityEngine.Object asset instance. It could be Material, ScriptableObject, Prefab, and any other Asset. Anything located in the Assets and Packages folders."
},
"com.IvanMurzak.Unity.MCP.Animation.AnimatorModification": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"AddParameter",
"RemoveParameter",
"AddLayer",
"RemoveLayer",
"AddState",
"RemoveState",
"SetDefaultState",
"AddTransition",
"RemoveTransition",
"AddAnyStateTransition",
"SetStateMotion",
"SetStateSpeed"
],
"description": "Modification type. Properties below are used conditionally based on this value."
},
"parameterName": {
"type": "string",
"description": "Parameter name. Required for: AddParameter, RemoveParameter."
},
"parameterType": {
"type": "string",
"description": "Parameter type: Float, Int, Bool, Trigger. Required for: AddParameter."
},
"defaultFloat": {
"type": "number",
"description": "Default float value. Optional for: AddParameter (Float type)."
},
"defaultInt": {
"type": "integer",
"description": "Default int value. Optional for: AddParameter (Int type)."
},
"defaultBool": {
"type": "boolean",
"description": "Default bool value. Optional for: AddParameter (Bool type)."
},
"layerName": {
"type": "string",
"description": "Layer name. Required for: AddLayer, RemoveLayer, AddState, RemoveState, SetDefaultState, AddTransition, RemoveTransition, AddAnyStateTransition, SetStateMotion, SetStateSpeed."
},
"stateName": {
"type": "string",
"description": "State name. Required for: AddState, RemoveState, SetDefaultState, SetStateMotion, SetStateSpeed."
},
"motionAssetPath": {
"type": "string",
"description": "Asset path to AnimationClip. Optional for: AddState. Required for: SetStateMotion."
},
"speed": {
"type": "number",
"description": "Speed multiplier. Required for: SetStateSpeed."
},
"sourceStateName": {
"type": "string",
"description": "Source state name. Required for: AddTransition, RemoveTransition."
},
"destinationStateName": {
"type": "string",
"description": "Destination state name. Required for: AddTransition, RemoveTransition, AddAnyStateTransition."
},
"hasExitTime": {
"type": "boolean",
"description": "Whether transition waits for exit time. Optional for: AddTransition, AddAnyStateTransition."
},
"exitTime": {
"type": "number",
"description": "Normalized exit time (0-1). Optional for: AddTransition, AddAnyStateTransition."
},
"duration": {
"type": "number",
"description": "Transition blend duration. Optional for: AddTransition, AddAnyStateTransition."
},
"hasFixedDuration": {
"type": "boolean",
"description": "Whether duration is in seconds (true) or normalized (false). Optional for: AddTransition, AddAnyStateTransition."
},
"conditions": {
"$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Animation.AnimatorConditionData-1",
"description": "Transition conditions. Optional for: AddTransition, AddAnyStateTransition."
}
},
"required": [
"type"
]
},
"com.IvanMurzak.Unity.MCP.Animation.AnimatorConditionData-1": {
"type": "array",
"items": {
"$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Animation.AnimatorConditionData"
}
},
"com.IvanMurzak.Unity.MCP.Animation.AnimatorConditionData": {
"type": "object",
"properties": {
"parameter": {
"type": "string",
"description": "Parameter name for the condition."
},
"mode": {
"type": "string",
"description": "Condition mode: If, IfNot, Greater, Less, Equals, NotEqual."
},
"threshold": {
"type": "number",
"description": "Threshold value for the condition."
}
}
},
"com.IvanMurzak.Unity.MCP.Animation.AnimatorModification-1": {
"type": "array",
"items": {
"$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Animation.AnimatorModification"
}
}
},
"required": [
"animatorRef",
"modifications"
]
}
Output
Output JSON Schema
{
"type": "object",
"properties": {
"result": {
"$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Animation.AnimatorTools-ModifyAnimatorResponse"
}
},
"$defs": {
"com.IvanMurzak.Unity.MCP.Animation.ModifyAnimatorInfo": {
"type": "object",
"properties": {
"path": {
"type": "string"
},
"instanceId": {
"type": "integer"
},
"name": {
"type": "string"
}
},
"required": [
"instanceId"
]
},
"System.Collections.Generic.List(System.String)": {
"type": "array",
"items": {
"type": "string"
}
},
"com.IvanMurzak.Unity.MCP.Animation.AnimatorTools-ModifyAnimatorResponse": {
"type": "object",
"properties": {
"modifiedAsset": {
"$ref": "#/$defs/com.IvanMurzak.Unity.MCP.Animation.ModifyAnimatorInfo"
},
"errors": {
"$ref": "#/$defs/System.Collections.Generic.List(System.String)"
}
}
}
},
"required": [
"result"
]
}
Du fichier au premier essai
Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.
Consulter la source et ses fichiers annexesCe téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.
1. Télécharger le fichier
Télécharger SKILL.mdDepuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/modify-unity-animatorcontroller-mte1lh3e/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.
Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.
mkdir -p '.skill-downloads/modify-unity-animatorcontroller-mte1lh3e' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/modify-unity-animatorcontroller-mte1lh3e/download' --output '.skill-downloads/modify-unity-animatorcontroller-mte1lh3e/SKILL.md.part' && mv '.skill-downloads/modify-unity-animatorcontroller-mte1lh3e/SKILL.md.part' '.skill-downloads/modify-unity-animatorcontroller-mte1lh3e/SKILL.md'2. Vérifier les prérequis
Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.
Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.
Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.
3. Charger la skill
Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.
Claude Code
test -f '.skill-downloads/modify-unity-animatorcontroller-mte1lh3e/SKILL.md' && test -s '.skill-downloads/modify-unity-animatorcontroller-mte1lh3e/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/animator-modify' && cp -R '.skill-downloads/modify-unity-animatorcontroller-mte1lh3e' '.claude/skills/animator-modify'Cursor
test -f '.skill-downloads/modify-unity-animatorcontroller-mte1lh3e/SKILL.md' && test -s '.skill-downloads/modify-unity-animatorcontroller-mte1lh3e/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/animator-modify' && cp -R '.skill-downloads/modify-unity-animatorcontroller-mte1lh3e' '.cursor/skills/animator-modify'OpenSkills
OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.
Installation officielle d’OpenSkillsopenskills install './.skill-downloads/modify-unity-animatorcontroller-mte1lh3e'openskills read 'modify-unity-animatorcontroller-mte1lh3e'La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.
Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.
openskills syncMode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.
4. Faire un premier essai
Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :
Lis .skill-downloads/modify-unity-animatorcontroller-mte1lh3e/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.
Bonnes pratiques React Hook Form
Developpement
Maîtrisez React Hook Form : évitez les anti-patterns, gérez les abonnements, et traitez correctement reset, dirty state et entrées contrôlées.
Migration Emotion vers Mantine
Developpement
Migrer les styled-components Emotion vers des composants Mantine avec style props et modules CSS. Pour convertir .styled.tsx ou supprimer les imports @emotion.
Détecteur de dérive de périmètre
Developpement
Analyse les diffs git par rapport à une intention pour détecter la dérive de périmètre, fichiers non liés et PR trop larges, puis suggère de garder, diviser ou justifier.