Automate Reddit tasks via Rube MCP (Composio): search subreddits, create posts, manage comments, and browse top content. Always search tools first for current schemas.
Add this skill
npx mdskills install sickn33/reddit-automationComprehensive Reddit automation guide with clear workflows, edge cases, and useful quick reference table
1---2name: reddit-automation3description: "Automate Reddit tasks via Rube MCP (Composio): search subreddits, create posts, manage comments, and browse top content. Always search tools first for current schemas."4requires:5 mcp: [rube]6---78# Reddit Automation via Rube MCP910Automate Reddit operations through Composio's Reddit toolkit via Rube MCP.1112## Prerequisites1314- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)15- Active Reddit connection via `RUBE_MANAGE_CONNECTIONS` with toolkit `reddit`16- Always call `RUBE_SEARCH_TOOLS` first to get current tool schemas1718## Setup1920**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.2122231. Verify Rube MCP is available by confirming `RUBE_SEARCH_TOOLS` responds242. Call `RUBE_MANAGE_CONNECTIONS` with toolkit `reddit`253. If connection is not ACTIVE, follow the returned auth link to complete Reddit OAuth264. Confirm connection status shows ACTIVE before running any workflows2728## Core Workflows2930### 1. Search Reddit3132**When to use**: User wants to find posts across subreddits3334**Tool sequence**:351. `REDDIT_SEARCH_ACROSS_SUBREDDITS` - Search for posts matching a query [Required]3637**Key parameters**:38- `query`: Search terms39- `subreddit`: Limit search to a specific subreddit (optional)40- `sort`: Sort results by 'relevance', 'hot', 'top', 'new', 'comments'41- `time_filter`: Time range ('hour', 'day', 'week', 'month', 'year', 'all')42- `limit`: Number of results to return4344**Pitfalls**:45- Search results may not include very recent posts due to indexing delay46- The `time_filter` parameter only works with certain sort options47- Results are paginated; use after/before tokens for additional pages48- NSFW content may be filtered based on account settings4950### 2. Create Posts5152**When to use**: User wants to submit a new post to a subreddit5354**Tool sequence**:551. `REDDIT_LIST_SUBREDDIT_POST_FLAIRS` - Get available post flairs [Optional]562. `REDDIT_CREATE_REDDIT_POST` - Submit the post [Required]5758**Key parameters**:59- `subreddit`: Target subreddit name (without 'r/' prefix)60- `title`: Post title61- `text`: Post body text (for text posts)62- `url`: Link URL (for link posts)63- `flair_id`: Flair ID from the subreddit's flair list6465**Pitfalls**:66- Some subreddits require flair; use LIST_SUBREDDIT_POST_FLAIRS first67- Subreddit posting rules vary widely; karma/age restrictions may apply68- Text and URL are mutually exclusive; a post is either text or link69- Rate limits apply; avoid rapid successive post creation70- The subreddit name should not include 'r/' prefix7172### 3. Manage Comments7374**When to use**: User wants to comment on posts or manage existing comments7576**Tool sequence**:771. `REDDIT_RETRIEVE_POST_COMMENTS` - Get comments on a post [Optional]782. `REDDIT_POST_REDDIT_COMMENT` - Add a comment to a post or reply to a comment [Required]793. `REDDIT_EDIT_REDDIT_COMMENT_OR_POST` - Edit an existing comment [Optional]804. `REDDIT_DELETE_REDDIT_COMMENT` - Delete a comment [Optional]8182**Key parameters**:83- `post_id`: ID of the post (for retrieving or commenting on)84- `parent_id`: Full name of the parent (e.g., 't3_abc123' for post, 't1_xyz789' for comment)85- `body`: Comment text content86- `thing_id`: Full name of the item to edit or delete8788**Pitfalls**:89- Reddit uses 'fullname' format: 't1_' prefix for comments, 't3_' for posts90- Editing replaces the entire comment body; include all desired content91- Deleted comments show as '[deleted]' but the tree structure remains92- Comment depth limits may apply in some subreddits9394### 4. Browse Subreddit Content9596**When to use**: User wants to view top or trending content from a subreddit9798**Tool sequence**:991. `REDDIT_GET_R_TOP` - Get top posts from a subreddit [Required]1002. `REDDIT_GET` - Get posts from a subreddit endpoint [Alternative]1013. `REDDIT_RETRIEVE_REDDIT_POST` - Get full details for a specific post [Optional]102103**Key parameters**:104- `subreddit`: Subreddit name105- `time_filter`: Time range for top posts ('hour', 'day', 'week', 'month', 'year', 'all')106- `limit`: Number of posts to retrieve107- `post_id`: Specific post ID for full details108109**Pitfalls**:110- Top posts with time_filter='all' returns all-time top content111- Post details include the body text but comments require a separate call112- Some posts may be removed or hidden based on subreddit rules113- NSFW posts are included unless filtered at the account level114115### 5. Manage Posts116117**When to use**: User wants to edit or delete their own posts118119**Tool sequence**:1201. `REDDIT_EDIT_REDDIT_COMMENT_OR_POST` - Edit a post's text content [Optional]1212. `REDDIT_DELETE_REDDIT_POST` - Delete a post [Optional]1223. `REDDIT_GET_USER_FLAIR` - Get user's flair in a subreddit [Optional]123124**Key parameters**:125- `thing_id`: Full name of the post (e.g., 't3_abc123')126- `body`: New text content (for editing)127- `subreddit`: Subreddit name (for flair)128129**Pitfalls**:130- Only text posts can have their body edited; link posts cannot be modified131- Post titles cannot be edited after submission132- Deletion is permanent; deleted posts show as '[deleted]'133- User flair is per-subreddit and may be restricted134135## Common Patterns136137### Reddit Fullname Format138139**Prefixes**:140```141t1_ = Comment (e.g., 't1_abc123')142t2_ = Account (e.g., 't2_xyz789')143t3_ = Post/Link (e.g., 't3_def456')144t4_ = Message145t5_ = Subreddit146```147148**Usage**:149```1501. Retrieve a post to get its fullname (t3_XXXXX)1512. Use fullname as parent_id when commenting1523. Use fullname as thing_id when editing/deleting153```154155### Pagination156157- Reddit uses cursor-based pagination with 'after' and 'before' tokens158- Set `limit` for items per page (max 100)159- Check response for `after` token160- Pass `after` value in subsequent requests to get next page161162### Flair Resolution163164```1651. Call REDDIT_LIST_SUBREDDIT_POST_FLAIRS with subreddit name1662. Find matching flair by text or category1673. Extract flair_id1684. Include flair_id when creating the post169```170171## Known Pitfalls172173**Rate Limits**:174- Reddit enforces rate limits per account and per OAuth app175- Posting is limited to approximately 1 post per 10 minutes for new accounts176- Commenting has similar but less restrictive limits177- 429 errors should trigger exponential backoff178179**Content Rules**:180- Each subreddit has its own posting rules and requirements181- Some subreddits are restricted or private182- Karma requirements may prevent posting in certain subreddits183- Auto-moderator rules may remove posts that match certain patterns184185**ID Formats**:186- Always use fullname format (with prefix) for parent_id and thing_id187- Raw IDs without prefix will cause 'Invalid ID' errors188- Post IDs from search results may need 't3_' prefix added189190**Text Formatting**:191- Reddit uses Markdown for post and comment formatting192- Code blocks, tables, and headers are supported193- Links use `[text](url)` format194- Mention users with `u/username`, subreddits with `r/subreddit`195196## Quick Reference197198| Task | Tool Slug | Key Params |199|------|-----------|------------|200| Search Reddit | REDDIT_SEARCH_ACROSS_SUBREDDITS | query, subreddit, sort, time_filter |201| Create post | REDDIT_CREATE_REDDIT_POST | subreddit, title, text/url |202| Get post comments | REDDIT_RETRIEVE_POST_COMMENTS | post_id |203| Add comment | REDDIT_POST_REDDIT_COMMENT | parent_id, body |204| Edit comment/post | REDDIT_EDIT_REDDIT_COMMENT_OR_POST | thing_id, body |205| Delete comment | REDDIT_DELETE_REDDIT_COMMENT | thing_id |206| Delete post | REDDIT_DELETE_REDDIT_POST | thing_id |207| Get top posts | REDDIT_GET_R_TOP | subreddit, time_filter, limit |208| Browse subreddit | REDDIT_GET | subreddit |209| Get post details | REDDIT_RETRIEVE_REDDIT_POST | post_id |210| Get specific comment | REDDIT_RETRIEVE_SPECIFIC_COMMENT | comment_id |211| List post flairs | REDDIT_LIST_SUBREDDIT_POST_FLAIRS | subreddit |212| Get user flair | REDDIT_GET_USER_FLAIR | subreddit |213
Full transparency — inspect the skill content before installing.