Tooluck logoTooluck
SKILL.md

computer-use-agents

Agent skill fromdavila7/claude-code-templates

Build AI agents that interact with computers like humans do - viewing screens, moving cursors, clicking buttons, and typing text. Covers Anthropic's Computer Use, OpenAI's Operator/CUA, and open-source alternatives. Critical focus on sandboxing, security, and handling the unique challenges of vision-based control. Use when: computer use, desktop automation agent, screen control AI, vision-based agent, GUI automation.

How to install computer-use-agents

install computer-use-agents
# install the claude-code-templates pack with the skills CLI
npx skills add davila7/claude-code-templates

# or add only this skill to Claude Code: copy the folder

cli-tool/components/skills/ai-research/computer-use-agents/

# into

~/.claude/skills/computer-use-agents/ (all projects)

.claude/skills/computer-use-agents/ (one project)

cli-tool/components/skills/ai-research/computer-use-agents/SKILL.md

MITFull file
1# Computer Use Agents
2
3## Patterns
4
5### Perception-Reasoning-Action Loop
6
7The fundamental architecture of computer use agents: observe screen,
8reason about next action, execute action, repeat. This loop integrates
9vision models with action execution through an iterative pipeline.
10
11Key components:
121. PERCEPTION: Screenshot captures current screen state
132. REASONING: Vision-language model analyzes and plans
143. ACTION: Execute mouse/keyboard operations
154. FEEDBACK: Observe result, continue or correct
16
17Critical insight: Vision agents are completely still during "thinking"
18phase (1-5 seconds), creating a detectable pause pattern.
19
20
21**When to use**: ['Building any computer use agent from scratch', 'Integrating vision models with desktop control', 'Understanding agent behavior patterns']
22
23```python
24from anthropic import Anthropic
25from PIL import Image
26import base64
27import pyautogui
28import time
29
30class ComputerUseAgent:
31 """
32 Perception-Reasoning-Action loop implementation.
33 Based on Anthropic Computer Use patterns.
34 """
35
36 def __init__(self, client: Anthropic, model: str = "claude-sonnet-4-20250514"):
37 self.client = client
38 self.model = model
39 self.max_steps = 50 # Prevent runaway loops
40 self.action_delay = 0.5 # Seconds between actions
41
42 def capture_screenshot(self) -> str:
43 """Capture screen and return base64 encoded image."""
44 screenshot = pyautogui.screenshot()
45…

Excerpt shown under the repository's MIT license.

More skills in claude-code-templates

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates