Use computer

From X-School-Academy/skill-pilot · View interactive version

Use computer is an AI agent skill from the GitHub repository X-School-Academy/skill-pilot. Control the computer by taking screenshots, moving the mouse, clicking, and typing. Use this skill when you need to interact with GUI applications or perform actions that require visual feedback.

How to use this skill

Skill file

Use Computer

This skill enables an agent to interact with the computer's graphical user interface (GUI). It can retrieve screen information, take screenshots of specific regions, and perform mouse and keyboard actions.

When to Use This Skill

Your Roles in This Skill

Role Communication

As an expert in your assigned roles, you must announce your actions before performing them using the following format:

As a {Role} [and {Role}, ...], I will {action description}

This communication pattern ensures transparency and allows for human-in-the-loop oversight at key decision points.

Instructions

All interactions are performed via the core/bin/use-computer CLI from the project root:

core/bin/use-computer --json_str '<JSON_COMMAND>'

The script returns a JSON response wrapped in <output></output> tags.

1. Get Screen Information

Use this to understand the monitor setup and primary screen resolution.

Command:

{"action": "screen_info"}

2. Take a Screenshot

For screenshot payloads, return fields, scaling, pointer markers, and coordinate correction, refer to references/screenshot.md.

3. Find Coordinates for Actions (Required)

Before any mouse_move or click, use agent skill find-ui-element to locate the target UI element and derive coordinates.

Recommended flow:

4. Perform Actions

For mouse, keyboard, hotkey, typing, and wait action payloads, refer to references/input-actions.md.

5. macOS Native Terminal

If the task needs a visible macOS Terminal window backed by tmux, refer to references/macos-terminal.md.

Usage Notes

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.