PluginBench
Skill
Review
Audit score 70

reddit

resciencelab/opc-skills

Search and retrieve Reddit posts, comments, subreddit info, and user profiles via the public JSON API.

What is reddit?

Access Reddit content without authentication using the public JSON API. Retrieve posts by subreddit or search, fetch comments, get subreddit metadata, and look up user profiles. Use this when the user mentions Reddit, a specific subreddit, or r/ links.

  • Fetch hot, new, top, rising, or controversial posts from any subreddit with customizable sorting and time filters
  • Search across Reddit for posts matching keywords, optionally scoped to specific subreddits
  • Retrieve subreddit information including description, subscriber count, and metadata
  • Get individual posts with associated comments (configurable comment count)
  • Look up user profiles and optionally include their recent posts

How to install reddit

npx skills add https://github.com/resciencelab/opc-skills --skill reddit
Claude Code
Cursor
Windsurf
Cline

How to use reddit

  1. 1.Run the quick check to verify the skill works: `python3 scripts/get_posts.py python --limit 3`
  2. 2.Use `get_posts.py` to fetch posts from a subreddit, specifying sort order (hot, new, top, rising, controversial) and optional time filter
  3. 3.Use `search_posts.py` to search across Reddit or within a specific subreddit by keyword
  4. 4.Use `get_subreddit.py` to retrieve metadata about a subreddit
  5. 5.Use `get_post.py` with a post ID to fetch a specific post and its comments
  6. 6.Use `get_user.py` to look up a user profile and optionally their recent posts

Use cases

Good for
  • Find trending discussions or recent posts in a specific subreddit like r/python or r/ClaudeAI
  • Search for posts about a topic across all of Reddit (e.g., 'AI agent', 'MCP server')
  • Get subreddit rules, description, and community stats before posting or recommending
  • Retrieve a specific post and its top comments for analysis or citation
  • Research a Reddit user's posting history and profile information
Who it's for
  • Researchers gathering Reddit data or community insights
  • Developers looking for discussions about specific tools or technologies
  • Content creators researching trending topics or community sentiment
  • Anyone needing to fetch public Reddit content programmatically

reddit FAQ

Do I need a Reddit API key or authentication?

No. Reddit's public JSON API requires no authentication or API key. The skill uses the public endpoints directly.

What is the rate limit?

The public API allows 100 requests per minute. Respect this limit to avoid temporary blocks.

How do I get a post ID to use with get_post.py?

Post IDs are returned by get_posts.py and search_posts.py. You can also extract them from Reddit URLs (e.g., reddit.com/r/python/comments/abc123/..., where 'abc123' is the ID).

Can I search within a specific subreddit?

Yes. Use `search_posts.py` with the `--subreddit` flag to limit results to a single subreddit (e.g., `--subreddit ClaudeAI`).

What sorting and time options are available?

Sort options are: hot (default), new, top, rising, and controversial. Time filters (hour, day, week, month, year, all) apply only to top and controversial sorts.

Full instructions (SKILL.md)

Source of truth, from resciencelab/opc-skills.


name: reddit description: Search and retrieve content from Reddit. Get posts, comments, subreddit info, and user profiles via the public JSON API. Use when user mentions Reddit, a subreddit, or r/ links.

Reddit Skill

Get posts, comments, subreddit info, and user profiles from Reddit via the public JSON API.

Prerequisites

No API key required! Reddit's public JSON API works without authentication.

Quick Check:

cd <skill_directory>
python3 scripts/get_posts.py python --limit 3

Commands

All commands run from the skill directory.

Subreddit Posts

python3 scripts/get_posts.py python --limit 20           # Hot posts (default)
python3 scripts/get_posts.py python --sort new --limit 20
python3 scripts/get_posts.py python --sort top --time week
python3 scripts/get_posts.py python --sort top --time all --limit 10

Search Posts

python3 scripts/search_posts.py "AI agent" --limit 20
python3 scripts/search_posts.py "MCP server" --subreddit ClaudeAI --limit 10
python3 scripts/search_posts.py "async python" --sort top --time year

Subreddit Info

python3 scripts/get_subreddit.py python
python3 scripts/get_subreddit.py ClaudeAI

Post & Comments

python3 scripts/get_post.py abc123                       # Get post by ID
python3 scripts/get_post.py abc123 --comments 50         # With more comments

User Profile

python3 scripts/get_user.py spez
python3 scripts/get_user.py spez --posts 10              # Include recent posts

Sort Options

SortDescriptionTime Options
hotTrending posts (default)-
newLatest posts-
topHighest votedhour, day, week, month, year, all
risingGaining traction-
controversialMixed voteshour, day, week, month, year, all

API Info