Index of every page on this site: llms.txt
All skills
resciencelab avatar

/reddit

@eafdef7
by ReScience Labresciencelab/opc-skills1.9k stars
172
Run it yourself

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

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

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

Description uses 2.3% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈186 characters, or 2.3%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

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

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning2mo5 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    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.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: MEDIUM · 1 issue

  • Runlayer8mo

    9 files scanned · No issues

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

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

Last checked against GitHub yesterday.

Activeupdated 9 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.