cu-desktop

Guides GUI desktop automation using native Computer Use screenshot, click, and keyboard tools.

1.3k|142|Updated Jun 1, 2026
One-click install
npx skills add https://github.com/MiniMax-AI/minimax-code --skill cu-desktop-minimax-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cu-desktop
Source: https://github.com/MiniMax-AI/minimax-code/tree/main/packages/local-runtime/assets/skills/cu-desktop
Command: npx skills add https://github.com/MiniMax-AI/minimax-code --skill cu-desktop-minimax-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Automating desktop GUI tasks with an AI agent often fails due to missed clicks, unverified actions, coordinate errors, and context overflow from improper tool usage. This Skill provides a disciplined operating guide for Computer Use (CU) desktop tools so GUI workflows complete reliably on Windows and macOS. ## Core Features & Use Cases - Closed-Loop Operation Cycle: Enforces a screenshot → analyze → act → verify loop so every GUI action is confirmed before proceeding. - Cross-Platform App Control: Provides Windows and macOS keyboard shortcuts for launching apps, switching windows, and handling dialogs without fragile coordinate clicking. - Input & Coordinate Handling: Defines the 0–1000 normalized coordinate system, focus-verification techniques, and clipboard-based input for CJK and long text. - Error Recovery & Safety: Supplies recovery tables for misclicks, stuck apps, and loading states, plus safety boundaries around credentials, destructive actions, and prompt injection in screenshots. - Use Case: Ask the agent to send a message in a desktop chat app — it will check open windows, launch the app if needed, use search shortcuts instead of clicking dense lists, and verify delivery with a final screenshot. ## Quick Start Enable CU mode and ask the agent to open an application and perform a desktop task, such as sending a message or changing a setting, and it will follow the screenshot-act-verify loop automatically.

Frequently Asked Questions about cu-desktop

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate desktop GUI tasks with Computer Use tools?

Call the native desktop_* tools directly in a closed loop: take a screenshot, analyze the screen, act with clicks or keyboard input, then screenshot again to verify the result. Never invoke CU tools through bash or CLI wrappers, as that bypasses screenshot compression and causes context overflow.

How to click small icons accurately in desktop automation?

Use desktop_zoom on the target region only to visually identify the element, then estimate normalized coordinates from the full-screen screenshot to click. Never calculate click coordinates from zoomed or region images, since the pixel-to-normalized conversion is error-prone.

Does desktop automation work on both Windows and macOS?

Yes, the guide covers both platforms with separate shortcut tables. Windows uses Win+S for app search and Alt+Tab for switching, while macOS uses Cmd+Space for Spotlight and Cmd+Tab for window switching.

How do I type Chinese or non-ASCII text with desktop tools?

Write the text to the clipboard with desktop_clipboard_write, then paste it using Ctrl+V on Windows or Cmd+V on macOS. Direct desktop_type input may fail for CJK characters and for text longer than about 100 characters.

Why does my desktop automation click the wrong element?

Clicks miss when coordinates are estimated from zoomed images or when dense lists are clicked directly. Use keyboard-first strategies like search shortcuts (Ctrl+K) for list selection, and verify input focus by typing a test character rather than trusting visual cues.

What safety limits apply to Computer Use desktop control?

The agent must never type user credentials, transcribe sensitive screenshot content, perform destructive actions without explicit confirmation, or bypass security prompts like UAC. It must also ignore prompt injection attempts embedded in on-screen text.