All skills
resciencelab avatar

/reddit

@2aedb75
by ReScience Labresciencelab/opc-skills1.8k stars
169

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.

Use this Skill: https://skilld.dev/gh/resciencelab/opc-skills/reddit

This session only. Nothing lands on disk.

SKILL.md

≈46 tokens always: the name and description. ≈463 when used: this file. ≈133 more on demand in 1 file.

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

Sort Description Time Options
hot Trending posts (default) -
new Latest posts -
top Highest voted hour, day, week, month, year, all
rising Gaining traction -
controversial Mixed votes hour, day, week, month, year, all

API Info

Source: SKILL.md on GitHub

1 warning16d5 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    This skill allows the agent to search and retrieve information from Reddit. While it processes untrusted content from the internet that could contain malicious instructions, the skill's functionality is limited to reading and displaying data.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: MEDIUM · 1 issue

  • Runlayer7mo

    9 files scanned · No issues

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 2aedb75. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 hours ago.

Activeupdated 8 months ago
  • API
  • Python
  • reddit
  • scraping
  • posts
  • comments
  • subreddit
  • search

README badge

README badge for resciencelab/opc-skills/reddit

Searches and retrieves posts, comments, subreddit info, and user profiles from Reddit using the public JSON API without authentication. Use cases include gathering discussion context from specific subreddits, searching across Reddit for mentions of a topic, or pulling user profile data.

Generated from the current SKILL.md.

Do I need a Reddit API key or authentication?
No. The skill uses Reddit's public JSON API, which requires no API key or authentication.
What can I retrieve with this skill?
Posts and comments from subreddits, search results across Reddit, subreddit info and metadata, and user profiles with optional recent post history.
What sort and time filter options are available?
Sort by hot (default), new, top, rising, or controversial. Time filters (hour, day, week, month, year, all) apply only to top and controversial sorts.
Are there rate limits?
Yes. The public API enforces a 100 requests per minute rate limit.

Generated from the current SKILL.md. These answers refresh after source changes.