jpskill.com
🛠️ 開発・MCP コミュニティ 🔴 エンジニア向け 👤 エンジニア・AI開発者

🛠️ Reddit Automation

reddit-automation

Redditでの情報収集や投稿、コメント管理といった??

⏱ コードレビュー 1時間 → 10分

📺 まず動画で見る(YouTube)

▶ 【衝撃】最強のAIエージェント「Claude Code」の最新機能・使い方・プログラミングをAIで効率化する超実践術を解説! ↗

※ jpskill.com 編集部が参考用に選んだ動画です。動画の内容と Skill の挙動は厳密には一致しないことがあります。

📜 元の英語説明(参考)

Automate Reddit tasks via Rube MCP (Composio): search subreddits, create posts, manage comments, and browse top content. Always search tools first for current schemas.

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

一言でいうと

Redditでの情報収集や投稿、コメント管理といった??

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

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

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

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

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

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して reddit-automation.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → reddit-automation フォルダができる
  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-17
取得日時
2026-05-17
同梱ファイル
1

💬 こう話しかけるだけ — サンプルプロンプト

  • Reddit Automation を使って、最小構成のサンプルコードを示して
  • Reddit Automation の主な使い方と注意点を教えて
  • Reddit Automation を既存プロジェクトに組み込む方法を教えて

これをClaude Code に貼るだけで、このSkillが自動発動します。

📖 Skill本文(日本語訳)

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

[Skill 名] reddit-automation

Rube MCP を介した Reddit 自動化

Composio の Reddit ツールキットを Rube MCP を介して使用し、Reddit の操作を自動化します。

前提条件

  • Rube MCP が接続されている必要があります(RUBE_SEARCH_TOOLS が利用可能であること)
  • ツールキット reddit を使用した RUBE_MANAGE_CONNECTIONS によるアクティブな Reddit 接続
  • 現在のツールスキーマを取得するために、常に最初に RUBE_SEARCH_TOOLS を呼び出してください

セットアップ

Rube MCP の取得: クライアント設定で https://rube.app/mcp を MCP サーバーとして追加してください。API キーは不要です。エンドポイントを追加するだけで機能します。

  1. RUBE_SEARCH_TOOLS が応答することを確認して、Rube MCP が利用可能であることを検証します。
  2. ツールキット reddit を指定して RUBE_MANAGE_CONNECTIONS を呼び出します。
  3. 接続が ACTIVE でない場合、返された認証リンクに従って Reddit OAuth を完了します。
  4. ワークフローを実行する前に、接続ステータスが ACTIVE と表示されていることを確認します。

コアワークフロー

1. Reddit を検索する

使用する状況: ユーザーが複数のサブレディットで投稿を検索したい場合

ツールシーケンス:

  1. REDDIT_SEARCH_ACROSS_SUBREDDITS - クエリに一致する投稿を検索します [必須]

主要なパラメーター:

  • query: 検索語
  • subreddit: 検索を特定のサブレディットに限定します (オプション)
  • sort: 結果を「relevance」、「hot」、「top」、「new」、「comments」でソートします
  • time_filter: 期間(「hour」、「day」、「week」、「month」、「year」、「all」)
  • limit: 返す結果の数

落とし穴:

  • インデックス作成の遅延により、検索結果に非常に新しい投稿が含まれない場合があります。
  • time_filter パラメーターは、特定のソートオプションでのみ機能します。
  • 結果はページ分割されます。追加のページには after/before トークンを使用してください。
  • NSFW コンテンツはアカウント設定に基づいてフィルタリングされる場合があります。

2. 投稿を作成する

使用する状況: ユーザーがサブレディットに新しい投稿を送信したい場合

ツールシーケンス:

  1. REDDIT_LIST_SUBREDDIT_POST_FLAIRS - 利用可能な投稿フレアを取得します [オプション]
  2. REDDIT_CREATE_REDDIT_POST - 投稿を送信します [必須]

主要なパラメーター:

  • subreddit: ターゲットのサブレディット名(「r/」プレフィックスなし)
  • title: 投稿のタイトル
  • text: 投稿の本文テキスト(テキスト投稿の場合)
  • url: リンクの URL(リンク投稿の場合)
  • flair_id: サブレディットのフレアリストからのフレア ID

落とし穴:

  • 一部のサブレディットではフレアが必要です。最初に LIST_SUBREDDIT_POST_FLAIRS を使用してください。
  • サブレディットの投稿ルールは大きく異なります。カルマ/年齢制限が適用される場合があります。
  • texturl は相互に排他的です。投稿はテキストまたはリンクのいずれかです。
  • レート制限が適用されます。連続した投稿の作成を避けてください。
  • サブレディット名には「r/」プレフィックスを含めないでください。

3. コメントを管理する

使用する状況: ユーザーが投稿にコメントしたり、既存のコメントを管理したりしたい場合

ツールシーケンス:

  1. REDDIT_RETRIEVE_POST_COMMENTS - 投稿のコメントを取得します [オプション]
  2. REDDIT_POST_REDDIT_COMMENT - 投稿にコメントを追加したり、コメントに返信したりします [必須]
  3. REDDIT_EDIT_REDDIT_COMMENT_OR_POST - 既存のコメントを編集します [オプション]
  4. REDDIT_DELETE_REDDIT_COMMENT - コメントを削除します [オプション]

主要なパラメーター:

  • post_id: 投稿の ID(取得またはコメント用)
  • parent_id: 親のフルネーム(例: 投稿の場合は 't3_abc123'、コメントの場合は 't1_xyz789')
  • body: コメントのテキストコンテンツ
  • thing_id: 編集または削除するアイテムのフルネーム

落とし穴:

  • Reddit は「fullname」形式を使用します。コメントには「t1」プレフィックス、投稿には「t3」プレフィックスが付きます。
  • 編集はコメント本文全体を置き換えます。希望するすべてのコンテンツを含めてください。
  • 削除されたコメントは「[deleted]」と表示されますが、ツリー構造は残ります。
  • 一部のサブレディットではコメントの深さ制限が適用される場合があります。

4. サブレディットコンテンツを閲覧する

使用する状況: ユーザーがサブレディットのトップまたはトレンドのコンテンツを閲覧したい場合

ツールシーケンス:

  1. REDDIT_GET_R_TOP - サブレディットのトップ投稿を取得します [必須]
  2. REDDIT_GET - サブレディットのエンドポイントから投稿を取得します [代替]
  3. REDDIT_RETRIEVE_REDDIT_POST - 特定の投稿の完全な詳細を取得します [オプション]

主要なパラメーター:

  • subreddit: サブレディット名
  • time_filter: トップ投稿の期間(「hour」、「day」、「week」、「month」、「year」、「all」)
  • limit: 取得する投稿の数
  • post_id: 完全な詳細を取得する特定の投稿 ID

落とし穴:

  • time_filter='all' を指定したトップ投稿は、史上最高のコンテンツを返します。
  • 投稿の詳細には本文が含まれますが、コメントには別途呼び出しが必要です。
  • 一部の投稿はサブレディットのルールに基づいて削除または非表示になる場合があります。
  • NSFW 投稿は、アカウントレベルでフィルタリングされない限り含まれます。

5. 投稿を管理する

使用する状況: ユーザーが自分の投稿を編集または削除したい場合

ツールシーケンス:

  1. REDDIT_EDIT_REDDIT_COMMENT_OR_POST - 投稿のテキストコンテンツを編集します [オプション]
  2. REDDIT_DELETE_REDDIT_POST - 投稿を削除します [オプション]
  3. REDDIT_GET_USER_FLAIR - サブレディットでのユーザーのフレアを取得します [オプション]

主要なパラメーター:

  • thing_id: 投稿のフルネーム(例: 't3_abc123')
  • body: 新しいテキストコンテンツ(編集用)
  • subreddit: サブレディット名(フレア用)

落とし穴:

  • テキスト投稿のみ本文を編集できます。リンク投稿は変更できません。
  • 投稿のタイトルは送信後に編集できません。
  • 削除は永続的です。削除された投稿は「[deleted]」と表示されます。
  • ユーザーフレアはサブレディットごとに異なり、制限される場合があります。

一般的なパターン

Reddit フルネーム形式

プレフィックス:

t1_ = コメント (例: 't1_abc123')
t2_ = アカウント (例: 't2_xyz789')
t3_ = 投稿/リンク (例: 't3_def456')
t4_ = メッセージ
t5_ = サブレディット

使用方法:

1. 投稿を取得してそのフルネーム (t3_XXXXX) を取得します。
2. コメントする際にフルネームを parent_id として使用します。
3. 編集/削除する際にフルネームを thing_id として使用します。

ページネーション

  • Reddit は「after」および「before」トークンを使用したカーソルベースのページネーションを使用します。
  • ページあたりのアイテム数には limit を設定します(最大 100)。
  • 応答で after トークンを確認します。
  • 次のページを取得するために、後続のリクエストで after の値を渡します。

フレアの解決

1. サブレディット名を指定して REDDIT_LIST_SUBREDDIT_POST_FLAIRS を呼び出します。
2. テキストまたはカテゴリで一致するフレアを見つけます。
3. flair_id を抽出します。
4. 投稿を作成する際に flair_id を含めます。

既知の落とし穴

レート制限:

  • Reddit はアカウントごと、OAuth アプリごとにレート制限を適用します。
  • 新しいアカウントの場合、投稿は約 10 分に 1 回に制限されます。
  • コメントにも同様の、しかしより制限の少ない制限があります。
  • 429 エラーが発生した場合は、指数バックオフをトリガーする必要があります。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Reddit Automation via Rube MCP

Automate Reddit operations through Composio's Reddit toolkit via Rube MCP.

Prerequisites

  • Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
  • Active Reddit connection via RUBE_MANAGE_CONNECTIONS with toolkit reddit
  • Always call RUBE_SEARCH_TOOLS first to get current tool schemas

Setup

Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.

  1. Verify Rube MCP is available by confirming RUBE_SEARCH_TOOLS responds
  2. Call RUBE_MANAGE_CONNECTIONS with toolkit reddit
  3. If connection is not ACTIVE, follow the returned auth link to complete Reddit OAuth
  4. Confirm connection status shows ACTIVE before running any workflows

Core Workflows

1. Search Reddit

When to use: User wants to find posts across subreddits

Tool sequence:

  1. REDDIT_SEARCH_ACROSS_SUBREDDITS - Search for posts matching a query [Required]

Key parameters:

  • query: Search terms
  • subreddit: Limit search to a specific subreddit (optional)
  • sort: Sort results by 'relevance', 'hot', 'top', 'new', 'comments'
  • time_filter: Time range ('hour', 'day', 'week', 'month', 'year', 'all')
  • limit: Number of results to return

Pitfalls:

  • Search results may not include very recent posts due to indexing delay
  • The time_filter parameter only works with certain sort options
  • Results are paginated; use after/before tokens for additional pages
  • NSFW content may be filtered based on account settings

2. Create Posts

When to use: User wants to submit a new post to a subreddit

Tool sequence:

  1. REDDIT_LIST_SUBREDDIT_POST_FLAIRS - Get available post flairs [Optional]
  2. REDDIT_CREATE_REDDIT_POST - Submit the post [Required]

Key parameters:

  • subreddit: Target subreddit name (without 'r/' prefix)
  • title: Post title
  • text: Post body text (for text posts)
  • url: Link URL (for link posts)
  • flair_id: Flair ID from the subreddit's flair list

Pitfalls:

  • Some subreddits require flair; use LIST_SUBREDDIT_POST_FLAIRS first
  • Subreddit posting rules vary widely; karma/age restrictions may apply
  • Text and URL are mutually exclusive; a post is either text or link
  • Rate limits apply; avoid rapid successive post creation
  • The subreddit name should not include 'r/' prefix

3. Manage Comments

When to use: User wants to comment on posts or manage existing comments

Tool sequence:

  1. REDDIT_RETRIEVE_POST_COMMENTS - Get comments on a post [Optional]
  2. REDDIT_POST_REDDIT_COMMENT - Add a comment to a post or reply to a comment [Required]
  3. REDDIT_EDIT_REDDIT_COMMENT_OR_POST - Edit an existing comment [Optional]
  4. REDDIT_DELETE_REDDIT_COMMENT - Delete a comment [Optional]

Key parameters:

  • post_id: ID of the post (for retrieving or commenting on)
  • parent_id: Full name of the parent (e.g., 't3_abc123' for post, 't1_xyz789' for comment)
  • body: Comment text content
  • thing_id: Full name of the item to edit or delete

Pitfalls:

  • Reddit uses 'fullname' format: 't1' prefix for comments, 't3' for posts
  • Editing replaces the entire comment body; include all desired content
  • Deleted comments show as '[deleted]' but the tree structure remains
  • Comment depth limits may apply in some subreddits

4. Browse Subreddit Content

When to use: User wants to view top or trending content from a subreddit

Tool sequence:

  1. REDDIT_GET_R_TOP - Get top posts from a subreddit [Required]
  2. REDDIT_GET - Get posts from a subreddit endpoint [Alternative]
  3. REDDIT_RETRIEVE_REDDIT_POST - Get full details for a specific post [Optional]

Key parameters:

  • subreddit: Subreddit name
  • time_filter: Time range for top posts ('hour', 'day', 'week', 'month', 'year', 'all')
  • limit: Number of posts to retrieve
  • post_id: Specific post ID for full details

Pitfalls:

  • Top posts with time_filter='all' returns all-time top content
  • Post details include the body text but comments require a separate call
  • Some posts may be removed or hidden based on subreddit rules
  • NSFW posts are included unless filtered at the account level

5. Manage Posts

When to use: User wants to edit or delete their own posts

Tool sequence:

  1. REDDIT_EDIT_REDDIT_COMMENT_OR_POST - Edit a post's text content [Optional]
  2. REDDIT_DELETE_REDDIT_POST - Delete a post [Optional]
  3. REDDIT_GET_USER_FLAIR - Get user's flair in a subreddit [Optional]

Key parameters:

  • thing_id: Full name of the post (e.g., 't3_abc123')
  • body: New text content (for editing)
  • subreddit: Subreddit name (for flair)

Pitfalls:

  • Only text posts can have their body edited; link posts cannot be modified
  • Post titles cannot be edited after submission
  • Deletion is permanent; deleted posts show as '[deleted]'
  • User flair is per-subreddit and may be restricted

Common Patterns

Reddit Fullname Format

Prefixes:

t1_ = Comment (e.g., 't1_abc123')
t2_ = Account (e.g., 't2_xyz789')
t3_ = Post/Link (e.g., 't3_def456')
t4_ = Message
t5_ = Subreddit

Usage:

1. Retrieve a post to get its fullname (t3_XXXXX)
2. Use fullname as parent_id when commenting
3. Use fullname as thing_id when editing/deleting

Pagination

  • Reddit uses cursor-based pagination with 'after' and 'before' tokens
  • Set limit for items per page (max 100)
  • Check response for after token
  • Pass after value in subsequent requests to get next page

Flair Resolution

1. Call REDDIT_LIST_SUBREDDIT_POST_FLAIRS with subreddit name
2. Find matching flair by text or category
3. Extract flair_id
4. Include flair_id when creating the post

Known Pitfalls

Rate Limits:

  • Reddit enforces rate limits per account and per OAuth app
  • Posting is limited to approximately 1 post per 10 minutes for new accounts
  • Commenting has similar but less restrictive limits
  • 429 errors should trigger exponential backoff

Content Rules:

  • Each subreddit has its own posting rules and requirements
  • Some subreddits are restricted or private
  • Karma requirements may prevent posting in certain subreddits
  • Auto-moderator rules may remove posts that match certain patterns

ID Formats:

  • Always use fullname format (with prefix) for parent_id and thing_id
  • Raw IDs without prefix will cause 'Invalid ID' errors
  • Post IDs from search results may need 't3_' prefix added

Text Formatting:

  • Reddit uses Markdown for post and comment formatting
  • Code blocks, tables, and headers are supported
  • Links use text format
  • Mention users with u/username, subreddits with r/subreddit

Quick Reference

Task Tool Slug Key Params
Search Reddit REDDIT_SEARCH_ACROSS_SUBREDDITS query, subreddit, sort, time_filter
Create post REDDIT_CREATE_REDDIT_POST subreddit, title, text/url
Get post comments REDDIT_RETRIEVE_POST_COMMENTS post_id
Add comment REDDIT_POST_REDDIT_COMMENT parent_id, body
Edit comment/post REDDIT_EDIT_REDDIT_COMMENT_OR_POST thing_id, body
Delete comment REDDIT_DELETE_REDDIT_COMMENT thing_id
Delete post REDDIT_DELETE_REDDIT_POST thing_id
Get top posts REDDIT_GET_R_TOP subreddit, time_filter, limit
Browse subreddit REDDIT_GET subreddit
Get post details REDDIT_RETRIEVE_REDDIT_POST post_id
Get specific comment REDDIT_RETRIEVE_SPECIFIC_COMMENT comment_id
List post flairs REDDIT_LIST_SUBREDDIT_POST_FLAIRS subreddit
Get user flair REDDIT_GET_USER_FLAIR subreddit

When to Use

This skill is applicable to execute the workflow or actions described in the overview.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.