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

scripts/teams.js

View on GitHub
#!/usr/bin/env node
/**
 * teams.js โ€” Microsoft Teams web CLI.
 *
 * Sends messages via keyboard automation. Teams web supports Markdown.
 *
 * Usage:
 *   node scripts/teams.js send <chatId> <message>           Send message (inline, short)
 *   node scripts/teams.js send <chatId> << 'EOF'             Send message via stdin (long, multiline)
 *   ...message...
 *   EOF
 *   node scripts/teams.js -h|--help                          This help
 *
 * chatId format: 19:meeting_xxx@thread.v2 or 48:notes (personal notes)
 * Navigates to https://teams.microsoft.com/v2/chat/<chatId>
 *
 * Markdown supported: [#text](url), **bold**, *italic*, - bullet, > quote
 * HTML tags are typed as literal text. Use Markdown instead.
 *
 * How it works:
 *   1. Navigate to the chat (via browser.js wrapper)
 *   2. Wait for div[role=textbox] (poll up to 24s)
 *   3. Focus textbox, clear any existing content
 *   4. Type each line with agent-browser keyboard type <line>
 *   5. Shift+Enter between lines (Enter is newline, NOT send)
 *   6. Meta+Enter after last line (sends the message)
 *
 * Requires: browser.js wrapper in the same directory (scripts/browser.js).
 *           The wrapper resolves .browser-profile from the consuming repo's cwd.
 */
'use strict';

const { execSync, execFileSync } = require('child_process');
const fs = require('fs');
const path = require('path');

const SCRIPT_DIR = path.resolve(__dirname);
const BROWSER_JS = path.join(SCRIPT_DIR, 'browser.js');
const TEAMS_BASE = 'https://teams.microsoft.com/v2';

// The consuming repo's root (cwd), where .browser-profile lives
const CWD = process.cwd();

function fail(msg, code = 1) {
  console.error(`[teams] ${msg}`);
  process.exit(code);
}

function usage() {
  console.log(`Usage:
  node scripts/teams.js send <chatId> <message>           Send message (inline, short)
  node scripts/teams.js send <chatId> < file.md            Send message via stdin (long, multiline)

chatId format: 19:meeting_xxx@thread.v2 or 48:notes (personal notes)
Navigates to https://teams.microsoft.com/v2/chat/<chatId>

Markdown supported: [#text](url), **bold**, *italic*, - bullet, > quote
HTML tags are typed as literal text. Use Markdown instead.

Examples:
  # Short message
  node scripts/teams.js send 48:notes "mensaje corto"

  # Long message via stdin (heredoc)
  node scripts/teams.js send 48:notes << 'EOF'
  ๐Ÿ“Š Triage report

  46 tickets ยท 27 overdue

  [#1234](https://example.com/tickets/1234)
  EOF

  # Long message from a file
  cat /tmp/report.md | node scripts/teams.js send 48:notes`);
}

/**
 * Read stdin as a string.
 */
function readStdin() {
  return new Promise((resolve, reject) => {
    let data = '';
    process.stdin.setEncoding('utf8');
    process.stdin.on('data', chunk => data += chunk);
    process.stdin.on('end', () => resolve(data));
    process.stdin.on('error', reject);
  });
}

/**
 * Navigate to a Teams chat and type a message line by line.
 * Uses browser.js wrapper for navigation, agent-browser for typing.
 * Meta+Enter at the end sends the message.
 */
async function sendMessage(chatId, message) {
  if (!chatId) fail('send requires <chatId>');
  if (!message || !message.trim()) fail('send requires a message (inline arg or stdin)');

  message = message.trim();

  // Navigate to the chat using the browser.js wrapper
  const chatUrl = `${TEAMS_BASE}/chat/${chatId}`;
  try {
    execSync(`node "${BROWSER_JS}" goto ${chatUrl}`, {
      cwd: CWD, encoding: 'utf8', timeout: 30000, stdio: 'pipe',
    });
  } catch (e) {
    // goto may timeout waiting for page load, but navigation still happens
  }

  // Wait for the textbox to appear. Teams v2 can take 10-20s to render.
  let textboxReady = false;
  for (let attempt = 0; attempt < 12; attempt++) {
    execSync('sleep 2', { encoding: 'utf8', timeout: 10000 });
    try {
      const out = execSync(
        `node "${BROWSER_JS}" exec eval "document.querySelector('div[role=textbox]') ? 'ready' : 'no'"`,
        { cwd: CWD, encoding: 'utf8', timeout: 15000, stdio: 'pipe' }
      );
      if (out.includes('ready')) { textboxReady = true; break; }
    } catch (e) {
      // eval may fail if page is still loading, retry
    }
  }
  if (!textboxReady) {
    fail('Textbox not found after 24s. Make sure Teams is logged in and the chat exists.');
  }

  // Focus the textbox
  execSync(`node "${BROWSER_JS}" exec eval "document.querySelector('div[role=textbox]').focus()"`, {
    cwd: CWD, encoding: 'utf8', timeout: 30000, stdio: 'pipe',
  });

  // Clear any existing content
  execFileSync('node', [BROWSER_JS, 'exec', 'press', 'Meta+a'], {
    cwd: CWD, encoding: 'utf8', timeout: 30000, stdio: 'pipe',
  });
  execFileSync('node', [BROWSER_JS, 'exec', 'press', 'Delete'], {
    cwd: CWD, encoding: 'utf8', timeout: 30000, stdio: 'pipe',
  });

  // Type each line with real keystrokes, Shift+Enter between lines
  const lines = message.split('\n');
  for (let i = 0; i < lines.length; i++) {
    const line = lines[i];
    if (line.length > 0) {
      execFileSync('node', [BROWSER_JS, 'exec', 'keyboard', 'type', line], {
        cwd: CWD, encoding: 'utf8', timeout: 30000, stdio: 'pipe',
      });
    }
    if (i < lines.length - 1) {
      execFileSync('node', [BROWSER_JS, 'exec', 'press', 'Shift+Enter'], {
        cwd: CWD, encoding: 'utf8', timeout: 30000, stdio: 'pipe',
      });
    }
  }

  // Send with Meta+Enter (Cmd+Enter on macOS). In Teams v2, Enter alone is a newline
  // in the contenteditable; Meta+Enter is the actual send shortcut.
  execFileSync('node', [BROWSER_JS, 'exec', 'press', 'Meta+Enter'], {
    cwd: CWD, encoding: 'utf8', timeout: 30000, stdio: 'pipe',
  });

  console.log(JSON.stringify({ status: 'sent', method: 'keyboard', chatId, lines: lines.length, chars: message.length }));
}

// โ”€โ”€โ”€ CLI โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

function parseArgs(argv) {
  const args = { _: [] };
  for (const a of argv) {
    if (a === '-h' || a === '--help') { usage(); process.exit(0); }
    else if (a.startsWith('--')) {
      const [k, ...v] = a.slice(2).split('=');
      args[k] = v.length ? v.join('=') : true;
    } else {
      args._.push(a);
    }
  }
  return args;
}

async function main() {
  const args = parseArgs(process.argv.slice(2));
  const command = args._.shift();

  switch (command) {
    case 'send': {
      const chatId = args._.shift();
      const inlineMsg = args._.join(' ');

      if (inlineMsg) {
        // Message passed as argument (short)
        await sendMessage(chatId, inlineMsg);
      } else if (!process.stdin.isTTY) {
        // Message via stdin (long, multiline, heredoc or pipe)
        const stdinMsg = await readStdin();
        await sendMessage(chatId, stdinMsg);
      } else {
        fail('send requires a message (inline arg or stdin). Run --help for usage.');
      }
      break;
    }
    case '-h':
    case '--help':
      usage();
      break;
    default:
      if (!command) { usage(); process.exit(0); }
      fail(`Unknown command: ${command}. Run --help for usage.`);
  }
}

main().catch(err => fail(err.message));
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