Diagnose

From melodic-software/claude-code-plugins · View interactive version

Diagnose is an AI agent skill from the GitHub repository melodic-software/claude-code-plugins. 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 th

How to use this skill

Skill file

Purpose

The mechanics of computer use (actions, the allowlist gate, permission tiers, which tool Claude

prefers over screen control) belong to Claude Code's own tool descriptions and docs:

enable computer use,

approve apps per session

and when computer use applies.

This skill does not restate any of that.

It carries only what those tool descriptions and docs do 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 → failure-diagnostics.md |

| 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.

Computer use: Differences from the Desktop app

live.

Gotchas

screenshots-and-zoom.md carries the advice; zoom is the

lever, not the display.

Computer use: Screenshots are downscaled automatically

live.

recovers genuine detail when capture is healthy. Both follow from the same fact.

typed into the wrong window. Re-screenshot and retry rather than escalating.

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.

lower-integrity process regardless of any grant. Ask the operator to handle those windows.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.