reddit-researcher
БесплатноЗапускает вложенные скриптыНе проверенSearch and read public Reddit posts, subreddits, and comments via the unauthenticated JSON API. Safe read-only access with SSRF-prevention hostname allowlist.
от oimiragieo★ 48 звёзд на GitHubОб этом скилле
Reddit Researcher Skill
Purpose
Fetch and analyze public Reddit content without authentication using the Reddit public JSON API. Enables research agents to read subreddit posts, search Reddit globally or within a subreddit, and fetch individual post comments — all through the stable .json endpoint pattern.
No API key. No OAuth. No registration. Reddit's public JSON API is accessible anonymously for read-only operations.
When to Use
- Researching community sentiment on a topic
- Finding relevant discussions in a specific subreddit
- Gathering examples, opinions, or use cases from Reddit
- Monitoring a subreddit for recent posts
- Fetching comments on a specific post for analysis
Iron Laws
- ALWAYS validate Reddit URLs against the allowlist before WebFetch — only
reddit.com,www.reddit.com, andold.reddit.comare permitted; reject anything else to prevent SSRF attacks. - ALWAYS append
.jsonto Reddit URLs before fetching — never fetch HTML pages; the.jsonsuffix returns structured data that can be parsed reliably. - ALWAYS include a User-Agent header — Reddit blocks requests without a proper User-Agent; use
agent-studio-reddit-researcher/1.0. - NEVER make more than 10 WebFetch calls per minute — unauthenticated rate limit is 10 req/min; add 1-2 second delays for multi-call workflows; search endpoints are more restrictive (~3-5 req/min).
- NEVER write to Reddit — this skill is strictly read-only; no POST requests, no upvoting, no commenting, no authentication flows.
API Reference
| Endpoint | Description | Notes |
|---|---|---|
https://www.reddit.com/r/{sub}.json |
Hot posts in subreddit | Default sort: hot |
https://www.reddit.com/r/{sub}/hot.json |
Hot posts (explicit) | |
https://www.reddit.com/r/{sub}/new.json |
New posts | |
https://www.reddit.com/r/{sub}/top.json?t=week |
Top posts by time | t=hour/day/week/month/year/all |
https://www.reddit.com/r/{sub}/about.json |
Subreddit metadata | subscriber count, description |
https://www.reddit.com/search.json?q={query} |
Global search | |
https://www.reddit.com/r/{sub}/search.json?q={query}&restrict_sr=1 |
Subreddit-scoped search | |
https://www.reddit.com/r/{sub}/comments/{id}.json |
Post with comments | Returns array[2]: post + comments |
Query Parameters:
limit— number of results (max 100, default 25; keep at 25 or less to stay within rate limits)after/before— pagination cursors (t3_postidformat)t— time filter for/top:hour,day,week,month,year,allrestrict_sr=1— restrict search to current subreddit
Required Headers:
User-Agent: agent-studio-reddit-researcher/1.0
SSRF Guard Pattern
Always validate URLs using new URL().hostname before passing to WebFetch. Do not use regex or string-contains matching — those fail on encoded URLs and normalization tricks.
const ALLOWED_REDDIT_HOSTS = new Set(['reddit.com', 'www.reddit.com', 'old.reddit.com']);
function validateRedditUrl(href) {
let parsed;
try {
parsed = new URL(href);
} catch {
throw new Error('Invalid URL');
}
if (!['http:', 'https:'].includes(parsed.protocol)) {
throw new Error('Only http/https allowed');
}
if (!ALLOWED_REDDIT_HOSTS.has(parsed.hostname)) {
throw new Error(`Hostname ${parsed.hostname} not in allowlist`);
}
return parsed.href;
}
Additional blocks (OWASP-recommended):
- Block
file://,gopher://,dict://schemes - Block
127.0.0.1,localhost,0.0.0.0 - Block
169.254.169.254(AWS/cloud metadata endpoint)
Rate Limit Guidance
| Endpoint Type | Limit | Notes |
|---|---|---|
| General listing endpoints | 10 req/min | Rolling window |
| Search endpoints | ~3-5 req/min | More restrictive |
| WebFetch built-in cache | 15-min TTL | Repeated calls to same URL are free |
Safe multi-call pattern: Add 1-2 second delays between calls. Use limit=25 to get enough results per call without needing rapid pagination.
Response Structure
Post listing (data.children[].data):
{
"id": "abc123",
"title
Установить reddit-researcher в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
WebFetchWebSearchВложенные файлы
FAQ
Что делает скилл reddit-researcher?
Search and read public Reddit posts, subreddits, and comments via the unauthenticated JSON API. Safe read-only access with SSRF-prevention hostname allowlist.
Как установить скилл reddit-researcher?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл reddit-researcher запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic