pratos/clanker-setup/stagehand-browser

Claude Code and agent skill by pratos/clanker-setup

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Browser automation using Stagehand and AI. Use when you need to interact with websites, fill forms, login to services, extract data from web pages, or automate web workflows. Provides the browser_automate tool.

Install

npx vskill@latest install pratos/clanker-setup/stagehand-browser

SKILL.md

The same SKILL.md was published earlier as pratos/clanker-setup/stagehand-browser.

Stagehand Browser Automation

Overview

This skill provides AI-powered browser automation via the browser_automate tool. It uses Stagehand to translate natural language instructions into browser actions.

When to Use

  • Login to websites and perform authenticated actions
  • Fill out forms with dynamic content
  • Extract structured data from web pages
  • Navigate complex web applications
  • Take screenshots for verification

The browser_automate Tool

Basic Usage
json
{
"url": "https://example.com",
"task": "Click the login button and read the page title"
}
With Credential Lookup
json
{
"url": "https://fantasy.premierleague.com",
"task": "Login with my credentials, then navigate to My Team",
"credentials": { "site": "fpl" }
}

Credentials are loaded from sops-nix:

  • ~/.config/sops-nix/secrets/<site>/ (with email/username and password files)
  • ~/.config/sops-nix/secrets/stagehand/<site>/ (alternative location)
With Data Extraction
json
{
"url": "https://example.com/products",
"task": "Find the featured product",
"extract": {
"instruction": "Extract the product name and price",
"schema": {
"name": "string",
"price": "string"
}
}
}
Debugging Mode (Watch Browser)
json
{
"url": "https://example.com",
"task": "Fill out the contact form",
"headless": false
}

Set headless: false to watch the browser perform actions in real-time.

Task Writing Tips

Be Specific

❌ "Login and do stuff" ✅ "Login with username from credentials, click 'My Account' in the top menu, then click 'Order History'"

Break Down Complex Tasks

For multi-step workflows, describe each step:

"1. Login using credentials
2. Navigate to 'Transfers' tab
3. Click 'Make Transfers'
4. Search for player 'Salah'
5. Click 'Add to team'"
Handle Dynamic Content

Stagehand understands context:

  • "Click the button that says 'Submit'" (text matching)
  • "Fill the email field" (semantic understanding)
  • "Select the second item in the dropdown" (positional)

Parameters Reference

ParameterTypeDefaultDescription
urlstringrequiredURL to navigate to
taskstringrequiredNatural language task description
credentials.sitestringoptionalSite identifier for credential lookup
extract.instructionstringoptionalWhat data to extract
extract.schemaobjectoptionalSchema for extracted data
screenshotbooleantrueTake a screenshot when done
headlessbooleantrueRun browser without UI (set false to watch)
timeoutnumber60000Timeout in milliseconds

Integration with Other Skills

Other skills can reference this tool. Example for an FPL skill:

markdown
## Making Transfers
When the user wants to make transfers, use the `browser_automate` tool:
browser_automate({
url: "https://fantasy.premierleague.com/transfers",
task: "Login, then transfer out [PLAYER_OUT] and bring in [PLAYER_IN]",
credentials: { site: "fpl" },
screenshot: true
})

Limitations

  • Each tool call is stateless (browser closes after task)
  • No persistent sessions across calls (login required each time)
  • Screenshots are PNG files saved to temp directory
  • 60-second default timeout (configurable)

Troubleshooting

"No LLM API key found"

Set ANTHROPIC_API_KEY or OPENAI_API_KEY in your environment, or add to sops-nix.

Browser not launching

Run setup: ~/.pi/agent/extensions/stagehand-browser/scripts/setup-local.sh

Timeout errors

Increase timeout: { "timeout": 120000 } (2 minutes)

Site blocking automation

Try with { "headless": false } to see what's happening. Some sites may require additional handling.

Credentials not found

Check that your credentials are at ~/.config/sops-nix/secrets/<site>/ with email (or username) and password files.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/pratos/clanker-setup/stagehand-browser/badge)](https://verified-skill.com/skills/pratos/clanker-setup/stagehand-browser)

Something wrong with this skill or its page? Tell us.