Setup

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

Setup is an AI agent skill from the GitHub repository melodic-software/claude-code-plugins. Verify the computer-use plugin's prerequisites and report the environment settings that end a screen-control session mid-run. Use when: 'set up computer use', 'is computer use working', 'why did my computer use session die', 'check computer use', 'computer use preflight', or before a long unattended

How to use this skill

Skill file

Purpose

Computer use has no consumer-project configuration and no userConfig. Everything it depends on

is either an external prerequisite (the MCP server, the plan, OS permissions) or a system

setting this contract forbids setup to mutate (power, screensaver, lock policy).

That makes this a check-only setup under the plugin contract's carve-out: there is nothing

an apply could conformingly write. check probes, reports, and hands every

remediation to the operator with the exact value it measured.

Non-interactive: never prompt. Run the probes, print the table, stop.

`check` (read-only)

Read CODE0

first. It owns the probe commands and the reasoning behind them. Do not restate them here;

run them and report. Emit a PASS / FAIL / INFO table with one remediation line per non-PASS.

1. Surface and platform

Determine which surface is in play, because the answer changes what is even possible:

pointer below, then match the session's operating system and enabling path against it. When the

operating system leaves one surface possible, that is the surface; otherwise check the enabling

path the pointer names for each surface.

Computer use: Differences from the Desktop app

live.

Report the surface as INFO. It is context for everything below, not a pass/fail.

2. Tool availability

Confirm the computer-use tools are actually reachable in this session. Call

list_granted_applications: it is this check's probe. For what it returns, read its

description in the computer-use server's tool listing (/mcp); no docs page names the

computer-use tools.

confirm the session meets each eligibility condition the pointer lists, naming each unmet one

in the report.

Computer use: Troubleshooting

live for the CLI's eligibility checks, and

Desktop: Let Claude use your computer

for the Desktop surface.

Do not call request_access during a check: a check stays read-only, and an access request

is not.

Computer use: Approve apps per session.

3. Session-killing timeouts (the one that actually bites)

This is why the skill exists. In our measurement, Claude's synthesized input did not hold off

the OS idle timeout, so a session dies on schedule regardless of how busy Claude is (the

measurement:

failure-diagnostics.md,

measured 2026-08-10 on Windows 11; recheck when a release changes how synthesized input

interacts with the OS idle timer). Probe and report the measured numbers:

Probe runtime state before configuration. A registry or defaults read says a screensaver is

configured, not that one is on screen now. Report both.

Platform coverage is uneven, and the check must say so rather than skip. The diagnostics

reference ships verified probe commands for Windows only. On macOS, no verified probe set ships:

report this step as INFO-unverified, name the three settings the operator must read from System

Settings themselves (screensaver idle delay, display sleep, require-password-on-wake), and state

that the hazard is unchanged: the idle-timer behavior was measured on Windows, no platform has

been shown to reset the idle timer on synthesized input, so treat it as live on macOS as well.

Never silently omit the step, and never substitute an unverified command as though it were

checked.

Grade against the work in front of you rather than an absolute: any timeout **shorter than the

expected unattended run** is a FAIL, and one comfortably longer is a PASS. A 5-minute

screensaver is fine for a two-minute task and fatal for a thirty-minute one.

Remediation is always advisory, phrased as the operator's decision: *"Screensaver fires after 5

minutes and this run will exceed that. Raise or disable it for the duration."* Never change a

power, screensaver, or lock setting; state the setting and the value and let the operator act.

Note the three settings are independent. "Display never sleeps" says nothing about the

screensaver, and the screensaver is the more common culprit.

4. Multi-monitor state

Report the monitor count and which display screenshots currently target. More than one monitor

is INFO, not a failure, but it is the precondition for the "app opened where I wasn't looking"

class of confusion, and knowing it up front is cheaper than diagnosing it later.

5. Foreground stability

If any known focus-stealing utility is running (peripheral suites, overlays, launchers), report

it as INFO with the retry pattern from the diagnostics reference. This is a nuisance, not a

blocker: in our measurement the gate refused the action rather than sending it to the wrong app

(failure-diagnostics.md).

Computer use: Approve apps per session.

Reporting

End with a one-line verdict: ready, ready with caveats (INFO or advisory FAILs the

operator may accept), or blocked (tools unreachable). When blocked, name the single next

action rather than listing everything at once.

Gotchas

contract (step 2 carries the pointer). list_granted_applications is the check's probe.

display sleep, and lock are three independent settings; the screensaver has its own timeout

and is the more common cause of a dead session. Probe all three or the check is misleading.

with a permissions message. Report that the probe was unavailable rather than reporting that

nothing holds a power request.

against the expected unattended duration or the check produces noise on short tasks.

system settings. Report the measured value and the recommendation, and let the operator act.

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.