用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/joshka0/foxctl --skill foxctl-unity命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | foxctl Unity |
| description | Manage Unity projects - build/test/export, package dependencies, scene build settings, and Input System action maps. |
Four skills for comprehensive Unity project control without requiring a running editor.
| Skill | Purpose |
|---|---|
build/unity | Build, test, export, and clean Unity projects via CLI |
unity/packages | Manage UPM dependencies in Packages/manifest.json |
unity/scenes | Manage scene build settings in EditorBuildSettings.asset |
unity/input | Manage Input System action maps in .inputactions files |
Assets/ folderbuild/unity: Unity Editor installed (auto-detected via Unity Hub on macOS)Build, test, and export Unity projects using the Unity Editor CLI (-batchmode).
foxctl run build/unity --input '{"action": "list_targets"}'
foxctl run build/unity --input '{
"action": "build",
"build_target": "StandaloneOSX"
}'
foxctl run build/unity --input '{
"action": "test",
"test_platform": "EditMode"
}'
foxctl run build/unity --input '{
"action": "export",
"build_target": "StandaloneWindows64",
"output_path": "builds/game.exe"
}'
foxctl run build/unity --input '{"action": "clean"}'
Manage UPM dependencies in Packages/manifest.json.
foxctl run unity/packages --input '{"operation": "list"}'
foxctl run unity/packages --input '{
"operation": "add",
"package_name": "com.unity.inputsystem",
"version": "1.7.0"
}'
foxctl run unity/packages --input '{
"operation": "remove",
"package_name": "com.unity.inputsystem"
}'
foxctl run unity/packages --input '{
"operation": "get",
"package_name": "com.unity.inputsystem"
}'
Manage scene build settings in ProjectSettings/EditorBuildSettings.asset.
foxctl run unity/scenes --input '{"operation": "list"}'
foxctl run unity/scenes --input '{
"operation": "add",
"scene_path": "Assets/Scenes/MainMenu.unity"
}'
foxctl run unity/scenes --input '{
"operation": "disable",
"scene_path": "Assets/Scenes/Debug.unity"
}'
foxctl run unity/scenes --input '{
"operation": "reorder",
"scene_path": "Assets/Scenes/MainMenu.unity",
"index": 0
}'
foxctl run unity/scenes --input '{"operation": "find"}'
Manage Unity Input System .inputactions files.
foxctl run unity/input --input '{
"operation": "list_maps",
"input_file": "Assets/Input/PlayerControls.inputactions"
}'
foxctl run unity/input --input '{
"operation": "list_actions",
"input_file": "Assets/Input/PlayerControls.inputactions",
"map_name": "Player"
}'
foxctl run unity/input --input '{
"operation": "add_map",
"input_file": "Assets/Input/PlayerControls.inputactions",
"map_name": "UI"
}'
foxctl run unity/input --input '{
"operation": "add_action",
"input_file": "Assets/Input/PlayerControls.inputactions",
"map_name": "Player",
"action_name": "Move",
"action_type": "Value"
}'
Action types: Button, Value, PassThrough
foxctl run unity/input --input '{
"operation": "add_binding",
"input_file": "Assets/Input/PlayerControls.inputactions",
"map_name": "Player",
"action_name": "Move",
"binding_path": "<Keyboard>/w"
}'
foxctl run unity/input --input '{
"operation": "remove_map",
"input_file": "Assets/Input/PlayerControls.inputactions",
"map_name": "UI"
}'
Removes the action and all its bindings:
foxctl run unity/input --input '{
"operation": "remove_action",
"input_file": "Assets/Input/PlayerControls.inputactions",
"map_name": "Player",
"action_name": "Move"
}'
unity/packages add)unity/scenes find, unity/scenes add)unity/input add_map, add_action, add_binding)build/unity build)unity/packages list)unity/scenes list)build/unity test)build/unity export)unity/input add_map — Player, UI, Vehicle)unity/input add_action — Move, Look, Fire)unity/input add_binding — keyboard, gamepad)