AGENT SKILL

diagnose

Diagnose unexpected behavior from Claude Code's built-in computer-use MCP server (desktop screen control). Use when, in 'computer use' or 'control my screen', a screenshot, click or keystroke did not do what was expected: 'screenshot is blurry', 'why is the screenshot low resolution', 'zoom in on the screen', 'screenshot capture failed', 'empty capture', 'clicks are landing in the wrong place', 'the screensaver killed the session', 'UIPI', 'app is not in the allowed applications', 'escape is not closing this menu'; or before driving a native desktop app unattended, to size up the hazards. Resolves a symptom to a cause instead of retrying: the screenshot pixel budget and zoom, the capture and input failure ladders, and per-OS input quirks. Not for: browser work (use Claude in Chrome), shell work (use Bash), or a service with its own MCP server.

License 许可
MIT
最近更新
2026-11-15
Stars
★ 30
Forks
7

01 前言 Front Matter

metadata
{ "summary": "Resolve computer-use capture, input, and screenshot symptoms to a cause", "workflow-stage": "anytime" }
description
Diagnose unexpected behavior from Claude Code's built-in computer-use MCP server (desktop screen control). Use when, in 'computer use' or 'control my screen', a screenshot, click or keystroke did not do what was expected: 'screenshot is blurry', 'why is the screenshot low resolution', 'zoom in on the screen', 'screenshot capture failed', 'empty capture', 'clicks are landing in the wrong place', 'the screensaver killed the session', 'UIPI', 'app is not in the allowed applications', 'escape is not closing this menu'; or before driving a native desktop app unattended, to size up the hazards. Resolves a symptom to a cause instead of retrying: the screenshot pixel budget and zoom, the capture and input failure ladders, and per-OS input quirks. Not for: browser work (use Claude in Chrome), shell work (use Bash), or a service with its own MCP server.
argument-hint
[screenshots|failures|quirks]
user-invocable
true
disable-model-invocation
false

02 资源文件 3

03 SKILL.md 正文

Purpose

Claude Code ships computer use as a built-in MCP server whose tool descriptions already cover the mechanics: actions, the allowlist gate, permission tiers, the ladder that prefers a dedicated MCP over Chrome over screen control. This skill does not restate any of that.

It carries only what the surface does not tell you and the model cannot derive: the shape of the screenshot budget, the failure modes that look like tool bugs but are environment state, and the per-OS input quirks that are invisible until they bite.

Arguments

Parse $ARGUMENTS. Each value names one reference spoke; there are exactly three.

Argument Loads
(none) Nothing. Answer from the symptom guide below, and load a spoke only if the symptom needs it.
screenshots reference/screenshots-and-zoom.md. Pixel budget, zoom, resolution guidance
failures reference/failure-diagnostics.md. The idle timer, capture and input ladders, probes
quirks The per-OS file for the machine you are on (see below)

Symptom guide (no file load needed)

Situation Answer
Screenshot looks low-resolution Expected. Fixed pixel budget, no setting. Use zoom. → screenshots-and-zoom.md
Small text unreadable after downscale zoom the region. It re-captures at full resolution. Do not lower display resolution.
empty capture (0x0) Environment, not a tool bug. Walk the ladder → failure-diagnostics.md
Input returns a UIPI error An elevated or secure-desktop process holds the foreground. Not recoverable by retrying.
"not in the allowed applications and is currently in front" A background app stole focus. Retry with screenshot as the batch's first action.
Session died partway through a long task Idle timeout. Claude's own input does not reset it → failure-diagnostics.md
A synthesized key does nothing in a menu Shell-owned surfaces differ from in-app menus → your OS's quirks file

Per-OS quirks

Load only the file for the machine you are on:

Platform File
Windows reference/windows-quirks.md
macOS no quirks file ships. See the verification gap below

Verification gap. Every empirical claim in this plugin was measured on Windows 11 with the Claude Desktop surface. macOS is supported by the platform and by this plugin's platform-neutral content, but no macOS quirks file ships because none has been verified. A macOS user gets the platform-neutral material and no fabricated specifics.

Surfaces differ. Know which one you are on

Computer use is not one thing, and guidance written for one surface is wrong on the other. Name the surface (Claude Code CLI or Claude Desktop) before applying any surface-specific advice. Which platforms each surface runs on, how each one enables computer use, and which settings each one offers are the upstream page's to state; read them there rather than from this skill.

Gotchas

  • Read the reference file before advising anyone on resolution. screenshots-and-zoom.md carries the advice; zoom is the lever, not the display.
  • zoom re-captures; it does not crop. It therefore fails when capture is failing, and it recovers genuine detail when capture is healthy. Both follow from the same fact.
  • A tool error naming an unexpected app is the safety gate working, not a defect. Nothing was typed into the wrong window. Re-screenshot and retry rather than escalating.
  • On a multi-monitor machine, a launched app can be missing for two opposite reasons. It opened on a display you are not capturing, or you are pinned to the display it did not open on. Chasing the first creates the second; reset to auto before sweeping.
  • Elevated processes cannot be driven at all. UIPI blocks synthesized input from a lower-integrity process regardless of any grant. Ask the operator to handle those windows.

04 同仓库更多 Skills

melodic-software
melodic-software/claude-code-plugins

track

Backlog reads through the bound tracker: search open and closed items, view one item with its comments and state history. Use when another skill searches or reads tracker items.

★ 30
melodic-software
melodic-software/claude-code-plugins

reviewer-media

Reviewer media for one pull request: decides whether it needs a narrated walkthrough, builds the storyboard from /review:explain-change's digest, has /explainer-video:produce render it and hands the manifest to /source-control:pull-request media. Use when asked for 'reviewer media', 'a walkthrough video for this PR', 'a produced video of this change', or when pull-request ready or monitor hands a PR over.

★ 30
melodic-software
melodic-software/claude-code-plugins

route

Model and effort per agent role (orchestrator, worker, verifier, retrieval) for a multi-agent run, resolved through the bundled defaults and the user, team and personal override config layers into fenced JSON with single-agent and fan-out variants and the layer behind each value. Use when asked 'which model for the subagents', 'route the roles' or 'model routing', or before a skill passes a role's model on a spawn.

★ 30
melodic-software
melodic-software/claude-code-plugins

route

Model and effort per agent role (orchestrator, worker, verifier, retrieval) for a multi-agent run, resolved through the bundled defaults and the user, team and personal override config layers into fenced JSON with single-agent and fan-out variants and the layer behind each value. Use when asked 'which model for the subagents', 'route the roles' or 'model routing', or before a skill passes a role's model on a spawn.

★ 30
melodic-software
melodic-software/claude-code-plugins

principles

Module-design vocabulary for architecture findings, and the checks built on it. Use when: 'what is a deep module', 'what is a seam', 'deep vs shallow module', 'what is the deletion test', 'leverage and locality', 'module design vocabulary', 'which word do we use for X in architecture findings'. Scanning a codebase for friction is /architecture:improve.

★ 30
melodic-software
melodic-software/claude-code-plugins

write

Structured five-field bug report (title, steps to reproduce, expected vs actual, justified severity, suggested fix location) from an informal description, read-only. Use when the user names a defect they observed, or asks for one written up ('report a bug', 'file a bug', 'write this up as a bug').

★ 30