Claude code computer use

From jleechanorg/claude-commands · View interactive version

Claude code computer use is an AI agent skill from the GitHub repository jleechanorg/claude-commands. Use Claude Code to run computer-use style UI automation loops with screenshot → decide → act cycles, safety guardrails, and step-bounded execution. Trigger when the user asks to make agents do Claude computer-use behavior, desktop/browser UI control, click/type/scroll automation, or iterative visual

How to use this skill

Skill file

Claude Code Computer Use

Run Claude Code as a bounded UI-control agent that observes screenshots, takes one action, re-checks state, and repeats until success or stop conditions.

For browser tasks, follow the browser-control contract for context ownership and authentication. Keep browser automation isolated and headless by default; never attach to personal/default Chrome or use its profile or cookies. Use visible browser automation only when the current task explicitly requests it and a separate task-owned context is verified.

Required loop

  1. Restate the user goal in one sentence.
  2. Define a max step budget (default 20).
  3. For each step, do exactly one UI action.
  4. After each action, capture a fresh screenshot.
  5. Verify expected change before continuing.
  6. Stop on success, ambiguity, or budget exhaustion.

Tool contract to enforce

Require these tool primitives (or closest equivalents):

Never take multiple UI actions in a single reasoning step.

Safety policy

Claude Code invocation pattern

Use non-interactive Claude Code mode for deterministic logs:

claude --print --permission-mode bypassPermissions "<task prompt>"

Task prompt template:

You are controlling a UI via tools.
Goal: <goal>
Allowed scope: <apps/sites>
Max steps: <N>
Rules:
- One action per step.
- After each action, screenshot and verify.
- If uncertain for 2 steps, stop and ask.
- Ask before destructive actions.
Return a step log and final status: success | blocked | needs-human.

Completion criteria

Declare completion only when:

Always return concise evidence:

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.