computer-use-agents · davila7 — Claude Code skill: setup and architecture
Guides the setup of desktop automation agents using vision models. Helps assemble screen-capture loops and hardened container sandboxes.
npx claude-code-templates@latest --skill ai-research/computer-use-agentsWhat computer-use-agents does
The skill defines the perception-reasoning-action loop. It captures screen frames and sends them to a vision model for step planning. Simulated actions like mouse clicks run through pyautogui.
Host-level execution carries severe risks. Because of that, the pattern isolates the agent inside Docker. The environment boots a virtual display using xvfb and drops root privileges.
Desktop widgets remain tricky. Vision models regularly misclick custom dropdown menus and scrollbars. To stop runaway loops, the architecture enforces strict step limits.
What it helps with
- Build a desktop control loop using screenshot capture and PyAutoGUI actions
- Harden the execution environment with Docker sandboxing and virtual displays
- Configure Anthropic Computer Use calls with safety limits and timeouts
Example prompts for the agent
- Design a screen control agent loop using Claude and PyAutoGUI
- Generate a sandboxed Dockerfile with xvfb and fluxbox for GUI automation
- Add step caps and action throttling to my desktop agent
How to install computer-use-agents
1claude-code-templates
npx claude-code-templates@latest --skill ai-research/computer-use-agents2Skills CLI (Vercel)
npx skills add davila7/claude-code-templates --skill computer-use-agents -a claude-code3Manually: put the files in place
~/.claude/skills/computer-use-agents/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/computer-use-agents/
Manually: put the files in place
.agents/skills/computer-use-agents/SKILL.mdFor all projects use ~/.agents/skills/
Manually: put the files in place
.cursor/skills/computer-use-agents/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install davila7/claude-code-templates computer-use-agents2Manually: put the files in place
.github/skills/computer-use-agents/SKILL.mdPlatform CLI
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/ai-research/computer-use-agentsManually: put the files in place
.devin/skills/computer-use-agents/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about computer-use-agents
How to install computer-use-agents in Claude Code?
Run npx claude-code-templates@latest --skill ai-research/computer-use-agents in your terminal.
What does computer-use-agents do?
It supplies reference architectures for building desktop automation agents. You get code patterns for vision loops, input execution, and Docker isolation.
Why is container isolation required for computer use agents?
An agent operating unconstrained on a host machine can corrupt files or expose credentials. Running inside Docker limits potential damage to a disposable virtual desktop.
Similar skills
All skills for Agent setup: memory, context, orchestration →computer-use-agents by other authors comes first.