computer-use-agent
Skill1 starsChanged 13 months agoMITView on GitHub
AI-powered desktop automation using screenshots and vision-guided actions to control any desktop application
In this repository40 other files it gives its agents.
- agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/always.mdcCursor rule
- .cursor/rules/atlassian/atlassian_integration.mdcCursor rule
- .cursor/rules/computer_use/computer_use_agent.mdcCursor rule
- .cursor/rules/documentation.mdcCursor rule
- .cursor/rules/fstrent_spec_tasks/claude_code_cli.mdcCursor rule
- .cursor/rules/github/github_integration.mdcCursor rule
- .cursor/rules/powershell.mdcCursor rule
- .cursor/rules/silicon_valley_personality.mdcCursor rule
- .cursor/rules/virtual_environments_python.mdCursor rule
- .cursor/rules/web_tools/web_tools.mdcCursor rule
- artifacts-builderSkill
- atlassian-integrationSkill
- claude-code-cli-integrationSkill
- deep-researchSkill
- fstrent-code-reviewerSkill
- fstrent-planningSkill
- fstrent-qaSkill
- fstrent-task-managementSkill
- github-integrationSkill
- hanx-database-toolsSkill
- hanx-knowledge-baseSkill
- hanx-mediawikiSkill
- hanx-youtube-researcherSkill
- internal-commsSkill
- mcp-builderSkill
- oracle-apex-developmentSkill
- patent-filing-aiSkill
- Project SetupSkill
- research-methodologySkill
- skill-creatorSkill
- startup-business-formationSkill
- startup-product-developmentSkill
- startup-resource-accessSkill
- startup-vc-fundraisingSkill
- template-skillSkill
- web-toolsSkill
- youtube-rag-storageSkill
- youtube-video-analysisSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
24 rules. About 0 are common, 23 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈23
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 37
Test desktop software workflows
- Distinctive: line 79
Read text on screen
- Distinctive: line 96
All tools include built-in safety features and error handling.
- Distinctive: line 145
This skill controls your actual computer: Always follow these safety guidelines:
- Distinctive: line 147
Start Simple: Test with simple, low-risk tasks first
- Distinctive: line 150
Avoid Sensitive Data: Don't automate tasks involving passwords or sensitive info
- Distinctive: line 151
Test in Safe Environments: Use test accounts or sandboxed environments
- Distinctive: line 152
Verify Actions: Use confirmation mode for critical tasks
- Distinctive: line 153
Backup Important Data: Always backup before automating file operations
- Distinctive: line 159
Use slower action delays (1-2 seconds)
- Distinctive: line 165
Use standard delays (0.5 seconds)
- Very specific: line 193
Ensure fstrent_mcp_computer_use is configured in .mcp.json:
- Distinctive: line 221
Verify MCP server is running
- Distinctive: line 222
Check OpenAI API key is configured
- Distinctive: line 223
Ensure pyautogui is not blocked by OS permissions
- Distinctive: line 227
Verify screen resolution matches coordinates
- Distinctive: line 228
Check for UI scaling (125%, 150%, etc.)
- Distinctive: line 236
Use higher screenshot quality
- Distinctive: line 237
Ensure text is legible in screenshot
- Distinctive: line 238
Verify adequate screen contrast
- Distinctive: line 245
Browser Automation: Only controls web browsers and web pages
- Distinctive: line 275
Read text from screenshots
- Distinctive: line 287
Test in Safe Environments: Use test accounts and non-production systems
- Distinctive: line 292
Review Audit Trails: Check screenshot logs periodically
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Computer Use Agent Skill
AI-powered desktop automation that uses vision models to understand your screen and execute actions to accomplish tasks.
Overview
The Computer Use Agent Skill enables automated control of desktop applications through:
- Screenshot Analysis: Captures and analyzes your screen using AI vision
- Intelligent Actions: AI determines what to click, type, or interact with
- Multi-Step Workflows: Executes complex tasks across multiple steps
- Safety Controls: Built-in failsafes and rate limiting
Unlike browser automation, this skill can control any desktop application including native apps, file explorers, and system dialogs.
When to Use This Skill
Activate this skill when the user needs to:
- Automate repetitive desktop tasks
- Fill out forms in native applications
- Navigate complex desktop UIs
- Test desktop software workflows
- Control applications without APIs
- Perform GUI automation tasks
- Automate multi-application workflows
Capabilities
Desktop Control
- Click Actions: Click buttons, links, menu items at precise coordinates
- Text Input: Type text into forms, text fields, search boxes
- Keyboard Control: Press Enter, Tab, Ctrl+C, and other key combinations
- Mouse Movement: Move mouse cursor to specific locations
- Scrolling: Scroll windows up, down, left, right
- Drag and Drop: Drag elements from one location to another
Workflow Features
- Multi-Step Tasks: Execute sequences of actions to complete complex tasks
- Screen Analysis: AI vision understands what's on screen
- Action Planning: AI determines best sequence of actions
- Error Recovery: Detect and recover from unexpected states
- Progress Tracking: Monitor task progress through multiple steps
Safety Features
- FAILSAFE Mode: Move mouse to upper-left corner to immediately abort
- Action Delays: Configurable pause between actions (default 0.5s)
- Step Limits: Maximum steps to prevent infinite loops
- Confirmation Mode: Optional user confirmation before executing actions
- Screenshot Logging: Save screenshots for audit trail and debugging
How It Works
Basic Workflow
- User describes the task to accomplish
- Skill captures screenshot of current screen
- Screenshot analyzed by AI vision model
- AI recommends next action (click, type, scroll, etc.)
- Action executed via desktop automation tools
- Process repeats until task complete or max steps reached
Vision-Guided Automation
The skill uses advanced AI vision to:
- Identify UI elements (buttons, forms, menus)
- Read text on screen
- Understand application state
- Determine appropriate actions
- Verify task completion
MCP Tools Available
This skill integrates with the fstrent_mcp_computer_use MCP server, which provides:
computer_use_run_task: Execute a complete multi-step desktop automation taskcomputer_use_screenshot: Capture screenshot of current screencomputer_use_click: Click at specific screen coordinatescomputer_use_type: Type text into focused elementcomputer_use_key_press: Press specific keyboard keyscomputer_use_scroll: Scroll in specified directioncomputer_use_mouse_move: Move mouse to coordinates
All tools include built-in safety features and error handling.
Usage Examples
Example 1: Automate Form Filling
User: "Fill out the customer feedback form with a 5-star rating and the comment 'Great service!'"
Workflow:
1. Capture screenshot to locate form
2. Click on rating field
3. Click 5-star rating
4. Click on comment field
5. Type "Great service!"
6. Click submit button
7. Verify submission completeExample 2: Navigate Application Menu
User: "Open the File menu and select 'Export as PDF'"
Workflow:
1. Capture screenshot to locate File menu
2. Click "File" menu
3. Wait for menu to open
4. Capture screenshot of open menu
5. Click "Export as PDF"
6. Verify dialog openedExample 3: Desktop Cleanup
User: "Move all files from Downloads to Documents folder"
Workflow:
1. Open File Explorer
2. Navigate to Downloads folder
3. Select all files
4. Cut files (Ctrl+X)
5. Navigate to Documents
6. Paste files (Ctrl+V)
7. Verify files movedSafety Guidelines
Critical Safety Considerations
This skill controls your actual computer. Always follow these safety guidelines:
- Start Simple: Test with simple, low-risk tasks first
- Watch Closely: Monitor the automation as it runs
- Use FAILSAFE: Move mouse to upper-left corner to abort anytime
- Avoid Sensitive Data: Don't automate tasks involving passwords or sensitive info
- Test in Safe Environments: Use test accounts or sandboxed environments
- Verify Actions: Use confirmation mode for critical tasks
- Backup Important Data: Always backup before automating file operations
Recommended Settings
For First-Time Use:
- Enable confirmation mode
- Use slower action delays (1-2 seconds)
- Set lower max steps (10-15)
- Enable screenshot logging
For Production Use:
- Disable confirmation for trusted workflows
- Use standard delays (0.5 seconds)
- Set appropriate max steps for task complexity
- Enable screenshot logging for audit trails
Configuration
Safety Settings
# Recommended safety configuration
failsafe_enabled: true # Enable FAILSAFE (move mouse to corner to abort)
action_delay: 0.5 # Seconds between actions (0.5-2.0)
max_steps: 50 # Maximum automation steps
confirmation_mode: false # Require confirmation before each action
screenshot_logging: true # Save screenshots for audit trailPerformance Settings
# Performance tuning
screenshot_quality: 80 # JPEG quality (60-95)
vision_model: gpt-4o # Vision model to use
retry_on_error: true # Retry failed actions
max_retries: 3 # Maximum retry attemptsIntegration Requirements
MCP Server Setup
Ensure fstrent_mcp_computer_use is configured in .mcp.json:
{
"mcpServers": {
"fstrent_mcp_computer_use": {
"command": "uv",
"args": [
"--directory",
"C:\\.ai\\mcps\\fstrent_mcp_computer_use",
"run",
"fstrent_mcp_computer_use"
]
}
}
}Required Dependencies
The MCP server handles all dependencies. No additional setup required.
API Keys
Requires OpenAI API key with access to vision models (gpt-4o or gpt-4-turbo).
Troubleshooting
Common Issues
Automation Not Starting
- Verify MCP server is running
- Check OpenAI API key is configured
- Ensure pyautogui is not blocked by OS permissions
Actions Missing Target
- Increase action delay for slower UIs
- Verify screen resolution matches coordinates
- Check for UI scaling (125%, 150%, etc.)
FAILSAFE Triggering Accidentally
- Adjust FAILSAFE corner location
- Increase action delay
- Move mouse away from corners during setup
Vision Model Not Understanding Screen
- Use higher screenshot quality
- Ensure text is legible in screenshot
- Verify adequate screen contrast
- Try describing task in more detail
Comparison to Other Automation
Computer Use Agent vs Browser Automation
- Computer Use: Controls entire desktop, any application
- Browser Automation: Only controls web browsers and web pages
- Use Computer Use For: Native apps, system dialogs, file operations
- Use Browser Automation For: Web scraping, web app testing, form submission
Computer Use Agent vs MCP Tools
- Computer Use: AI-guided vision-based automation
- MCP Tools: Direct programmatic control
- Use Computer Use For: Complex UIs, visual workflows, unpredictable states
- Use MCP Tools For: Databases, APIs, file systems, structured data
Advanced Features
Multi-Application Workflows
Automate tasks spanning multiple applications:
Example: "Export data from Excel, import to database, generate PDF report"
1. Open Excel, select data range, export CSV
2. Open database tool, import CSV
3. Run report query, export to PDFError Recovery
The skill can detect and recover from errors:
- Detect unexpected dialogs and close them
- Retry failed actions with different parameters
- Navigate back to known good state
- Alert user if unrecoverable error occurs
Screenshot Analysis
AI vision can:
- Read text from screenshots
- Identify UI element types
- Determine application state
- Locate specific elements
- Verify expected outcomes
Best Practices
- Start with Simple Tasks: Build confidence with basic workflows
- Use Descriptive Task Descriptions: Clear descriptions = better AI understanding
- Monitor First Runs: Watch automation closely the first time
- Enable Logging: Screenshot logs help debug issues
- Test in Safe Environments: Use test accounts and non-production systems
- Document Workflows: Save successful task descriptions for reuse
- Use Appropriate Delays: Faster isn't always better - allow UIs to respond
- Set Realistic Step Limits: Complex tasks need more steps
- Keep Tasks Focused: Break complex workflows into smaller tasks
- Review Audit Trails: Check screenshot logs periodically
Reference Materials
For detailed implementation information, see:
- reference/safety_guidelines.md - Comprehensive safety documentation
- reference/action_types.md - All supported action types
- reference/troubleshooting.md - Common issues and solutions
- examples/automation_workflows.md - Example workflows
Related Skills
- web-tools: For browser automation and web scraping
- database-tools: For database operations
- file-operations: For file system automation
Note: This is a powerful skill that controls your actual computer. Always prioritize safety, use FAILSAFE mode, and test in safe environments. Start simple and build confidence before attempting complex automations.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

