# Nobrainer Reddit

> Reddit CLI skill for Claude Code. Read posts, search subreddits, post comments, and manage your Reddit account from the terminal using PRAW (Python Reddit API Wrapper) with OAuth2 authentication. Personal use, non-commercial.

- **Type:** Skill
- **Install:** `agentstack add skill-nobrainer-tech-nobrainer-claude-skills-nobrainer-reddit`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [nobrainer-tech](https://agentstack.voostack.com/s/nobrainer-tech)
- **Installs:** 0
- **Category:** [Search](https://agentstack.voostack.com/c/search)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [nobrainer-tech](https://github.com/nobrainer-tech)
- **Source:** https://github.com/nobrainer-tech/nobrainer-claude-skills/tree/main/nobrainer-reddit

## Install

```sh
agentstack add skill-nobrainer-tech-nobrainer-claude-skills-nobrainer-reddit
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# NoBrainer Reddit CLI

Reddit interface for Claude Code — read, search, post, and monitor Reddit from your terminal.

## Setup

### 1. Install PRAW

```bash
pip3 install praw
```

### 2. Reddit API credentials

Register your app at: https://www.reddit.com/prefs/apps
Choose type: **script**

Store credentials in `~/.reddit_credentials.json`:
```json
{
  "client_id": "YOUR_CLIENT_ID",
  "client_secret": "YOUR_CLIENT_SECRET",
  "username": "YOUR_REDDIT_USERNAME",
  "password": "YOUR_REDDIT_PASSWORD",
  "user_agent": "nobrainer-reddit-cli/1.0 by YOUR_USERNAME"
}
```

### 3. Initialize

```python
import praw, json
creds = json.load(open(os.path.expanduser("~/.reddit_credentials.json")))
reddit = praw.Reddit(**creds)
print(reddit.user.me())  # verify login
```

---

## Commands

### Read — hot posts from a subreddit

```python
import praw, json, os

creds = json.load(open(os.path.expanduser("~/.reddit_credentials.json")))
reddit = praw.Reddit(**creds)

for post in reddit.subreddit("python").hot(limit=10):
    print(f"[{post.score}] {post.title}")
    print(f"  {post.url}\n")
```

### Search — find posts by keyword

```python
for post in reddit.subreddit("all").search("claude code", limit=10, sort="new"):
    print(f"[r/{post.subreddit}] {post.title}")
    print(f"  {post.url}\n")
```

### Read comments on a post

```python
submission = reddit.submission(url="https://www.reddit.com/r/python/comments/...")
submission.comments.replace_more(limit=0)
for comment in submission.comments.list()[:20]:
    print(f"[{comment.score}] {comment.body[:200]}\n")
```

### Post — submit a text post

```python
subreddit = reddit.subreddit("test")
post = subreddit.submit(
    title="Test post from nobrainer-reddit-cli",
    selftext="This is the body of the post."
)
print(f"Posted: {post.url}")
```

### Comment on a post

```python
submission = reddit.submission(url="POST_URL")
comment = submission.reply("This is my comment.")
print(f"Commented: {comment.permalink}")
```

### My profile — recent activity

```python
me = reddit.user.me()
print(f"u/{me.name} | karma: {me.link_karma} post / {me.comment_karma} comment")

print("\n--- Recent posts ---")
for post in me.submissions.new(limit=5):
    print(f"[r/{post.subreddit}] {post.title}")

print("\n--- Recent comments ---")
for comment in me.comments.new(limit=5):
    print(f"[r/{comment.subreddit}] {comment.body[:100]}")
```

### Monitor subreddit — new posts stream

```python
print("Monitoring r/python for new posts... (Ctrl+C to stop)")
for post in reddit.subreddit("python").stream.submissions():
    print(f"[NEW] {post.title}")
    print(f"  {post.url}\n")
```

---

## Rate limits

- Free tier: **60 requests/minute**
- PRAW handles rate limiting automatically
- Check remaining: `reddit.auth.limits`

---

## Notes

- Credentials file should have `chmod 600 ~/.reddit_credentials.json`
- `user_agent` must be descriptive and unique per Reddit's API rules
- Script type OAuth only accesses your own account — no other users' private data

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [nobrainer-tech](https://github.com/nobrainer-tech)
- **Source:** [nobrainer-tech/nobrainer-claude-skills](https://github.com/nobrainer-tech/nobrainer-claude-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** yes
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-nobrainer-tech-nobrainer-claude-skills-nobrainer-reddit
- Seller: https://agentstack.voostack.com/s/nobrainer-tech
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
