Skip to content
Back to skills

Unity Diagnostics Performance

ASecurity

Use when diagnosing compile or domain state, console errors, runtime objects, scene health, frame time, memory, rendering, or profiling regressions.

  • 34 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 16, 2026
ai-agentsgoperformance

Works with

  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 16, 2026

npx -y skills add german-krasnikov/unity-biome-mcp --skill unity-diagnostics-performance --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Unity Diagnostics Performance?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Unity Diagnostics Performance
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/german-krasnikov-unity-diagnostics-performance/badge)](https://www.skillsdirectory.com/skills/german-krasnikov-unity-diagnostics-performance)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: unity-diagnostics-performance
description: Use when diagnosing compile or domain state, console errors, runtime objects, scene health, frame time, memory, rendering, or profiling regressions.
---

# Unity Diagnostics And Performance

If it is not already loaded, read
`.claude/skills/unity-mcp-operations/SKILL.md` once. Diagnose from the cheapest
deterministic signal to the most expensive probe. Enable `VERIFY`, `RUNTIME`,
or `MEDIA` only when needed.

## Diagnostic Ladder

1. `mcp_status` for connection and mode.
2. `await_compile(timeout=0)` for compile state and corroborated errors.
3. `console_mark`, reproduce once, then `get_console_since(mark_id=...)`.
4. Targeted hierarchy or component inspection.
5. `scan_scene`, `scene_health`, or domain-specific diagnostics.
6. `verify_after_change(...)` when a completed change needs compile checks plus
   explicitly requested console, NUnit, or playtest gates.
7. Runtime snapshot, watch, frame statistics, or profile in Play Mode.
8. Screenshot only for a visual symptom.

```text
console_mark()
# reproduce once
get_console_since(mark_id="<exact returned token>")
```

```text
runtime_snapshot(type="FeatureController", name="Subject", compress=True)
watch(
  action="add",
  path="/Subject",
  component="FeatureController",
  field="state",
  condition="== Error",
  trigger_action="log"
)
get_watches()
watch(action="clear")
```

## Performance

- Establish the scenario and baseline before profiling.
- Use `get_frame_stats` for a compact snapshot, then `profile` for a bounded
  capture when the snapshot indicates a problem.
- Compare like-for-like Editor state, camera, scene, and time scale.
- Separate CPU, allocation, rendering, memory, and loading claims.
- Report measured values and capture conditions, not generic budgets.

## Specialized Probes

| Symptom | Prefer |
|---|---|
| Animator state or transition | `debug_animator` |
| Rigidbody or collider behavior | `debug_physics` |
| Navigation or pathfinding | `navmesh_query` |
| Rendering or overdraw | `render_analyze` |
| Many runtime fields | `query_state` or `runtime_snapshot` |
| One changing field | a bounded `watch`, then clear it |
| Serialized field rename safety | `serialized_field_rename_audit` |
| Scene integrity check | `scene_health(focus="...")` with options: `all`, `hierarchy`, `naming`, `duplicates`, `origins`, `missing`, `empty`, or `disabled` |

Resolve schemas for gated probes in one request and enable only their category.

`verify_after_change` waits for an already-started compilation and reads compile
errors; it does not refresh assets or start compilation. It checks the console
only when `mark_id` is provided, runs NUnit only when
`run_tests_mode` is provided, and runs playtests only when `playtests` is
provided. It does not validate object references, scan the scene, or capture a
screenshot; add those probes explicitly when the claim requires them.

## Rules

- Do not retry an identical failing call without new evidence.
- Pass the exact console token through the `mark_id` argument; there is no
  `mark` argument.
- Runtime snapshots require `type`. Watches require `action`; `field` is
  required for `action="add"` but not for `action="clear"`.
- Stop watches and bounded profiling sessions after use.
- Keep exact stack traces and compiler diagnostics.
- A visual symptom can guide diagnosis but cannot replace state evidence.

Files in this skill

  • SKILL.md3.3 KB
  • SKILL.md.meta155 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.