Skills search-reddit
Search Reddit in real time using OpenAI web_search with enrichment (engagement + top comments). Use when you need recent Reddit threads, subreddit-filtered results, or quick link lists.
install
source · Clone the upstream repo
git clone https://github.com/openclaw/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/arkaydeus/search-reddit" ~/.claude/skills/openclaw-skills-search-reddit && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/arkaydeus/search-reddit" ~/.openclaw/skills/openclaw-skills-search-reddit && rm -rf "$T"
manifest:
skills/arkaydeus/search-reddit/SKILL.mdsource content
Search Reddit
Real-time Reddit search powered by OpenAI web_search with post enrichment (score, comments, and top comment excerpts).
Setup
Set your OpenAI API key:
clawdbot config set skills.entries.search-reddit.apiKey "sk-YOUR-KEY"
Or use environment variable:
export OPENAI_API_KEY="sk-YOUR-KEY"
You can also set a shared key:
clawdbot config set skills.entries.openai.apiKey "sk-YOUR-KEY"
Commands
Basic Search
node {baseDir}/scripts/search.js "Claude Code tips"
Filter by Time
node {baseDir}/scripts/search.js --days 7 "AI news"
Filter by Subreddit
node {baseDir}/scripts/search.js --subreddits machinelearning,openai "agents" node {baseDir}/scripts/search.js --exclude bots "real discussions"
Output Options
node {baseDir}/scripts/search.js --json "topic" # JSON results node {baseDir}/scripts/search.js --compact "topic" # Minimal output node {baseDir}/scripts/search.js --links-only "topic" # Only Reddit links
Example Usage in Chat
User: "Search Reddit for what people are saying about Claude Code" Action: Run search with query "Claude Code"
User: "Find posts in r/OpenAI from the last week" Action: Run search with --subreddits openai --days 7
User: "Get Reddit links about Kimi K2.5" Action: Run search with --links-only "Kimi K2.5"
How It Works
Uses OpenAI Responses API (
/v1/responses) with the web_search tool:
- Allowed domain:
reddit.com - Enriches each thread by fetching Reddit JSON (
)/r/.../comments/.../.json - Updates the date from
and filters to last N dayscreated_utc - Computes engagement and top comment excerpts
Environment Variables
- OpenAI API key (required)OPENAI_API_KEY
- Model override (default: gpt-5.2)SEARCH_REDDIT_MODEL
- Default days to search (default: 30)SEARCH_REDDIT_DAYS