Community研究&データ分析github.com

claude-office-skills/browser-automation

Puppeteer/Playwrightを使用したWebブラウザ操作、スクレイピング、テスト、ワークフロー自動化を実現します。

browser-automation とは?

このスキルは、PuppeteerまたはPlaywrightを活用して、Webブラウザの操作を自動化するための包括的な機能を提供します。具体的には、ページのスクレイピング、フォームの自動入力、スクリーンショットの取得、クリックやナビゲーションなどのユーザー操作のシミュレーション、さらには複雑なテストシナリオやワークフローの自動実行までサポートします。主にNode.js環境で動作し、ChromeやFirefoxなどのヘッドレスブラウザを制御することで、人間が手動で行うブラウザ操作をコードで再現できます。開発者やQAエンジニアにとって、反復的なブラウザ操作の自動化や、動的コンテンツを含むWebページのデータ取得、E2Eテストの効率化に役立ちます。クラウド環境(GitHub Actionsなど)でも利用可能で、スクレイピングの結果をファイルに保存したり、テストレポートを生成する機能も備えています。

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/claude-office-skills/skills/tree/main/skills/browser-automation

Installed? Explore more 研究&データ分析 skills: affaan-m/uspto-database, affaan-m/scholar-evaluation, affaan-m/literature-review · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

browser-automation は何をしますか?

Puppeteer/Playwrightを使用して、Webブラウザの操作、スクレイピング、テスト、ワークフロー自動化を実現します。

概要

このスキルは、ブラウザ自動化ライブラリ(PuppeteerまたはPlaywright)を利用して、Webブラウザの操作をプログラムで制御します。以下のようなタスクに最適です。

  • Webページのデータスクレイピング
  • フォームの自動入力と送信
  • スクリーンショットやPDFの生成
  • E2Eテストの自動実行
  • 定期的なWebワークフローの自動化

対応環境

  • Node.js (v18以上推奨)
  • ヘッドレスChrome / Firefox
  • GitHub ActionsなどのCI/CD環境

使い方

  1. 依存関係をインストールします。
npm install puppeteer
  1. 以下のようにスクリプトを作成します。
const puppeteer = require('puppeteer');

(async () => {
  const browser = await puppeteer.launch();
  const page = await browser.newPage();
  await page.goto('https://example.com');
  await page.screenshot({ path: 'example.png' });
  await browser.close();
})();

主な機能

  • ナビゲーション: URLへの移動、戻る/進むボタン
  • クリック: 要素のクリック、ダブルクリック
  • 入力: テキストボックスへの値の設定、キーボード入力
  • スクレイピング: ページ内のテキストや属性の取得
  • スクリーンショット: ページ全体または特定の要素のキャプチャ
  • 待機: 要素の表示や一定時間の待機
  • テストアサーション: 要素の存在やテキストの一致確認

注意事項

  • 対象サイトの利用規約を遵守してください。
  • 大量リクエストはサーバーに負荷をかける可能性があるため、適切な間隔を設定してください。
  • ヘッドレスモードのブラウザはデバッグが難しいため、必要に応じて非ヘッドレスモードを使用してください。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

claude-office-skills/academic-search

Search and analyze academic literature. Find papers, understand research methodologies, and synthesize academic findings for research projects.

claude-office-skills/ads-copywriter

Multi-platform ad copy generation for Google Ads, Meta/Facebook, TikTok, LinkedIn with A/B testing variants

claude-office-skills/ai-agent-builder

Build AI agents with tools, memory, and multi-step reasoning - ChatGPT, Claude, Gemini integration patterns

claude-office-skills/airtable-automation

Airtable database automation - views, automations, integrations, and workflow triggers

claude-office-skills/ai-slides

Generate complete presentations with AI - from outline to polished slides

claude-office-skills/amazon-seller

Automate Amazon seller operations including inventory, orders, pricing, and advertising management

claude-office-skills/apple-shortcuts-integration

Create and trigger Apple Shortcuts for iOS/macOS automation and cross-platform workflows

claude-office-skills/applicant-screening

Screen job applications against requirements and score candidates

claude-office-skills/asana-automation

Automate Asana project management workflows, task tracking, team collaboration, and reporting

claude-office-skills/batch-convert

Batch convert documents between multiple formats using a unified pipeline

claude-office-skills/batch-processor

Process multiple documents in bulk with parallel execution

claude-office-skills/brand-guidelines-generator

Create and maintain brand style guides for consistent visual identity

claude-office-skills/calendar-automation

Google Calendar and Outlook automation - scheduling optimization, meeting workflows, time blocking, and Slack/Sheets integration

claude-office-skills/changelog-generator

Generate release notes from git commits, updates, or feature lists

claude-office-skills/chart-designer

Design effective data visualizations and charts. Generate chart configurations for ECharts, Chart.js, and other libraries. Create dashboards and reports.

claude-office-skills/chat-with-pdf

Answer questions about PDF content, summarize, and extract information

claude-office-skills/clickup-automation

Automate ClickUp workspace management, task workflows, time tracking, and team productivity

claude-office-skills/company-research

Conduct comprehensive company research and due diligence. Analyze business model, competitive landscape, management, and market position.

claude-office-skills/competitive-analysis

Analyze competitors systematically. Compare products, features, pricing, positioning, and market strategies. Generate comprehensive competitive intelligence reports.

claude-office-skills/content-research-writer

Research topics and write content like blog posts, articles, and copy

関連スキル