Skip to content
Back to skills

Reddit

ASecurity

Submit posts (link or text) to subreddits and read your Reddit identity / content via the Reddit API. Use when the user mentions Reddit, posting to a subreddit, submitting a link or self-post, or checking their Reddit profile / submissions.

  • 225 stars
  • 0 votes
  • 0 copies
  • 10 views
  • Added September 4, 2026
documentationgobashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 13 files and shows the line behind each finding

Scanned September 4, 2026

npx -y skills add NeverSight/skills_feed --skill reddit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Reddit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Reddit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/neversight-reddit-learn-skills-dev/badge)](https://www.skillsdirectory.com/skills/neversight-reddit-learn-skills-dev)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: reddit
description: Submit posts (link or text) to subreddits and read your Reddit identity / content via the Reddit API. Use when the user mentions Reddit, posting to a subreddit, submitting a link or self-post, or checking their Reddit profile / submissions.
when_to_use: |
  Trigger when the user wants to submit a post to a subreddit (link or
  self/text post), or read their own Reddit identity and submissions.
  Posting to a subreddit is public and subject to that subreddit's rules
  / karma requirements — confirm the target subreddit, title and body
  before submitting.
connections: [reddit]
allowed_tools: [Bash]
license: Apache-2.0
metadata:
  author: acedatacloud
  version: "1.0"
---

Call the **Reddit API** (OAuth endpoints) with `curl + jq`. The user's bearer
token is in `$REDDIT_TOKEN`. **Every call MUST send a `User-Agent` header** or
Reddit returns `429`. Use the OAuth host `https://oauth.reddit.com`.

```bash
UA="web:cloud.acedata.connectors:v1.0 (by /u/acedatacloud)"
```

Errors are JSON; a submit returns `{"json":{"errors":[...], "data":{...}}}` —
if `errors` is non-empty, show them verbatim. `401` → token expired, re-connect.

**Always start by confirming identity:**

```bash
curl -sS -H "Authorization: Bearer $REDDIT_TOKEN" -H "User-Agent: $UA" \
  "https://oauth.reddit.com/api/v1/me" | jq '{name, total_karma, link_karma}'
```

## Submit a post

**Confirm the subreddit + title + body with the user first.** `sr` is the
subreddit name WITHOUT the `r/` prefix.

```bash
# Self (text) post: kind=self + text. Link post: kind=link + url.
curl -sS -X POST "https://oauth.reddit.com/api/submit" \
  -H "Authorization: Bearer $REDDIT_TOKEN" -H "User-Agent: $UA" \
  --data-urlencode "sr=test" \
  --data-urlencode "kind=self" \
  --data-urlencode "title=My title" \
  --data-urlencode "text=My self-post body in markdown" \
  --data-urlencode "api_type=json" \
  | jq '.json | {errors, url: .data.url, id: .data.id}'
```

For a link post:

```bash
curl -sS -X POST "https://oauth.reddit.com/api/submit" \
  -H "Authorization: Bearer $REDDIT_TOKEN" -H "User-Agent: $UA" \
  --data-urlencode "sr=test" --data-urlencode "kind=link" \
  --data-urlencode "title=My title" --data-urlencode "url=https://example.com" \
  --data-urlencode "api_type=json" | jq '.json'
```

## Read my submissions

```bash
curl -sS -H "Authorization: Bearer $REDDIT_TOKEN" -H "User-Agent: $UA" \
  "https://oauth.reddit.com/user/USERNAME/submitted?limit=10" \
  | jq '.data.children[] | .data | {title, subreddit, ups, num_comments, permalink}'
```

## Gotchas

- **User-Agent is mandatory** on every request — omitting it → `429`.
- Many subreddits gate posting on **account age / karma / flair**; a submit can
  return `errors` like `[["SUBREDDIT_NOTALLOWED", ...]]` — surface it and try
  `r/test` to validate the flow.
- Respect rate limits: read the `X-Ratelimit-Remaining` response header; space
  out bulk submits.
- Use `r/test` as a safe target when validating that the connection works.

Files in this skill

  • SKILL.md3 KB
  • description_ar.txt405 B
  • description_cn.txt248 B
  • description_de.txt329 B
  • description_en.txt241 B
  • description_es.txt272 B
  • description_fr.txt276 B
  • description_it.txt267 B
  • description_ja.txt399 B
  • description_ko.txt312 B
  • description_ru.txt510 B
  • description_tw.txt245 B
  • stats.json70 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in documentation →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.