用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Demerzels-lab/elsamultiskillagent --skill browserbase-fix命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | browserbase-fix |
| description | Guide Claude through debugging and fixing failing browser automations |
Guide Claude through debugging and fixing failing browser automations.
Use this skill when:
Before debugging, gather context from:
stagehand fn errors <function-name>
stagehand fn logs <function-name>
Start a Browserbase session to see what's happening:
stagehand session create
stagehand session live # Open in browser to watch
Navigate to the target URL:
stagehand goto <target-url>
Take a snapshot of the current page:
stagehand snapshot
Compare with what the automation expects:
The site updated their HTML:
stagehand snapshot
# Look for similar elements with new selectors
stagehand eval "document.querySelector('.new-class')?.textContent"
Fix: Update selectors in the function code.
Elements load slower than expected:
stagehand network on
stagehand goto <url>
stagehand network list
# Check if resources are slow to load
Fix: Add explicit waits or increase timeouts.
Session cookies no longer valid:
stagehand snapshot
# Look for login prompts
Fix: Re-authenticate or update auth flow. See skills/auth/SKILL.md.
Site is blocking automated access:
stagehand network list
# Look for 403, 429 status codes
stagehand screenshot -o blocked.png
Fix: Add delays, use proxies, or contact site owner.
Major structural changes:
stagehand snapshot
stagehand screenshot -o current.png
Fix: Rewrite affected portions of the automation.
Make changes to the function code, then test:
# Test locally first
stagehand fn invoke <name> --local
# If local works, deploy
stagehand fn publish <entrypoint>
# Test in production
stagehand fn invoke <name>
After fixing:
Once fixed, use git to commit changes:
git add <function-file>
git commit -m "fix(<function-name>): <description of fix>"
git push
If this is a PR workflow:
gh pr create --title "Fix <function-name>" --body "..."
| Command | Purpose |
|---|---|
stagehand session create | Start debug session |
stagehand session live | Open visual debugger |
stagehand goto <url> | Navigate to target |
stagehand snapshot | Inspect DOM structure |
stagehand screenshot | Capture visual state |
stagehand network on | Enable request capture |
stagehand network list | View captured requests |
stagehand network show <id> | Inspect specific request |
stagehand eval <js> | Run diagnostic JS |
stagehand fn errors <name> | View recent failures |
stagehand fn logs <name> | View function logs |
User: My price-monitor function stopped working yesterday
Claude: Let me investigate. First, let me check the recent errors:
> stagehand fn errors price-monitor
I see several failures with "Element not found: .price". Let me start a debug session:
> stagehand session create
> stagehand session live
> stagehand goto https://example.com/product/123
Opening in browser so you can watch. Let me check the page structure:
> stagehand snapshot
I can see the price element now uses a different class `.product-price` instead of `.price`. The site appears to have been redesigned.
Let me verify:
> stagehand eval "document.querySelector('.product-price')?.textContent"
Yes, that returns "$29.99". I'll update the selector in your function:
[edits price-monitor.ts to use '.product-price']
Testing locally:
> stagehand fn invoke price-monitor --local -p '{"productUrl": "https://example.com/product/123"}'
Works! Deploying fix:
> stagehand fn publish price-monitor.ts
The function should work now. Would you like me to commit this fix?