Skip to content

galiprandi/job-seeker / .agents/skills/browser-automation

browser-automation

Verified

Control a dedicated browser via agent-browser (Vercel). Use when automating web apps, scraping authenticated sites, filling forms, or navigating SPAs. Do NOT use for desktop apps or API-only integrations.

FileKindSize
SETUP.mdmarkdown3.0 KB
SKILL.mdskill md39.4 KB
references/agent-browser.mdmarkdown4.6 KB
references/api-capture.mdmarkdown1.8 KB
references/ats-patterns.mdmarkdown4.5 KB
references/audio-transcription.mdmarkdown2.4 KB
references/custom-combobox.mdmarkdown5.0 KB
references/efficiency-patterns.mdmarkdown2.6 KB
references/golden-rules.mdmarkdown5.7 KB
references/key-patterns.mdmarkdown4.4 KB
references/network-console.mdmarkdown1.2 KB
references/parallel-agents.mdmarkdown6.2 KB
references/profile-management.mdmarkdown6.3 KB
references/token-extraction.mdmarkdown2.8 KB
scripts/README.mdmarkdown6.0 KB
scripts/agent-browser.template.jsonconfig333 B
scripts/browser-share.jsscript20.0 KB
scripts/browser.jsexecutablescript17.1 KB
scripts/teams.jsscript7.1 KB
scripts/test-find-guide.jsscript6.3 KB
scripts/transcribe-audio.jsscript3.6 KB
scripts/viewer.htmlother8.6 KB
sites/CONTRIBUTING.mdmarkdown11.0 KB
sites/LEARN.mdmarkdown5.4 KB
sites/afip_gob_ar/guide.mdmarkdown9.0 KB
sites/app_web3forms_com/guide.mdmarkdown7.1 KB
sites/buk_co/guide.mdmarkdown1.5 KB
sites/calendar_google_com/calendar-deeplink.mdmarkdown1.9 KB
sites/calendly_com/guide.mdmarkdown1001 B
sites/careers_epam_com/guide.mdmarkdown4.4 KB
sites/dash_cloudflare_com/guide.mdmarkdown7.7 KB
sites/discord_com/guide.mdmarkdown9.9 KB
sites/discord_com/login-flow.mdmarkdown3.2 KB
sites/docs_google_com/guide.mdmarkdown7.3 KB
sites/facebook_com/guide.mdmarkdown9.8 KB
sites/gmail_com/guide.mdmarkdown35.6 KB
sites/google_com/guide.mdmarkdown1.1 KB
sites/google_com/login-flow.mdmarkdown3.3 KB
sites/google_home_com/guide.mdmarkdown2.1 KB
sites/google_maps_com/guide.mdmarkdown8.4 KB
sites/groq_com/signup-apikey.mdmarkdown6.6 KB
sites/humand_co/guide.mdmarkdown6.9 KB
sites/jira_com/guide.mdmarkdown10.8 KB
sites/linkedin_com/guide.mdmarkdown27.4 KB
sites/linkedin_com/outreach-strategy.mdmarkdown1.2 KB
sites/linkedin_com/posting.mdmarkdown14.0 KB
sites/linkedin_com/voyager-api.mdmarkdown8.1 KB
sites/mercadolibre_com/guide.mdmarkdown4.5 KB
sites/onstrider_com/draftjs-editor-fill.mdmarkdown2.3 KB
sites/onstrider_com/guide.mdmarkdown11.3 KB
sites/onstrider_com/react-autocomplete-inputs.mdmarkdown4.0 KB
sites/outlook_office_com/calendar-deeplink.mdmarkdown2.2 KB
sites/outlook_office_com/guide.mdmarkdown14.0 KB
sites/property_directory/guide.mdmarkdown3.7 KB
sites/reddit_com/guide.mdmarkdown16.2 KB
sites/teams_com/guide.mdmarkdown10.3 KB
sites/teamtailor_com/guide.mdmarkdown6.5 KB
sites/vea_com_ar/guide.mdmarkdown8.8 KB
sites/whatsapp_com/guide.mdmarkdown21.3 KB
sites/whatsapp_com/login-flow.mdmarkdown3.0 KB
sites/whatsapp_com/message-extraction.mdmarkdown5.7 KB
sites/whatsapp_com/voice-notes.mdmarkdown7.1 KB
sites/workatastartup_com/guide.mdmarkdown1.5 KB

sites/discord_com/login-flow.md

View on GitHub
---
name: discord-login
description: Discord web sign-in flow with mobile-app approval. Use when logging in to Discord via agent-browser in headed mode.
---

# Discord Web Login Flow

Guide for logging in to Discord through the web client when a stored session is not available. Validated against `discord.com/login`.

## Prerequisite

Read the main Browser Automation `SKILL.md` for profile setup and the safe wrapper. This flow requires **headed mode** because it may require a human-in-the-loop approval step on the user's mobile device.

## Setup

```bash
node .agents/skills/browser-automation/scripts/browser.js open "https://discord.com/login" --headed
```

## Flow

1. **Enter credentials.** Fill the email and password fields and submit the form. Prefer `exec snapshot -i` to get the field refs, then `exec fill "@eN" "<value>"`; submit via `exec press Enter` or `exec find role button "Iniciar sesión" click`.
2. **Handle 2FA if prompted.** Discord may ask for an authenticator code or a backup code. If so, stop and ask the user.
3. **Approve on the mobile app.** For some accounts, Discord sends an in-app approval prompt to the logged-in mobile client. The user must confirm the login from the Discord app.
4. **Login completes.** The browser loads the Discord main interface.

## Selectors

| Element | Selector |
|---|---|
| Email input | `input[name="email"]` or `input[placeholder*="Correo"]` |
| Password input | `input[name="password"]` or `input[type="password"]` |
| Submit button | `button[type="submit"]` or visible text "Iniciar sesión" |

Prefer `find`/`snapshot -i` over raw selectors; use these only as eval fallback (unverified after agent-browser migration):

```bash
node .agents/skills/browser-automation/scripts/browser.js exec fill "input[name=email]" "<email>"
node .agents/skills/browser-automation/scripts/browser.js exec fill "input[name=password]" "<password>"
node .agents/skills/browser-automation/scripts/browser.js exec click "button[type=submit]"
```

## Verification

After login, the URL should no longer be `/login`. A safe check is to wait for the Discord main layout to appear.

```bash
node .agents/skills/browser-automation/scripts/browser.js exec wait --fn "!location.pathname.includes('/login')"
```

## Auth state persistence

There is no explicit state-save/state-load step: after a successful login the session persists automatically in `.browser-profile/`. On the next run just open the site; do not commit anything profile-related to git.

## Anti-patterns

- **Do not** ask the user for their Discord token to use a CLI client. Third-party clients and self-bots violate Discord's Terms of Service and can result in account bans.
- **Do not** turn off 2FA or ask the user to do so.
- **Do not** store `.browser-profile/` or any exported state in version control; keep it in `.gitignore`.

## Notes

- The mobile-app approval may appear instead of, or in addition to, a 2FA code.
- If the user does not receive the in-app prompt, the Discord mobile app may not be actively logged in. In that case, prefer an authenticator code or backup code.
- Discord UI text may vary by language; prefer stable `name` or `type` attributes.

**Validated:** 2026-08-19 against live `discord.com/login`.
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall