reddit

GitHub

通过Reddit公开JSON API检索帖子、评论、子版块及用户信息,支持按关键词搜索和多种排序方式,无需API密钥。

skills/reddit/SKILL.md ReScienceLab/opc-skills

Trigger Scenarios

用户提及Reddit或相关链接 需要获取特定子版块或用户的公开内容

Install

npx skills add ReScienceLab/opc-skills --skill reddit -g -y
More Options

Use without installing

npx skills use ReScienceLab/opc-skills@reddit

指定 Agent (Claude Code)

npx skills add ReScienceLab/opc-skills --skill reddit -a claude-code -g -y

安装 repo 全部 skill

npx skills add ReScienceLab/opc-skills --all -g -y

预览 repo 内 skill

npx skills add ReScienceLab/opc-skills --list

SKILL.md

Frontmatter
{
    "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

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

Version History

  • bbee097 Current 2026-08-20 08:51

Same Skill Collection

.agents/skills/seo-geo/SKILL.md
skills/archive/SKILL.md
skills/banner-creator/SKILL.md
skills/domain-hunter/SKILL.md
skills/logo-creator/SKILL.md
skills/nanobanana/SKILL.md
skills/requesthunt/SKILL.md
skills/seo-geo/SKILL.md
skills/twitter/SKILL.md
template/SKILL.md
.factory/skills/add-new-opc-skill/SKILL.md

Metadata

Files
0
Version
bbee097
Hash
4bc0f3ff
Indexed
2026-08-20 08:51

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 13:40
浙ICP备14020137号-1 $mapa de visitantes$