Get Reddit logo

Get Reddit

Community
iamneilroberts
get-reddit

Fetch a specific public Reddit post (title, body, and top comments) as clean markdown, by driving a real browser session (Playwright) — because Reddit 403s all non-browser fetches AND closed self-serve API access in Nov 2025. Use whenever you need the actual contents of a Reddit thread from a URL or post id — e.g. "fetch this Reddit post", "what does this thread say", "summarize this r/... discussion", or `/get-reddit <url>`. Runs in a forked Sonnet subagent that CANNOT see the conversation — always pass the Reddit URL/post id (and optional comment limit) as the skill argument.

Overview

Publisheriamneilroberts
Repositoryclaude-skills
Skill nameget-reddit
Stars
37
Forks
6
Bundled files
3
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by iamneilroberts on GitHub. Read the source before you install it.

Installation

Install the Get Reddit AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/iamneilroberts/claude-skills/tree/main/skills/get-reddit
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/iamneilroberts/claude-skills.git /tmp/claude-skills
mkdir -p .claude/skills
cp -r /tmp/claude-skills/skills/get-reddit .claude/skills/get-reddit
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Get Reddit in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Get Reddit on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Get Reddit is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

get-reddit (forked fetcher)

You are a subagent. Fetch ONE public Reddit post + its top comments and return a markdown summary. This is a single mechanical fetch, not a project — do NOT enter plan mode, brainstorm, or write a plan. Run the script, then summarize.

Target: $ARGUMENTS

That should be a full post URL, an old.reddit.com URL, a redd.it/<id> short link, or a bare base-36 post id — optionally followed by a comment limit (default 25, caps top-level comments sorted by score). If it is empty or contains no identifiable post reference, do nothing and return exactly: get-reddit: no Reddit URL/post id was passed as the skill argument — re-invoke /get-reddit with the URL.

Run it

bash
.claude/skills/get-reddit/get-reddit.sh <reddit-url-or-post-id> [comment_limit] | tee /tmp/get-reddit-<post-id>.md

The script lives in this skill's directory (project install: .claude/skills/get-reddit/; user install: ~/.claude/skills/get-reddit/). Always tee to a temp file as shown — the save offer below reuses it, so a save never refetches (Reddit rate-limits; see "Be gentle").

First run auto-installs Playwright + the Chromium binary (one-time, ~1–2 min; the browser binary is shared at ~/.cache/ms-playwright). Requires node and npm on PATH.

Env knobs:

  • GET_REDDIT_HEADLESS=0 — show the browser window. Use once if a fetch gets challenged; solving the challenge persists in the profile so later headless runs work.
  • GET_REDDIT_PROFILE=<dir> — override the persisted browser-profile dir (default .profile/ beside the script; gitignored).

Failure handling:

  • Exit 8 = HTTP 429 rate limit → wait ~15s, retry once. Don't loop over many threads.
  • Anti-bot HTML instead of JSON → the script exits non-zero; report it and suggest re-running once with GET_REDDIT_HEADLESS=0 to warm/solve the session. Don't thrash retries.

Why a browser, not curl or the API (in case you must debug)

Two independent walls (both verified 2026-06-30):

  1. Anti-bot: Reddit returns a 403 anti-bot HTML page to any non-browser client — .json, old.reddit, UA spoofing, and reader proxies all fail, from both datacenter and residential IPs.
  2. API closed: Reddit's Responsible Builder Policy (effective 2025-11-11) disabled self-serve API-app creation, so the OAuth path is effectively closed (pre-approval takes ~2–4 wk with high solo-dev rejection).

The script launches Chromium, parks the page on the post URL first (so the context is "warm" — session cookie set, real sec-ch-ua/sec-fetch-* headers stamped), then does an in-page same-origin fetch('<post>.json'). (the same browser-session technique works for other bot-protected sites.) No Reddit login or API key is needed. Post fetches work; Reddit's search endpoints are blocked even from a warm session (verified 2026-07-04) — don't try to bolt on search.

What to return (your final message)

Your final text is the deliverable relayed to the main conversation. Include, in order:

  1. Summary — title, r/<sub> · u/<author> · score · N comments, permalink; the post body's key points; the top comments worth reading, grouped by theme (keep scores). Faithful and concise — don't pad, don't editorialize.
  2. Tee'd file — the exact path of the raw fetched markdown (e.g. /tmp/get-reddit-<id>.md).
  3. Save offer — final line, verbatim format, for the main assistant to relay to the user: SAVE OFFER: raw thread at <tee-path>; offer to save to docs/research/reddit/<yyyy-mm-dd>-r-<subreddit>-<title-slug>.md (kebab-case title, ~6 words; prepend the summary as an intro; copy the tee'd file — never refetch).

Notes / limits

  • Read-only, top-level comments only (depth 1) — enough to "read the thread".
  • Be gentle: run sequentially, not in parallel.
  • The persisted profile (.profile/) and node_modules/ are gitignored.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Get Reddit AI skill do?

Fetch a specific public Reddit post (title, body, and top comments) as clean markdown, by driving a real browser session (Playwright) — because Reddit 403s all non-browser fetches AND closed self-serve API access in Nov 2025. Use whenever you need the actual contents of a Reddit thread from a URL or post id — e.g. "fetch this Reddit post", "what does this thread say", "summarize this r/... discussion", or `/get-reddit <url>`. Runs in a forked Sonnet subagent that CANNOT see the conversation — always pass the Reddit URL/post id (and optional comment limit) as the skill argument.

Why use Get Reddit on TypingMind?

Because you install it once and use it with any model. Get Reddit is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Get Reddit in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/iamneilroberts/claude-skills/tree/main/skills/get-reddit. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Get Reddit?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Get Reddit?

As many as you like. As long as a model supports skills, you can use Get Reddit with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Get Reddit AI skill free?

It is published on GitHub by iamneilroberts. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇