---
/plugin marketplace add akiojin/skills/plugin install akiojin-unity-development-unity-development@akiojin/skillsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
references/troubleshooting.mdreferences/unitask.mdreferences/vcontainer.mdUnity C#コードの効率的な探索・編集・テスト実行を支援するスキル。
Read/Edit/Writeは使用禁止。必ずunity-mcp-serverツールを使用する。
# コード探索
mcp__unity-mcp-server__script_symbols_get # ファイル構造把握
mcp__unity-mcp-server__script_symbol_find # シンボル検索
mcp__unity-mcp-server__script_read # 部分読み取り
mcp__unity-mcp-server__script_refs_find # 参照検索
# コード編集
mcp__unity-mcp-server__script_edit_structured # シンボル単位編集
mcp__unity-mcp-server__script_edit_snippet # 部分編集
mcp__unity-mcp-server__script_create_class # クラス作成
# 変更後は必ず実行
mcp__unity-mcp-server__system_refresh_assets # コンパイル実行
以下のコードは絶対に生成しない:
// 禁止パターン
if (component != null) { ... } // GetComponent後のnullチェック
if (gameObject != null) { ... } // Find後のnullチェック
if (service != null) { ... } // [Inject]後のnullチェック
正しいコード:
// 直接使用(存在前提)
GetComponent<Rigidbody>().velocity = Vector3.zero;
GameService.Initialize();
target.position = Vector3.zero;
// 禁止
void Update() {
GetComponent<Rigidbody>().velocity = input; // 毎フレームGC発生
}
// 正しい
private Rigidbody _rb;
void Awake() { _rb = GetComponent<Rigidbody>(); }
void Update() { _rb.velocity = input; }
script_symbols_get でファイル構造を把握script_refs_find で参照を確認script_edit_structured または script_edit_snippetsystem_refresh_assets で変更を反映compilation_get_state でエラーチェック# EditModeテスト
mcp__unity-mcp-server__test_run(testMode="EditMode")
# PlayModeテスト(接続不安定に注意)
mcp__unity-mcp-server__test_run(testMode="PlayMode")
# ドメインリロードで3秒以上待機、最大10回リトライ
# 階層取得
mcp__unity-mcp-server__gameobject_get_hierarchy
# コンポーネント操作
mcp__unity-mcp-server__component_add
mcp__unity-mcp-server__component_modify
mcp__unity-mcp-server__component_list
Assets/@Xyla/Scripts/Assets/@Xyla/Scripts/Tests/namespace Xyla(通常)、namespace Xyla.Editor(エディター)コルーチンの代わりにUniTaskを使用。async voidは禁止、UniTaskVoidを使用。
using Cysharp.Threading.Tasks;
// destroyCancellationTokenで安全なキャンセル
async UniTaskVoid Start()
{
await DoWorkAsync(destroyCancellationToken);
}
詳細は references/unitask.md 参照。
詳細は references/vcontainer.md 参照。
詳細は references/troubleshooting.md 参照。
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.