uw-cmd-debug

uw-cmd-debug is a command for Claude Code from IdoCohen560/claude-unity-game-studio. It costs 0 tokens per session (486 once invoked), scanned A, a copy of uw-cmd-debug, MIT.

A four-phase workflow for finding and fixing bugs in Unity games: gather evidence, isolate the cause, test a hypothesis, then fix and verify it. Unity is a game-development engine.

In plain words
What is it for?
Use it to investigate crashes, incorrect gameplay behavior, null references, timing issues, and other Unity bugs.
Why use it?
It replaces guesswork with a repeatable process based on error logs, reproduction steps, recent changes, and targeted tests. It also checks common Unity lifecycle, physics, state, and threading problems.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths.

Good fit Use it to investigate crashes, incorrect gameplay behavior, null references, timing issues, and other Unity bugs.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/idocohen560/claude-unity-game-studio/uw-cmd-debug
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/IdoCohen560/claude-unity-game-studio

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for uw-cmd-debug

README.md
[![agentmods](https://agentmods.dev/badge/commands/idocohen560/claude-unity-game-studio/uw-cmd-debug/github.svg)](https://agentmods.dev/commands/idocohen560/claude-unity-game-studio/uw-cmd-debug)
Your own site
<a href="https://agentmods.dev/commands/idocohen560/claude-unity-game-studio/uw-cmd-debug"><img src="https://agentmods.dev/badge/commands/idocohen560/claude-unity-game-studio/uw-cmd-debug/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for uw-cmd-debug

Your own site · 80×15
<a href="https://agentmods.dev/commands/idocohen560/claude-unity-game-studio/uw-cmd-debug"><img src="https://agentmods.dev/badge/commands/idocohen560/claude-unity-game-studio/uw-cmd-debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 486 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00486
Opus 5.5 $0.00000 $0.00194
Sonnet 5.5 $0.00000 $0.00097
Haiku 4.5 $0.00000 $0.00049

Measured 2mo ago against content hash 78689d42ffb6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

uw-cmd-debug scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to uw-cmd-debug — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

unity-ai-workflow/.claude/commands/uw-cmd-debug.md · 52 lines

What it actually says

/uw-cmd-debug — Debugging Workflow

Apply the 4-phase debugging framework to identify and fix bugs.

Skills

Load uw-unity-debugging from .claude/skills/uw-unity-debugging/SKILL.md.

Phase 1: Gather Evidence

  1. Read the error — Via Unity MCP read_console or user-provided logs.
  2. Reproduce — What are the exact steps to trigger the bug?
  3. Scope — Single script? System interaction? Timing?
  4. Recent changes — Check git log -5 for what changed.

Phase 2: Isolate

  1. Narrow the search — Comment out systems to find the culprit.
  2. Add targeted logs — Use GameDebug.Log at decision points.
  3. Common causes checklist:
    • Execution order (Awake vs Start vs OnEnable)
    • Null reference (destroyed object, unassigned field)
    • Threading (Unity API on background thread)
    • State not reset (OnDisable/OnDestroy cleanup)
    • Physics timing (Update vs FixedUpdate)

Phase 3: Hypothesize & Test

  1. State the hypothesis: "I believe [X] happens because [Y]."
  2. Write a test that proves or disproves the hypothesis.
  3. Run the test. If it fails -> back to Phase 2 with new info.

Phase 4: Fix & Verify

  1. Implement the minimal fix.
  2. Run the specific test from Phase 3.
  3. Run the full test suite for regressions.
  4. Clean up temporary debug logs.
  5. Commit with: fix({scope}): {root cause description}

Common Unity Pitfalls

Symptom Common Cause
NullRef in Awake Execution order — use [DefaultExecutionOrder]
MissingComponent Destroyed object still referenced
Works in Editor, fails in build Editor-only API usage
Intermittent failure Race condition or timing
Physics jitter Wrong update loop

Output

  • Root cause identified and documented
  • Fix implemented with test coverage
  • Regression suite passing

$ARGUMENTS

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 52 lines · 0 tokens per session scan A 78689d42ffb6

Subscribe to this mod's changes

uw-cmd-debug is a command published in the GitHub repository IdoCohen560/claude-unity-game-studio (30 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 486 tokens. A static security scan graded it A with 0 findings. It is 100% identical to uw-cmd-debug, differing in 0 lines, and is treated as a copy.

Related

uw-cmd-debug compared with commands from other repositories

uw-cmd-debug next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
uw-cmd-debugIdoCohen560/claude-unity-game-studioCommand304mo agoMITA0Claude Code
qec-validate-mcpGuillaumeLessard/qector-claude-pluginCommand1yesterdaynoneA44Claude Code
fix-issueKhaiTrang1995/claude-code-structureCommand27mo agoMITA0Claude Code
checklistgithub/spec-kitCommand153k3d agoMITA13Claude Code
clarifygithub/spec-kitCommand153k3d agoMITA27Claude Code
analyzegithub/spec-kitCommand153k3d agoMITA26Claude Code
specifygithub/spec-kitCommand153k3d agoMITA13Claude Code