hz-perfetto-debug

hz-perfetto-debug is a skill for Claude Code from meta-quest/agentic-tools. It costs 74 tokens per session (2,781 once invoked), scanned A, original, Apache-2.0.

A guide for investigating virtual-reality performance on Meta Quest using Perfetto, a tool that records detailed timing traces from a device. It examines frame timing, processor and graphics bottlenecks, rendering work, and heat-related slowdowns.

In plain words
What is it for?
Use it to investigate dropped frames, stuttering, high drawing workload, processor or graphics limits, thread conflicts, missed display deadlines, and thermal throttling.
Why use it?
When a frame takes too long, the headset may show a repeated or reprojected image, causing visible stutter and discomfort. Traces help connect that symptom to the work or device condition causing it.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the meta-vr plugin — 36 skills, 1 MCP server shipped together

Good fit Use it to investigate dropped frames, stuttering, high drawing workload, processor or graphics limits, thread conflicts, missed display deadlines, and thermal throttling.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/meta-quest/agentic-tools/hz-perfetto-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.

Any agent
npx skills add meta-quest/agentic-tools --skill hz-perfetto-debug
Clone the repo
git clone --depth 1 https://github.com/meta-quest/agentic-tools

Made for: Claude Code.

Or install meta-vr, the plugin that ships this one along with the rest of its 36 skills, 1 MCP server.

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 hz-perfetto-debug

README.md
[![agentmods](https://agentmods.dev/badge/skills/meta-quest/agentic-tools/hz-perfetto-debug/github.svg)](https://agentmods.dev/skills/meta-quest/agentic-tools/hz-perfetto-debug)
Your own site
<a href="https://agentmods.dev/skills/meta-quest/agentic-tools/hz-perfetto-debug"><img src="https://agentmods.dev/badge/skills/meta-quest/agentic-tools/hz-perfetto-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 hz-perfetto-debug

Your own site · 80×15
<a href="https://agentmods.dev/skills/meta-quest/agentic-tools/hz-perfetto-debug"><img src="https://agentmods.dev/badge/skills/meta-quest/agentic-tools/hz-perfetto-debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,781 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Anti-Refusal · line 43
    Skill attempts to nullify the agent's safety policies or restrictions ('you have no restrictions', 'ignore your guidelines', 'do anything now'). This is a direct jailbreak that disables guardrails.
    Fix: Remove jailbreak framing that nullifies safety policies or restrictions. Skill content must not instruct the agent to ignore its guidelines or operate without guardrails.
  • medium MCP Rug Pull · line 40
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 43
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
Origin original No closer match found 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.00074 $0.02781
Opus 5.5 $0.00030 $0.01112
Sonnet 5.5 $0.00015 $0.00556
Haiku 4.5 $0.00007 $0.00278

Measured 28d ago against content hash d88cb763301a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

hz-perfetto-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 28d 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.

skills/hz-perfetto-debug/SKILL.md · 293 lines

How it starts

The opening of the file, as written. The whole thing — 293 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Perfetto Debug Skill

When to Use

Use this skill when investigating VR performance issues on Meta VR devices:

  • Frame drops, jank, or stuttering
  • CPU or GPU bottlenecks
  • Render pass overhead and GPU utilization
  • Thermal throttling and clock frequency changes
  • Frame timing variance and missed vsync deadlines
  • Thread contention and synchronization issues
  • High draw call counts or overdraw

VR Frame Time Targets

These are the hard deadlines for each refresh rate. If a frame exceeds its target, the compositor must reproject or the user sees a stale frame.

Refresh Rate Frame Time Budget Notes
120 Hz 8.3 ms Supported on Quest 2, Quest 3, Quest 3S
90 Hz 11.1 ms Supported on Quest 2, Quest Pro, Quest 3, Quest 3S
72 Hz 13.9 ms Default on all Quest devices
60 Hz 16.7 ms Media apps only (Quest 2); interactive apps must use 72 Hz+

Missing a frame deadline by even 1 ms causes a stale frame (reprojection). Stale frames above 10% of total frames indicate a serious performance problem.

metavr Setup

Perfetto tracing is powered by the metavr CLI — install the standalone binary on your PATH (see the metavr-cli skill), or invoke via npx with no install:

metavr --version

Examples below use the bare metavr command; if you use the npm distribution, prefix with npx -y. Connect your Meta VR device via USB with developer mode enabled before capturing traces.

Quick Start Workflow

1. Capture a Trace

# Capture a 5-second trace from the currently running VR app
metavr perf capture

# Specify duration and target app
metavr perf capture --duration 10000 --app com.example.myapp

# Enable GPU render stage tracing for detailed pass analysis
metavr perf capture --gpu-render-stage

# Enable XR runtime metrics
metavr perf capture --xr-runtime

# Custom output name
metavr perf capture -o my-session-name

The capture auto-detects the foreground VR app if --app is not specified. CPU scheduling and GPU metrics tracing are enabled by default. The trace is pulled to your local machine automatically.

Read the full file on GitHub · 293 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 28d ago Changed · +24 tokens per session d88cb763301a
  2. 1mo ago First seen · 293 lines · 50 tokens per session scan A 377766655f77

Subscribe to this mod's changes

hz-perfetto-debug is a skill published in the GitHub repository meta-quest/agentic-tools (228 stars, last pushed 28d ago), licensed Apache-2.0. It adds 74 tokens to every session and 2,781 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

gamedev-physics

Use when working with a game engine's physics — rigid bodies, colliders, collision layers and masks, character controllers, joints, forces versus impulses, raycasts and shapecasts, or when a simulation is unstable (tunnelling, jitter, missed overlaps). Covers the Godot, Unity and Unreal equivalents. NOT rendering or…

ericrisco/rsc-harness · 102 tokens

aibridge-code-index

Optional read-only AIBridge Code Index lightweight lookup for Unity C# declaration names. Use only when Root Rule declares Code Index enabled and this Skill is installed. Map declaration names to files or positions. Do not use for references, callers, implementations, derived types, diagnostics, comments, strings, or…

liyingsong99/AIBridge · 70 tokens

swallowtail

Use the complete Godot development loop from the swallowtail CLI: discover the live engine API, build and edit in the open editor, run and play the game, observe state, debug failures, fix them in place, and verify the result. Use when the task involves creating or modifying a Godot project, testing game behavior…

regiellis/godot-mcp-go · 0 tokens

janitor-fix

Automatically fix skill problems (safe preview first). Also use with --prune to find and remove broken symlinks, empty directories, and orphaned skills. Trigger with '/janitor-fix'.

khendzel/skills-janitor · 45 tokens

repro-first

Bug-fix mode that reproduces a bug in a failing test before changing any code. Entered with /repro-first.

edonadei/caliper · 30 tokens

godot

Godot 4 work in a project with project.godot, .gd or .tscn files. Use to verify a change in the running game, fix a headless GDScript test run that hangs or exits 0, hand-edit a .tscn, commit .uid files, or catch an invented API.

krzysztofsurdy/code-virtuoso · 69 tokens