Reddit automation

From Zidong-LLC/BIBLIOTECA · View interactive version

Reddit automation is an AI agent skill from the GitHub repository Zidong-LLC/BIBLIOTECA. Automate Reddit tasks via Rube MCP (Composio): search subreddits, create posts, manage comments, and browse top content. Always search tools first for current schemas.

How to use this skill

Skill file

Reddit Automation via Rube MCP

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

Prerequisites

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:

Pitfalls:

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:

Pitfalls:

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:

Pitfalls:

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:

Pitfalls:

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:

Pitfalls:

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

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:

Content Rules:

ID Formats:

Text Formatting:

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.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.