jpskill.com
🎨 デザイン コミュニティ

reddit-competitor-analysis-api-skill

Redditの投稿やコメントから、競合に関する言及、ブランドへの評判、市場調査、話題のキーワード、コミュニティの反応などを効率的に収集・分析し、ビジネスに役立つ構造化されたデータセットを構築するSkill。

📜 元の英語説明(参考)

This skill helps users extract structured data from Reddit posts and comments via BrowserAct API. Agent should proactively apply this skill when users express needs like analyzing competitor mentions on Reddit, tracking brand sentiment in Reddit comments, extracting Reddit discussions for market research, finding popular Reddit posts by keywords, monitoring community feedback on specific topics, gathering user reviews from Reddit threads, searching for Reddit posts within a specific date range, sorting Reddit discussions by relevance or hotness, compiling nested Reddit comments for deep analysis, building a structured dataset of Reddit conversations, discovering trending topics in specific subreddits, or monitoring social media activity for specific brands on Reddit.

🇯🇵 日本人クリエイター向け解説

一言でいうと

Redditの投稿やコメントから、競合に関する言及、ブランドへの評判、市場調査、話題のキーワード、コミュニティの反応などを効率的に収集・分析し、ビジネスに役立つ構造化されたデータセットを構築するSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o reddit-competitor-analysis-api-skill.zip https://jpskill.com/download/17632.zip && unzip -o reddit-competitor-analysis-api-skill.zip && rm reddit-competitor-analysis-api-skill.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/17632.zip -OutFile "$d\reddit-competitor-analysis-api-skill.zip"; Expand-Archive "$d\reddit-competitor-analysis-api-skill.zip" -DestinationPath $d -Force; ri "$d\reddit-competitor-analysis-api-skill.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して reddit-competitor-analysis-api-skill.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → reddit-competitor-analysis-api-skill フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
2

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Reddit競合分析APIスキル

📖 はじめに

このスキルは、BrowserAct Reddit競合分析APIテンプレートを使用して、ユーザーにワンストップのRedditデータ収集サービスを提供します。Redditの検索結果から、投稿の完全な詳細とコメントを抽出できます。検索キーワードとフィルタリング条件を入力するだけで、クリーンで使いやすいRedditデータを直接取得できます。

✨ 特徴

  1. ハルシネーションがなく、安定した正確なデータ抽出を保証: 事前設定されたワークフローにより、AI生成によるハルシネーションを回避します。
  2. CAPTCHAの問題なし: reCAPTCHAやその他の検証課題に対処する必要はありません。
  3. IPアクセス制限やジオフェンシングなし: 地域IP制限に対処する必要はありません。
  4. より高速な実行: 純粋なAI駆動のブラウザ自動化ソリューションと比較して、タスクの実行が高速です。
  5. 非常に高い費用対効果: 大量のトークンを消費するAIソリューションと比較して、データ取得コストを大幅に削減します。

🔑 APIキーガイド

実行する前に、BROWSERACT_API_KEY 環境変数が設定されていることを確認する必要があります。設定されていない場合は、他のアクションを実行しないでください。ユーザーに共同で提供を依頼し、待つ必要があります。 この時点で、Agentはユーザーに通知する必要があります:

"BrowserAct API Keyが設定されていないため、BrowserAct Consoleにアクセスして、最初にKeyを取得してください。"

🛠️ 入力パラメータ

スクリプトを呼び出す際、Agentはユーザーのニーズに基づいて、以下のパラメータを柔軟に設定する必要があります。

  1. Keywords (検索キーワード)

    • Type: string
    • Description: Redditの投稿を検索するためのキーワード。
    • Example: openclaw
  2. Publication_date (公開日)

    • Type: string
    • Description: 公開日の範囲で投稿をフィルタリングします。
    • Options: All time, Past year, Past month, Past week, Today, Past hour
    • Default: Past week
  3. Post_sort_by (検索ソート)

    • Type: string
    • Description: 選択した基準でRedditの投稿検索結果をソートします。
    • Options: Relevance, Hot, Top, New, Comment count
    • Default: Relevance
  4. Comment_sort_by (コメントソート)

    • Type: string
    • Description: 抽出されたコメントのソート基準。
    • Options: Best, Top, New, Controversial, Q&A
    • Default: Best
  5. Data_limit (投稿あたりのコメント数)

    • Type: number
    • Description: 投稿ごとに抽出するコメントの最大数。
    • Default: 10

🚀 使い方 (推奨)

Agentは、以下の独立したスクリプトを実行して、「1行のコマンドで結果を取得する」ことを実現する必要があります。スクリプトのパス ./scripts/... は、このスキルのディレクトリからの相対パスであることに注意してください。

# 実行例
python3 -u ./scripts/reddit_competitor_analysis_api.py "keywords" "publication_date" "post_sort_by" "comment_sort_by" data_limit

⏳ タスクステータスの監視

このタスクは自動化されたブラウザ操作を伴うため、時間がかかる場合があります(数分)。スクリプトは実行中にタイムスタンプ付きのステータスログを継続的に出力します(例:[14:30:05] Task Status: running)。 Agentは以下を知っておく必要があります:

  • スクリプトが結果を返すのを待っている間、ターミナル出力を監視してください。
  • ターミナルが新しいステータスログを出力し続けている限り、タスクは正常に実行されています。デッドロックまたは無応答と誤って判断しないでください。
  • ステータスが長時間変化しない場合、またはスクリプトの出力が停止し、結果が返されない場合にのみ、再試行メカニズムのトリガーを検討できます。

🔧 OpenClaw適応ガイド

BrowserActタスクの実行には時間がかかる場合があるため(5〜20分)、AgentがOpenClaw環境で実行する場合は、次のことを行う必要があります。

  1. バックグラウンドモードで実行(execツールにJSONパラメータを使用):

    • command: "python3 -u ./scripts/reddit_competitor_analysis_api.py ..."
    • background: true
    • timeout: 1800
  2. または、yieldMsを増やす:

    • command: "python3 -u ./scripts/reddit_competitor_analysis_api.py ..."
    • yieldMs: 600000
    • timeout: 1800
  3. プロセスプールを使用して監視:

    • action: "poll"
    • sessionId: "xxx"
    • timeout: 300000

📊 データ出力の説明

正常に実行されると、スクリプトはAPIレスポンスから結果を直接解析して出力します。結果には以下が含まれます。

  • post_title: 投稿の完全なタイトル
  • publish_time: 投稿の公開時間
  • like_count: 投稿の賛成票数
  • comment_count: コメントの総数
  • publish_channel: 投稿が公開されたサブレディット
  • comment_author: コメント投稿者のユーザー名
  • comment_time_utc: コメントのタイムスタンプ
  • comments: コメントの全文
  • comment_upvotes: コメントの賛成票数
  • comment_level: コメントのネストレベル
  • comment_author_url: コメント投稿者のプロフィールへのリンク
  • reply_to: 返信先の親コメントまたは投稿

⚠️ エラー処理と再試行

スクリプトの実行中にエラーが発生した場合(ネットワークの変動やタスクの失敗など)、Agentは次のロジックに従う必要があります。

  1. 出力内容を確認する:

    • 出力に "Invalid authorization"含まれている場合、API Keyが無効または期限切れであることを意味します。この時点で、再試行せずに、ユーザーに再確認して正しいAPI Keyを提供するように指示してください。
    • 出力に "Invalid authorization"含まれていないが、タスクの実行に失敗した場合(たとえば、出力が Error: で始まるか、返された結果が空の場合)、Agentは自動的にスクリプトの再実行を試みる必要があります。
  2. 再試行制限:

    • 自動再試行は1回に制限されています。2回目の試行でも失敗した場合は、再試行を停止し、特定のエラーメッセージをユーザーに報告してください。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Reddit Competitor Analysis API Skill

📖 Introduction

This skill uses the BrowserAct Reddit Competitor Analysis API template to provide users with a one-stop Reddit data collection service. It can extract full post details and comments from Reddit search results. Just input search keywords and filtering conditions to directly get clean and usable Reddit data.

✨ Features

  1. No hallucinations, ensuring stable and precise data extraction: Pre-set workflows avoid AI generative hallucinations.
  2. No CAPTCHA issues: No need to handle reCAPTCHA or other verification challenges.
  3. No IP access restrictions or geofencing: No need to handle regional IP limitations.
  4. Faster execution: Compared to pure AI-driven browser automation solutions, task execution is faster.
  5. Extremely high cost-effectiveness: Significantly reduces data acquisition costs compared to highly token-consuming AI solutions.

🔑 API Key Guide

Before running, you must check the BROWSERACT_API_KEY environment variable. If it is not set, do not take any other actions; you should request and wait for the user to provide it collaboratively. The Agent must inform the user at this time:

"Since you have not configured the BrowserAct API Key, please go to the BrowserAct Console to get your Key first."

🛠️ Input Parameters

When calling the script, the Agent should flexibly configure the following parameters based on user needs:

  1. Keywords (Search keywords)

    • Type: string
    • Description: Search keywords for Reddit posts.
    • Example: openclaw
  2. Publication_date (Publication date)

    • Type: string
    • Description: Filter posts by publication date range.
    • Options: All time, Past year, Past month, Past week, Today, Past hour
    • Default: Past week
  3. Post_sort_by (Search sort)

    • Type: string
    • Description: Sort Reddit post search results by selected criteria.
    • Options: Relevance, Hot, Top, New, Comment count
    • Default: Relevance
  4. Comment_sort_by (Comment sort)

    • Type: string
    • Description: Sort extracted comments by.
    • Options: Best, Top, New, Controversial, Q&A
    • Default: Best
  5. Data_limit (Comments per post)

    • Type: number
    • Description: Maximum number of comments to extract per post.
    • Default: 10

🚀 Usage (Recommended)

The Agent should execute the following independent script to achieve "one-line command to get results". Note that the script path ./scripts/... is relative to this skill's directory:

# Example invocation
python3 -u ./scripts/reddit_competitor_analysis_api.py "keywords" "publication_date" "post_sort_by" "comment_sort_by" data_limit

⏳ Task Status Monitoring

Since this task involves automated browser operations, it may take a long time (several minutes). The script will continuously output status logs with timestamps (e.g., [14:30:05] Task Status: running) while running. Agent Must Know:

  • While waiting for the script to return results, please keep an eye on the terminal output.
  • As long as the terminal is still outputting new status logs, it means the task is running normally. Please do not mistakenly judge it as a deadlock or unresponsiveness.
  • Only if the status remains unchanged for a long time or the script stops outputting and no result is returned, you can consider triggering the retry mechanism.

🔧 OpenClaw Adaptation Guide

Since BrowserAct tasks may take a long time to run (5-20 minutes), when the Agent executes in the OpenClaw environment, it needs to:

  1. Run in background mode (using JSON parameters for exec tool):

    • command: "python3 -u ./scripts/reddit_competitor_analysis_api.py ..."
    • background: true
    • timeout: 1800
  2. Or increase yieldMs:

    • command: "python3 -u ./scripts/reddit_competitor_analysis_api.py ..."
    • yieldMs: 600000
    • timeout: 1800
  3. Use process poll to monitor:

    • action: "poll"
    • sessionId: "xxx"
    • timeout: 300000

📊 Data Output Description

After successful execution, the script will directly parse and print the results from the API response. The results include:

  • post_title: Full post title
  • publish_time: Post publication time
  • like_count: Number of upvotes on the post
  • comment_count: Total number of comments
  • publish_channel: Subreddit where the post was published
  • comment_author: Username of the commenter
  • comment_time_utc: Comment timestamp
  • comments: Full comment text
  • comment_upvotes: Number of upvotes on the comment
  • comment_level: Nesting level of the comment
  • comment_author_url: Link to the commenter's profile
  • reply_to: Parent comment or post being replied to

⚠️ Error Handling & Retry

During the execution of the script, if an error occurs (such as network fluctuation or task failure), the Agent should follow this logic:

  1. Check the output content:

    • If the output contains "Invalid authorization", it means the API Key is invalid or expired. At this time, do not retry, but guide the user to recheck and provide the correct API Key.
    • If the output does not contain "Invalid authorization" but the task execution fails (for example, the output starts with Error: or the returned result is empty), the Agent should automatically try to execute the script again.
  2. Retry limit:

    • Automatic retry is limited to one time. If the second attempt still fails, stop retrying and report the specific error message to the user.

同梱ファイル

※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。